Top "Angularjs-scope" questions

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

Should angular $watch be removed when scope destroyed?

Currently working on a project where we found huge memory leaks when not clearing broadcast subscriptions off destroyed scopes. The …

javascript angularjs angularjs-directive angularjs-scope
Delete property from scope variable

I have a scope variable $scope.object = { prop: 12345 } whose properties I delete with setting them to undefined. <button ng-show="…

angularjs angularjs-scope angularjs-templates
Angular scope function executed multiple times

I have defined a function on scope. And when I call it from the view inside {{}} it executes X number …

angularjs angularjs-scope
Angular JS Scaling & Performance

We are pounding our heads against performance issues with an Angular app we are building for a bank. Unfortunately, it …

html performance angularjs angularjs-scope angularjs-ng-repeat
Running $apply on $rootScope vs any other scope

The $apply function can run on any scope, including $rootScope. Are there cases when it makes a difference if I …

angularjs angularjs-scope
Access Parent Scope in Transcluded Directive

I would like to access a parent directive's scope, but I can't seem to get the right combination of settings. …

angularjs angularjs-directive angularjs-scope
AngularJS - Format Text Return From JSON To Title Case

I have a service that retrieves data from a JSON file. Some of the data within the data is all …

angularjs angularjs-directive angularjs-scope angularjs-ng-repeat
What is the difference between `value` attribute and `ng-value` attributes in angularjs

What is the difference between value and ng-value attributes in angularjs templates? If I use ng-if on the field using …

javascript angularjs angularjs-scope angularjs-ng-repeat angularjs-service
Check existence of attribute in AngularJs Directive

Is is possible to check whether a given attribute is present in a directive, ideally using isolate scope or in …

javascript angularjs angularjs-directive angularjs-scope
Passing data through open modal function Angular uibModal

I'm trying to figure out how to pass unit_number into the modal when it pops up. I'm pretty new …

javascript angularjs angularjs-scope modal-dialog angular-ui-bootstrap