0
votes
0answers
15 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
17 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
21 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
18 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
16 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
60 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
32 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
113 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
79 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
44 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
50 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
80 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
21 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 ...
1
vote
1answer
148 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
101 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
80 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
32 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
26 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
223 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
66 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
79 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
38 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
86 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
34 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
50 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
49 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 ...
3
votes
3answers
2k 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
90 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
152 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
102 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
48 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.
1
vote
1answer
197 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
273 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
169 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
206 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
224 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 ...
0
votes
1answer
61 views

Change minimumDate of angular UI Datepicker

My problem is as follows; I have set a datepicker like this: <div ng-controller="DatepickerDemoCtrl" class="row"> <div class="col-md-6"> <p class="input-group"> ...
0
votes
1answer
34 views

How can I read List of objects in angularjs

How can I read below result in angularjs in controller.js { "placeList":[ [ { "address":null, "name":"Len The Plumber" }, { ...
0
votes
2answers
35 views

How to have a value passed to scope from outside the controller?

I am new to angular world and I have function which is loading the html inside perticular div on load and then controller gets initialize. I want to make single var available inside the controller so ...
1
vote
0answers
222 views

$setPristine() does not work properly if form control has invalid data

I am trying to reset form using $setPristine(). $scope.resetDataEntryForm = function() { $scope.dataEntryForm.$setPristine(); $scope.pr = {}; }; It works fine if all the input controls in ...
0
votes
1answer
304 views

How can I limit the size of attachment (file upload) in AngularJS?

I want the best way to upload files with loading image in AngularJS. At the same time i want to limit the size to 10MB. Please give the best way to achieve this?
0
votes
0answers
82 views

angularJS watching values of an object list

I have a List containing objects in my angular js project. Each object of the list contains a name and a value. This value is bound to a text field. The list is displayed on a grid and when ever the ...
0
votes
2answers
92 views

Angular JS: How to get values in Cookies in different pages once it is set after login

I am using Angular JS to develop a application. I want to maintain some useful data in cookies so that I can use it through whole application after user login. I have tried for $cookies and ...
1
vote
1answer
420 views

AngularJs:Getting age automatically when given Date of Birth

I have a date of birth field and a age text box.How can i update age text box automatically when selecting date of birth in angularJs. code for inputs <label for="" class="col-md-2 ...
0
votes
4answers
543 views

angularjs share data config between controllers

I'm wondering what could be a good way to share directive between controller. I've got ie two directives to use in different controller with different configuration the first think I thought of using ...
0
votes
1answer
228 views

How can I get all the selected objects of Checkboxes in AngularJS?

I want to get all the selected objects of the checkboxes using AngularJS. Below is my case My view.tpl.html <tr ng-repeat="item in itemList"> <td> <input type="checkbox" ...
0
votes
2answers
222 views

How to assign value to ng-model definition

I am using ui-bootstrap for typeahead in my application. <input type="text" ng-model="newItem.id" class="form-control"> <pre>Model: {{customSelected | json}}</pre> <input ...
0
votes
1answer
1k views

AngularJS UI Modal and select doesn't update the scope values

I am having a lot of trouble trying to save values from the modal component available in Angular UI. Here is the page controller that calls the modal dialog $scope.sourceSchema = []; ...
1
vote
2answers
35 views

How to use custom directives.

I have mentioned HTML code below <div class="panel" ng-controller="myController"> <div myArr="arr" my-Dir=""> </div> JavaScript is ...