0
votes
1answer
14 views

How can I make a two way binding in AngularJs? Detailed example included

I can't figure this one on my own. Maybe I'm missing something. I have a controller and a directive which creates its own scope. Plunker link : http://run.plnkr.co/plunks/wFV7d2blZKEXUgHIOxYo/ Here ...
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 ...
-4
votes
1answer
57 views

what is wrong with Angular js

In js I wrote $scope.check = function () { $scope.searchName = ""; $.post("http://172.22.71.107:8888/check/", {}, function (arg_result) { if (arg_result.Ret == 0) { ...
0
votes
1answer
22 views

How to access the $ngModelController from inside the Controller without a Form and without a Directive

Maybe it's a rookie mistake, but I can't seem to access the $scope.model's $ngModelController so I can grab the $viewValue from it. I have an input without a form (im using ui-mask directive): ...
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 ...
0
votes
1answer
36 views

ngController method called twice

I've got an angularjs app with a nav bar inside my index.html page like that : <div class="navbar navbar-inverse navbar-fixed-top" ng-controller="NavCtrl"> <div ...
3
votes
1answer
45 views

Extending directives in AngularJS (sharing properties before and after link)

I have a directive which creates a rich text editor in its LinkingFunction. The small directive I'm using for my rich text editor can be found at ...
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 = ...
1
vote
1answer
36 views

how can I exclude an element from an Angular scope?

I'm building a site that generates graphs using d3+Raphael from AJAX-fetched data. this results in a LOT of SVG or VML elements in the DOM, depending on what type of chart the user chooses to render ...
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 ...
0
votes
2answers
35 views

Why is angular not updating my model

In my (table) overview I have custom directive. This directive shows customer details and contains an edit button. When this button is clicked a edit form pops up. When I change values of the customer ...
0
votes
0answers
45 views

AngularJS directive - grouping <td> elements

I want to do a directive which appends "grouped" <td> elements based on array in controller, I try do it like so: App.directive("discount", ['$compile', ($compile) -> restrict: 'A' scope: ...
0
votes
1answer
31 views

Debugging AngularJS Databinding Inline Directive vs Directive in ngTemplate

Take a look at this fiddle: http://jsfiddle.net/ADukg/3036/ I have two directives that are using two-way databinding on a value provided by the same controller instance. When the directives are ...
-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 ...

1 2 3 4 5 17
15 30 50 per page