Top "Angularjs-scope" questions

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

Get DOM element by scope $id

I understand I can get the scope by element: scope = angular.element($0).scope(); scope.$id; // "003" How do I get reverse: …

angularjs angularjs-scope
How do I get an input value into Angular's $scope?

I'm new to Angular, and I am trying to do something really basic. Here is a part of a view (…

javascript angularjs angularjs-scope angularjs-ng-model
Disable ng-click on certain conditions of application for all types of element

In my application I've binded several elements with ng-click directive like below <a ng-click="DoSomething()"/> <button ng-click="…

angularjs angularjs-directive angularjs-scope angularjs-ng-click
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 …

angularjs angularjs-directive angularjs-scope
AngularJS - Filter empty objects

I have a $scope.myData object that contain a chunk of data. What i am trying to do is display …

angularjs angularjs-scope angularjs-ng-repeat angular-filters
How to share the $scope variable of one controller with another in AngularJS?

I have this: app.controller('foo1', function ($scope) { $scope.bar = 'foo'; }); app.controller('foo2', function ($scope) { // want to …

javascript angularjs angularjs-scope angularjs-controller
How to do two-way filtering in AngularJS?

One of the interesting things AngularJS can do is apply a filter to a particular databinding expression, which is a …

javascript angularjs data-binding angularjs-scope
Get controller name from $scope

Is there a way to get the controller name from the current $scope in AngularJS?

angularjs angularjs-scope
Get to get all child scopes in Angularjs given the parent scope

I would like to know how to get a list of all child scopes given a parent scope. All I …

angularjs angularjs-scope parent-child enumeration