Top "Angularjs-scope" questions

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

'this' vs $scope in AngularJS controllers

In the "Create Components" section of AngularJS's homepage, there is this example: controller: function($scope, $element) { var panes = $scope.panes = []; $…

angularjs angularjs-scope this
Confirmation dialog on ng-click - AngularJS

I am trying to setup a confirmation dialog on an ng-click using a custom angularjs directive: app.directive('ngConfirmClick', [ function(){ …

javascript angularjs angularjs-directive angularjs-scope
Set angular scope variable in markup

Simple question: How can I set a scope value in html, to be read by my controller? JSFiddle: http://jsfiddle.…

angularjs angularjs-scope
AngularJS access scope from outside js function

I'm trying to see if there's a simple way to access the internal scope of a controller through an external …

angularjs angularjs-scope
AngularJS - get element attributes values

How do you get an element attribute value? e.g. HTML element: <button data-id="345" ng-click="doStuff($element.target)">…

javascript angularjs angularjs-scope jqlite
$watch an object

I want to watch for changes in a dictionary, but for some reason watch callback is not called. Here is …

javascript angularjs angularjs-scope
How to call a function from another controller in angularjs?

I need to call function in another controller in angular js.How it is possible way please help me thanks …

angularjs controller angularjs-scope
AngularJS: ng-repeat list is not updated when a model element is spliced from the model array

I have two controllers and share data between them with an app.factory function. The first controller adds a widget …

angularjs angularjs-directive angularjs-scope angularjs-ng-repeat
$rootScope.$broadcast vs. $scope.$emit

Now that the performance difference between $broadcast and $emit has been eliminated, is there any reason to prefer $scope.$emit …

angularjs angularjs-scope
ng-if, not equal to?

I have a simple ng-reapt that displays a list of values.. On some of the outputs, i have a couple …

angularjs angularjs-scope angularjs-ng-repeat ng-switch angular-ng-if