aka:JavaScript:AngularJS
Questions and Answers
- What's the magic of DI in AngularJS? I mean it looks just natural and nothing special with it.
- What's the differences of provider, factory, and service provided to create AngularJS services?
- What's the difference in module managements between AngularJS, Yeoman, and RequireJS if we can use them together?
- What's a promise in AngularJS?
- What's a promise in JavaScript?
- Then, what's a promise in AnuglarJS?
- TBW.
- Is there any relationship between Angular's $scope and JavaScript scope/context?
- Is it okay to change the order of DIed services in function defs for controller definitions?
- This is okay:
app.controller('ListCtrl', ['$scope', 'recipes', function ($scope, recipes) { }]);
- Is this okay?:
app.controller('ListCtrl', ['$scope', 'recipes', function (recipes, $scope) { }]);
- Nope.
- This is okay: