0
votes
1answer
38 views

Angular Directive throws $digest already in progress when trying to call controller method

Here is my plunker - http://plnkr.co/edit/VYH5QbO99ZbMkvc2D4Fe?p=preview I want to keep the knowledge of controller method outside of directive so used Directive Attribute and pass controller method ...
0
votes
1answer
26 views

How do I trigger a angularjs page refresh in a global callback function?

I'm currently interacting with the google api, using jsonp, so I need a global callback function. How do I trigger an update of the page inside the callback function? I've tried $timeout and ...
1
vote
1answer
24 views

How would I call a global function callback in the scope of a angularjs controller?

I'm trying to create something like this g+ login directive, which essentially adds something like <span id="signinButton"> <span class="g-signin" data-callback="signinCallback" ...
0
votes
2answers
41 views

How to set the value of an attribute in Angular?

In my directive I have this code: // hide all drodowns with this attribute $(document).find('[dropdown]').each(function (index) { if ($(this).is(':visible')) { var a = ...
0
votes
0answers
27 views

AngularJS Select/Options scope breaking calculator

I have a calculator built in AngularJS and all fields work great, except the Select/Options field is making the result not work. Here's the fiddle: http://jsfiddle.net/itamark/4kkCa/ When I try to ...
-1
votes
1answer
26 views

ng-change executing before ng-model is set for a <select>

I have the following html and js <select ng-change="setBillGroup()" ng-model="bill.groupId" class="span8" ng-options="d.id as d.name for d in groups"></select> and the corresponding js ...
0
votes
1answer
65 views

Accessing parent window angular scope from child window

I'm trying to update scope value on parent window from a child popup.But whenever I try to access the parent window scope,it returns undefined. As it involves two window, I couldn't create a fiddle ...
0
votes
1answer
42 views

Prepopulating checkbox with content from array?

I have a checkbox which calls a function on ng-click that inserts into a checkedItems array. How do I prepopulate this checkbox with elements from the checkedItems arrray? Here are the relevent ...
10
votes
1answer
88 views

How does Angularjs handle Memory Management with ngView?

When you are using ngView with say 100 different views each with a different scope. Does Angular automatically handle destroying the old templates/scopes or do they stay in memory? I'm just curious if ...
0
votes
2answers
96 views

AngularJS: How to pass values from Controller to Service Method?

I have a controller which is dependent on a TransactionService. One of the method is $scope.thisMonthTransactions = function () { $scope.resetTransactions(); var today = new Date(); ...
0
votes
2answers
25 views

Programmatic-ally bind DOM element to $scope

Ok lets say I have something like this: <div ng-app="myApp"> <div ng-controller="myCtrl"> {{foo}} <button ng-click="bindToMe" /> </div> <div ...
1
vote
1answer
92 views

AngularJS: Correct place for global menu provider, service or rootScope?

I'm new to AngularJS, and - since it is quite complex and the approach is new for me, I'm a bit confused. I'm from "classic" background (server-side template languages [like Yii, django, Smarty] + ...
1
vote
1answer
122 views

Sharing data between AngularJS controllers? [duplicate]

How do I store the items I've selected in a checkbox with other controllers? My attempt (see the plnkr for views): script.js (controllers) var myApp = angular.module('myApp', []); ...
0
votes
1answer
89 views

Getting select rows from ng-grid?

How do I create (or access) an array of selected rows in my ng-grid? Documentation (scroll to "Grid options") id | default value | definition ...
2
votes
1answer
46 views

Angular directives don't work with selects

I can't seem to get selects working with Angular directives! I have two selects, both inside a directive. I would like for the first select to determine the available options for the second select. ...

1 2 3 4 5
15 30 50 per page