AngularJS

Use for questions about AngularJS (1.x), the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions; instead, use the [angular] tag.

55 votes
28 answers
2.2K views
AngularJS : Prevent error $digest already in progress when calling $scope.$apply()

I'm finding that I need to update my page to my scope manually more and more since building an applicatio

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
56 votes
7 answers
1.9K views
'this' vs $scope in AngularJS controllers

In the "Create Components" section of AngularJS's homepage, there is this example: controller: function(

avatar
Suzan
0 1 0 9
asked 07 September, 2021
63 votes
9 answers
1.6K views
angular.service vs angular.factory

I have seen both angular.factory() and angular.service() used to declare services; however, I cannot find angu

avatar
Renaldo
0 1 0 9
asked 07 September, 2021
53 votes
18 answers
3.1K views
What is the difference between '@' and '=' in directive scope in AngularJS?

I've read the AngularJS documentation on the topic carefully, and then fiddled around with a directive. H

avatar
Luis
0 1 0 9
asked 07 September, 2021
52 votes
6 answers
2.9K views
How do I use $scope.$watch and $scope.$apply in AngularJS?

I don't understand how to use $scope.$watch and $scope.$apply. The official documentation isn't help

avatar
Omar
0 1 0 9
asked 07 September, 2021
58 votes
19 answers
2.2K views
How do I access the $scope variable in browser's console using AngularJS?

I would like to access my $scope variable in Chrome's JavaScript console. How do I do that? I can neithe

avatar
Joseph
0 1 0 9
asked 07 September, 2021
66 votes
30 answers
2.8K views
AngularJS: Service vs provider vs factory

What are the differences between a Service, Provider and Factory in AngularJS?

avatar
Chelsea
0 1 0 9
asked 07 September, 2021