All Questions

4532
votes
15answers
763099 views

"Thinking in AngularJS" if I have a jQuery background?

Suppose I'm familiar with developing client-side applications in jQuery, but now I'd like to start using AngularJS. Can you describe the paradigm shift that is necessary? Here are a few questions that...
923
votes
3answers
136855 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 page says: A scope (prototypically) inherits properties from its parent scope. So, doe...
3040
votes
30answers
714392 views

AngularJS: Service vs provider vs factory

What are the differences between a Service, Provider and Factory in AngularJS?
310
votes
9answers
225566 views

Share data between AngularJS controllers

I'm trying to share data across controllers. Use-case is a multi-step form, data entered in one input is later used in multiple display locations outside the original controller. Code below and in jsf...
1699
votes
13answers
313649 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. It's more or less clear how it works when data is propagated from view to model. But how does A...
916
votes
6answers
246679 views

'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 = []; $scope.select = function(pane) { ang...
710
votes
15answers
563417 views

Insert HTML into view

Is it possible to create an HTML fragment in an AngularJS controller and have this HTML shown in the view? This comes from a requirement to turn an inconsistent JSON blob into a nested list of id : v...
947
votes
15answers
473807 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. Here's the fiddle. And here are some relevant snippets: From the HTML: <pane bi-title="ti...
64
votes
3answers
27832 views

Why don't the AngularJS docs use a dot in the model directive?

In the video AngularJS MTV Meetup: Best Practices (2012/12/11), Miško explains "..if you use ng-model there has to be a dot somewhere. If you don't have a dot, you're doing it wrong.." However, the ...
38
votes
2answers
19333 views

Why are angular $http success/error methods deprecated? Removed from v1.6?

The angular documentation has a Deprecation Notice for the $http success and error methods. Is there a specific reason this abstraction was removed from the library?

Previous Next