0
votes
0answers
28 views

Ok to use element.addClass in angular?

Loving using angular but want to keep to the "best practices" and not get into bad habits. Currently making a desktop application which is also available on mobile devices and found the bindonce ...
-1
votes
1answer
45 views

Query not working for me

I am using angularJs ng-resource.I have tried this angular.module('app.services', ['ngResource']) .factory('AngularIssues', function($resource){ return $resource('../test.json',{},{ ...
0
votes
2answers
57 views

How do I allow for clicking on each item/post, then viewing it in a new screen?

Im trying to build a simple tutorial app list of grocery items, and then clicking on it will lead to a new page showing the grocery goods in details, such as price, quantity left etc. Currently, ...
2
votes
3answers
23 views

Do you have to us ng-Controller in the view or can you just declare it in the $routeProvider?

I recently realized I had not used ng-Controller to declare the official scope of my controller in the HTML but had only mentioned it in $routeProvider and all APPEARS to be well. Does any one know ...
0
votes
2answers
27 views

angular error in declaring multiple modules

I m new to Angular JS (apologies if my my terminology is incorrect or not enough explained). I m trying to do a demo creating multiple modules which are just returning messages. My domo has just 2 ...
0
votes
1answer
21 views

Problems with ng-router and anchor tab

MyApp.config([ '$routeProvider', function($routeProvider) { $routeProvider .when('/getAttributes', { templateUrl : 'view/attributes.jsp', controller : 'attributeController' ...
-4
votes
0answers
31 views

Time scheduler in angulajs

See attached image, If I select day time in first row then I cant select same value and between the value in second or other row. Please help me i want in angularjs
0
votes
1answer
74 views

how to get data from json file using angularjs

I am getting data from json file to display in a table, but first time only i got data from getdata() next time i got following error: Uncaught TypeError: Cannot read property 'length' of undefined ...
0
votes
1answer
45 views

Service not working - AngularJS

My task is to create a form and display the entered data to a div on clicking 'Submit'. The task involves creating two directives, one for creating the form and another for displaying the entered ...
0
votes
1answer
41 views

ng-route- Parameters with Special Characters

<nav> <ul class="list"> <li ng-repeat="product in data | startFrom:currentPage*pageSize | limitTo:pageSize"> <span>{{product}}</span> <a ...
0
votes
1answer
27 views

AngularJS model changes not shown in GUI after directive changes it

I am having an issue where I have a model: <div ng-model="currentAudio">...</div> I have a button (within and ng-repeat in the div of the model above): <button ...
1
vote
1answer
48 views

Getting dynamic form values

Is there a way to check which like option is selected for which text box when submitted. As shown below user may select like only for some text values. The html tags are dynamically generated based on ...
0
votes
3answers
43 views

Angular js: How to pic 2 data at a time with “ng-repeat”?

I want to achieve something like this with "angularJS". var myData = [ "Data1", "Data2", "Data3", "Data4", ... ]; var cDom = ""; for(var i=1;i<totalLength;i++) { cDom = cDom + ...
0
votes
0answers
26 views

AngularJS with spring ModelAndView Ajax

I am sending a request from below jsp <body ng-controller="MyController"> <div data-role="page" class="container"> <%@ include file="header.jsp" %> <div ...
0
votes
0answers
22 views

Updating “treedata” model array in angular-tree-control will not update the UI. Why?

I am using angular-tree-control of wix: http://wix.github.io/angular-tree-control/ The main problem is to understand how to update the UI tree with new children nodes, not by clicking on the folder ...
0
votes
1answer
30 views

Angular how to get route id at resolve block?

How can i get "pageid" inside resolve block? For every url change i had to request the server, along with the "pageid"? My code: app.config(function($routeProvider){ $routeProvider ...
0
votes
1answer
19 views

shortenning angular code to one method

how can I shorten my code so I dont have to use two different methods to do a file upload for two different fields this is what I have <input type="file" name="file" ...
0
votes
1answer
19 views

angular send data to view

I have a link in as this <li ng-repeat="x in data"> <a ng-href="/myurl#/view">{{x.id}}</a> </li> I want to send x.id to myurl controller. here is my router ...
0
votes
1answer
99 views

Angular UI Bootstrap - Collapsing tab content

Using the AngularJS UI Directives for bootstrap, is there any way to collapse the tab content using the tag? I have several tabs/pills with content, which will start collapsed (hidden). When any of ...
0
votes
2answers
45 views

AngularJS if statement condition in an ng-repeat

I'm using ng-repeat in AngularJS <ul> <li ng-repeat="question in questions" class="question list-group-item media"> <span class="question__type">{{ question.question ...
-1
votes
1answer
156 views

trying to get angularstrap working but no luck

I am trying to get angularstrap working but have not had any luck yet. here is my angular code <!DOCTYPE html> <head> <title>Learning AngularJS</title> <script ...
0
votes
1answer
26 views

'sharing' controllers between modules

I will try to explain this as concisely as I can. I have an app that can't be immediately converted to a single angular app. as a result we have a number of seperate modules that are effectively ...
1
vote
0answers
94 views

angularjs ng-click not working inside the pop over directive

I added some buttons in the pop over template. when the page finishes the first loading, click on the element on the page, shows the popover, click on those buttons, every one works fine. But when ...
0
votes
2answers
51 views

angular ui modal can NOT refer to parent scope

i am using angular ui modal to create modal in my project. Everything works fine until I need to refer to variable in parent scope. see plunker code It seems like modal can't access parent scope. Is ...
0
votes
1answer
79 views

how to do filter using range slider in angularjs

In my application, I have used pricing slider. When I change minimum and maximum value of pricing slider, I need to filter based on the range. In angularjs, how to do this one. Can you please any one ...
2
votes
3answers
95 views

How to call controller function from directive?

how to call controller function from directive? or howto access directive ng-model from controller? eg. I use angular ui bootstrap time component and when time change I need to notify calling function ...
0
votes
1answer
23 views

Need to $watch property from within an accordion (Angular-UI) but won't work

We're building a page with Angular, Angular-UI and UI-Bootstrap. The last one includes a directive for accordion, which simplifies a quite repetitive task of building up an accordion and an accordion ...
2
votes
1answer
260 views

Show and Hide Alert Using AngularUI Directives for Bootstrap

Am a newbie in the field of web design. I came across bootstrap and later angularjs. I find them quite impressive. I noticed that bootstrap comes with its own jquery libraries and angularjs uses its ...
0
votes
1answer
140 views

How to call collapseAll function on Angular UI tree?

I am using the angular-ui-tree directive to show a tree in my AngularJS application. However, I would now like to collapse the tree. The documenation states that there is a function called collapseAll ...
0
votes
1answer
132 views

AngularJS UI router - Pass angular object to ui-router controller method?

I want to pass the data of the function PhoneList() to the UI-Router controller function to the state 'phonedescription'. JS: var myApp = angular.module('myApp', ["ui.router"]); ...
0
votes
2answers
40 views

how to pass multiple services in controller in angularjs?

I have a service called authService. I call it from the Logincontroller as follows : angular.module('myApp').controller('LoginController',function($q, $scope, $location,$routeParams, $window, ...
0
votes
0answers
33 views

checkbox group directive showing this.ngModels is undefined error

I am using a checkbox group directive and here is the example: http://jsfiddle.net/Alien_time/pWQWG/3/ This checkboxGroup is used to add a ng-required condition so atleast 1 (or the number specified) ...
2
votes
1answer
359 views

Date picker is not working in AngularJS (ng-grid) “editableCellTemplate”

columnDefs: [{ displayName: 'Date', field: 'date', editableCellTemplate: '<input type="text" ng-class="\'colt\' + col.index" ...
0
votes
1answer
88 views

$observe not working in AngularJS

Cannot get the $observe to trigger anything on change. .directive('watchContent', function () { return { restrict: 'A', link: function (scope, elem, attrs) { console.log(attrs.class) ...
0
votes
1answer
103 views

ng-disabled in angularjs is not working for me

I'm trying to enable and disable the button using some condition I am able to disable the button using $scope.isDisabled = true; , but can't enable the button Here is my code HTML file <input ...
0
votes
1answer
40 views

I am able to query my api call, but i am not able to show it via angular

I have made an JSON api. I like to query this with angular.js. On my webserver i see the request comes in, and returns a status 200, so the data are called by angular. For some reason however, i am ...
1
vote
1answer
120 views

AngularJS Factory loading data on each click

Plunker There are a lot of files, so perhaps you Angular aficionados will understand my explanation, or be able to follow the plunker I've provided above. I'm creating a demo to modularize a ...
0
votes
1answer
41 views

Post request is not working in angularjs - Resource services

I'm trying to send the post request to server with post data it's sent the request to the server, but not in right format request url like ...
1
vote
1answer
61 views

Keeping track of UI State in an angularJS app

Intro: I'm working on a web app using ui-router, and using nested views/controllers. There are several UI elements across the app that need to communicate, and who's actions may be dependent on ...
1
vote
2answers
60 views

Pass argument from controller to service in angularjs

I'm facing the problem on passing the argument from controller to service module I don't know where I have pass the arguments in controller module and how to get the value in service module. here is ...
4
votes
3answers
3k views

How to detect browser using angular?

I am new to angular. How can I detect userAgent in angular. Is it possible to use that in controller? Tried something like below but no luck! var browserVersion = int((/msie ...
0
votes
1answer
108 views

Angular basic routing issue

I am starting out to learn angular and I want to make a one page app. I have mvc structure for angular installed via yo angular I am trying to populate the main div with about and contact pages. ...
2
votes
1answer
237 views

Access to form controller hidden due to angular ui tab isolated/inherited scope

I have a simple case: <div ng-controller="myController"> <tabset> <tab> <form name="myForm"></form> </tab> </tabset> </div> and ...
0
votes
0answers
137 views

$scope.object is undefined angularjs

Can you please assist in finding why $Scope.notify is undefined, infact the other function is working totally fine. services.js [ postmain and allresults are working fine but not notifyadd??] ...
1
vote
2answers
53 views

Grab $viewValue from controller

How do I access $ngmodel.$viewValue in the controller? I have a ui-mask and it's not producing the correct value for the ng-model so I want to extract the value I see from my input field.
2
votes
1answer
305 views

making a ajax call to populate scope data in angular js

Hello i have a angular js controller like this function InstantSearchController($scope){ $scope.items = [ { url: 'http://tutorialzine.com/2013/04/services-chooser-backbone-js/', ...
0
votes
2answers
360 views

AngularJS ng-grid pagination issue - Buttons are not disabled

I have the following code, Demo: http://plnkr.co/edit/CIjY45LGDUviCXVWONLQ?p=preview HTML <body ng-controller="MyCtrl"> <input type="text" ng-model="settings.filterOptions.filterText" ...
0
votes
2answers
222 views

Ng-repeat not showing JSON data in Angular-UI

I am trying to pull in data from a JSON file and use it to populate a navigation menu, composed of Divs that collapse using the Angular UI collapsible function. I've enclosed a plunk: Plunk of the ...
0
votes
1answer
270 views

How to pass ng-model value to anchor tag which opens an HTML overlay?

I have a scenario where I display many posts on a HTML page using AngularJS and every post, when clicked, shows associated data in an overlay. Data is displayed on main page using ng-repeat tag and ...
1
vote
1answer
312 views

Two way binding not working with a variable in a Modal (Subcontroller) with angularjs

Hello I got a list of products and I want people to select one of them and then a modal displays where they can enter extra info (a comment). I am using 'AngularJS' with 'Angular-UI' and ...