Tag: angularjs

48 votes
3 answers
1K views
What are the nuances of scope prototypal / prototypical inheritance in AngularJS?

The API Reference Scope page says: A scope can inherit from a parent scope. The Developer Guide Scope pa

avatar
Benton
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
60 votes
15 answers
1.4K views
What is the difference between angular-route and angular-ui-router?

I'm planning to use AngularJS in my big applications. So I'm in the process to find out the right mo

avatar
Cortez
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
57 votes
14 answers
1.5K views
How does data binding work in AngularJS?

How does data binding work in the AngularJS framework? I haven't found technical details on their site.

avatar
Clarice
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
59 votes
21 answers
2.4K views
How can I post data as form data instead of a request payload?

In the code below, the AngularJS $http method calls the URL, and submits the xsrf object as a "Request Payload

avatar
Sena
0 1 0 9
asked 07 September, 2021
53 votes
22 answers
941 views
What is the best way to conditionally apply a class?

Lets say you have an array that is rendered in a ul with an li for each element and a property on the controll

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
1.8K views
How to make ng-bind-html compile angularjs code

I am working with angularjs 1.2.0-rc.3. I'd like to include html code into a template dynamically. For th

avatar
Benton
0 1 0 9
asked 07 September, 2021