0
votes
0answers
31 views

Shared data between controllers not updating model angularjs

I have 2 controllers that share the same service in my application, when I fire an event that's controlled by the portalController function --> setLang() I don't see the model of applicationController ...
0
votes
0answers
23 views

AngularJS - Share ngModel with nested directives and transcluded directives

I am trying to create 3 directives: .directive('dirOne', function () { return { restrict: 'E', transclude: true, replace: true, controller: function ($scope, ...
0
votes
1answer
20 views

Weird Angularjs behavior with object into a service

I have a service that get an object defined into it. app.factory('Store', function($http, $q){ var obj = { data : [], load:function(params){ var def = $q.defer(); var count = ...
0
votes
1answer
23 views

nested function variables AngularJS?

Ok I have the folowwing: function getRate(source, $scope, e) { var dateValue = $("Date", source).text() || ""; if (!dateValue) { ...
3
votes
0answers
50 views

Update model from directive from $apply or $digest cycle in AngularJS

I try update model from directive and have some trouble when $apply or $digest already in progress. And I have some questions: Why scope[attrs.ngModel] is exist, but ngModel.$modelValue isn't exist ...
0
votes
1answer
65 views

How to trigger routeUpdate without changing the value of params in $location.search

In my application I use routeUpdate to check if the $location.search string has changed and navigate accordingly in my view. Like so. $scope.$on('$routeUpdate', function(next, current) { ...
1
vote
2answers
30 views

Why does two way binding sometimes work without using a dot in Angular?

Consider this fiddle: Fiddle 1 When you select a date, you will notice that the text above it is not updating. This is because I had to use an object in my list, like this: Fiddle 2 (simplified). ...
0
votes
1answer
38 views

Double $rootScope in Angularjs app

This problem makes me a huge headache - I don't know why, but in my application i have two $rootScope, with $id "001" and "003" (each has separated variables). I checked ng-app occurrence and it's ...
0
votes
1answer
29 views

Independent scopes for similar controllers in Angular

I'm working on an app the uses multiple (but similar) controllers (controllerA) on a page and another controller (controllerB) that could change some properties, but ONLY if the element of controllerA ...
0
votes
1answer
37 views

Can you access a global javascript variable in an Angular expression?

Is there a way to access a global JavaScript variable in a Angular expression? such as: ng-disabled="{someJavascriptVariableHere}"
0
votes
2answers
31 views

Bitwise Angular Expression not working

I have a basic ng-show expression as follows: ng-show="((message.status & messageStatus.Spam) != 0)" However, this fails with the following msg: "Token '&' is unexpected, expecting [)] at ...
0
votes
2answers
32 views

Why is the value not updated to the view from within a directive?

I have this html: <form name="form" novalidate data-ng-submit="TradeDaysFormSubmit()"> <div data-ng-repeat="tradeDay in tradeDays"> {{ tradeDay }} <br /> ...
1
vote
1answer
20 views

Receiving broadcasts and calling controller functions from isolated scope/directive in AngularJS?

Here is the jsfiddle exemplifying my situation. First of all, is this the correct way to create directives with the received dimensions? Then, each directive should be isolated from the others.. ...
0
votes
3answers
34 views

How to bind boolean values in angular directives?

I'd like to bind/set some boolean attributes to a directive. But I really don't know how to do this and to achieve the following behaviour. Imagine that I want to set a flag to a structure, let's say ...
-1
votes
1answer
19 views

AngularJS: ng-switch doesn't seem to work (jsfiddle included)

I have a jsfiddle that i have created here http://jsfiddle.net/EVRMN/ it demonstrates a problem i am having. I am trying to do the following <ng-switch on="mode" ...

1 2 3 4 5 30
15 30 50 per page