Top "Angularjs-scope" questions

In AngularJS, a scope is an object that refers to the application model.

AngularJS - How can I create a new, isolated scope programmatically?

I want to create an AlertFactory with Angular.factory. I defined an html template like follow var template = "<h1&…

angularjs angularjs-scope
Why is using if(!$scope.$$phase) $scope.$apply() an anti-pattern?

Sometimes I need to use $scope.$apply in my code and sometimes it throws a "digest already in progress" error. …

angularjs angularjs-scope
Angularjs: 'controller as syntax' and $watch

How to subscribe on property change when using controller as syntax? controller('TestCtrl', function ($scope) { this.name = 'Max'; this.changeName = …

javascript angularjs angularjs-scope ng-controller
Why is ngModel.$setViewValue(...) not working from

I'm writing an directive which needs an isolated scope, but I want to bind it to the parent scope via …

angularjs angularjs-directive angularjs-scope
AngularJS using $rootScope as a data store

I have an idea for my AngularJS app and I'm curious if the AngularJS community would consider it okay to …

javascript html angularjs angularjs-scope
Getting data from a web service with Angular.js

Im trying to get data in a Json format from a remote WS using Angular and im having some trouble. …

angularjs angularjs-scope angular-http
AngularJS : Differences among = & @ in directive scope?

Creating an isolate scope inside a directive lets us map the outer scope to the inner scope. We have seen …

angularjs angularjs-directive angularjs-scope isolated-scope
AngularJS $watch vs $watchCollection: which is better for performance?

For watching an object scope variable, is $scope.$watch with objectEquality set to true OR $scope.$watchCollection better? For a $…

angularjs angularjs-scope angularjs-watch
$watch not being triggered on array change

I'm trying to figure out why my $watch isn't being triggered. This is a snippet from the relevant controller: $scope.$…

angularjs angularjs-scope