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

3
votes
0answers
244 views

AngularFire does not update Firebase sometimes

The controller below feeds a view with a table and a form. The relevant part of the table is: <tr ng-repeat="obj in tab.col | filter:filterObj" ng-click="select(obj)" ...
1
vote
0answers
16 views

How are watchers and filters treated within the AngularJS digest loop?

I understand that both scope watchers and filters are executed repetitively within the digest loop. However the following is a bit unclear to me: Are they executed the same amount of cycles? Are ...
1
vote
0answers
49 views

$scope.user.id outside of controller

I'm using angular.js and AngularFire and using their chat example. THe point is that the user logs in, then i should set var trueRef to new Firebase("https://alfapixteste.firebaseio.com/users/" + ...
1
vote
0answers
29 views

AngularJS animating prepended $scope data

I have an array named $scope.data with some objects in it, and then I make a call and get older data and I prepend the data to the array. TestQuery.query({start:0, end: Date.now()}, ...
1
vote
0answers
179 views

Angular JS $scope can not find element of array

I'm relatively new to Angular and have run into a problem that I can not figure out what I am doing wrong. Things work up until I get to the edit record screen. From the listing page(this works), ...
1
vote
0answers
158 views

Angular custom directive: Access parent scope property in linking function

I want to set the name of an event (click or touch) on a parent scope in angular as a string. On a child scope I want to use that string to bind an event with element.on. Example: ...
1
vote
0answers
62 views

Scope variable in AngularJS returning undefined

I am working on a little app and I have a service that goes and gets some data and returns it as JSON. I am able to display that data in my HTML just fine. But if I try define a new $scope variable ...
1
vote
0answers
105 views

Layouts in angular

I am trying to develop a simple directive which can take a option of layout configuration. Lets say i want to render something like this on the page I want to render this 4 co-ordinates in one ...
1
vote
0answers
238 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, ...
1
vote
0answers
49 views

Custom filter filter extension pattern?

I'm currently using a filter filter on an ng-repeat which includes a number of search criteria input fields and a global search like this Plunker (ignore the misbehaviour of ng-repeat, this is a ...
1
vote
0answers
79 views

(Help) Input prepopulated with db value, need to be able and save back to db

Very new to AngularJS (and javascipt in general). Here's what I currently have that I know works: 1) Input with db data 2) Working function that submits to PHP I currently have an input populated ...
1
vote
0answers
75 views

Manage complex UI with hiding/showing windows without losing scope/control

With angular js, How can I manage an complex view layout that allows the hiding and showing of windows (and so on.) I need to do so without loosing any state or scope while reopening windows if the ...
1
vote
0answers
261 views

Angular scope, ng-repeat, and calling method on ng-click

I'm a self taught novice programming working on developing a web application using node, angular, bootstrap, and the graph database neo4j. I'm hoping to get some pointers on what I'm doing wrong in ...
1
vote
0answers
162 views

promise-tracker in AngularJS

I have problems when using promise-tracker. What I want is to track a conversation. And part of my code is following: js: angular.module('myModule', ['ajoslin.promise-tracker']) ...
1
vote
0answers
72 views

pass scope to out of function in angular

i am beginner in angular, so sorry if my question is dummy i have some code like this var data = []; $scope.dataObj = {}; resourceTag.getTag({tagName: 'قیچی'}, function(json){ ...

15 30 50 per page