In AngularJS, a scope is an object that refers to the application model. It is an execution context for expressions.

learn more… | top users | synonyms

0
votes
1answer
12 views

Using ng-show to expand nested list on click

My code - Plunker I used ng-repeat to render my nested list. the list built in a way of a folder which is always displayed and files which are displayed when parent folder is clicked. The problem ...
1
vote
1answer
21 views

angularjs scope not accessable in directive

I am trying to load a chart using angularjs directive. I want to load the chart after data comes from server response. But scope is empty. My code is <div class="span4" ui-if="loadingIsDone"> ...
0
votes
2answers
15 views

Cannot read value of scope/elm in angularjs

I'm trying to fire an event when user finish typing into input field and I'm stuck at reading the value which was entered :( Here is my code: js var subtitlesApp = angular.module('subtitlesApp', ...
2
votes
1answer
28 views

AngularJS directive attribute not rendering value when observed

I'm having trouble retrieving the value of an attribute passed in to a directive. My understanding of how directives work probably has something to do with this but it's my assumption that this is a ...
0
votes
1answer
19 views

How to inject common methods?

In my angularjs controller, I have a lot of code that is very similar to this: homeFactory.getApplicationData().then(function (response) { $scope.applicationdata = response.data; }, function ...
1
vote
1answer
18 views

How to manipulate to change ngRepeat data during creation?

I have a table with an object's creation timestamp I want to convert this timestamp to a readable format before ngRepeat renders it to the table. I wrote a function getDate that does this conversion ...
1
vote
1answer
20 views

Multiple watchers on the same value, how is performance?

Summary: In AngularJs, if the same variable is used for data-binding in multiple places, will it cause this variable to be dirty-checked multiple times each $digest-cycle? Longer question: I want ...
0
votes
1answer
21 views

Browser displayed different value for a large number

I need display large number via binding in angularjs. Example is in [jsfiddle][1]. I want to display for example number 1175439502743699460, but browser displayed different value - ...
1
vote
1answer
21 views

Testing element directive - can't access isolated scope methods during tests

I have the following directive. directivesModule.directive('wikis', function() { var urlRegex = new RegExp('^(https?)://.+$'); return { restrict: 'E', templateUrl: ...
0
votes
1answer
32 views

AngularJS: 1.2.0rc2 ng-switch does not remove previous content

updated: made a smaller poc, in plunkr to show the problem without the entire application around it. see it here issue: data-ng-switch works on inline content, but does not remove the previous ...
0
votes
1answer
24 views

$broadcast not firing from a service (AngularJS)

I'm trying to broadcast a message from $rootScope from a service which is triggered on a message from Socket.io. The problem is that it seems that $broadcast isn't fired is fired, but my $on in my ...
0
votes
1answer
15 views

Angular.js - keeping data in sync after creating new record

What is the best practive for keeping data in sync (server <=> browser) after creating new record? e.g. After creating new record (HTTP POST to server) should I: Also add new item to the ...
1
vote
2answers
61 views

AngularJS changing model value in one controller triggers model update in others

EDIT: Ok I update the example to avoid the loop problem, so back to the original question it sill recalculate B model objects. In this example: http://jsfiddle.net/qn2Wa/ <div ng-app> ...
0
votes
0answers
22 views

Re-binding a tree (Wijmo tree) with AngularJS

I am fairly new to AngularJS, and really struggling to re-bind a Wijmo tree (or even a tree implemented using UL and LI elements wth ng-repeat) with new data on changing of value of a Wijmo combobox ...
0
votes
2answers
32 views

AngularJS: how to expose service API/variables

Trying to make a simple example with an AngularJS service. I want to have some variables and functions in my data model ( service ) and through the controller, expose them and bind them to the view. ...

15 30 50 per page