|
6 | 6 |
|
7 | 7 | ## Features:
|
8 | 8 |
|
9 |
| -- [Dependency injection subsystem][$injector] rewrite. This is a huge change to the Angular core |
| 9 | +- [Dependency injection subsystem][guide2.di] rewrite. This is a huge change to the Angular core |
10 | 10 | that was necessary for many reasons. Please read the full
|
11 | 11 | [design doc](https://docs.google.com/document/d/1hJnIqWhSt7wCacmWBB01Bmc6faZ8XdXJAEeiJwjZmqs/edit?hl=en_US)
|
12 | 12 | to understand the changes and reasoning behind them.
|
13 | 13 | - Added [angular.bootstrap] for manual bootstrapping of the app. Also see
|
14 |
| - [Initializing Angular App][bootstraping] doc. |
| 14 | + [Initializing Angular App][bootstrapping] doc. |
15 | 15 | - Helper functions [inject] and [module] that make testing with DI and jasmine a lot easier.
|
16 |
| -- [jqLite] and jQuery were extended with helper method `injector()` that simplifies the access to |
17 |
| - the application injector during debugging. |
| 16 | +- [jqLite][jqLite2] and jQuery were extended with helper method `injector()` that simplifies the |
| 17 | + access to the application injector during debugging. |
18 | 18 | - Rewrite of $xhr service and its dependencies, which was replaced with [$http] service.
|
19 | 19 | The $browser.xhr and its mock were replaced by [$httpBackend] and its
|
20 | 20 | [unit testing][unit-testing $httpBackend] and [end-to-end testing][e2e-testing $httpBackend]
|
21 | 21 | mocks. The $resource service api and functionality was preserved, with the exception of caching,
|
22 | 22 | which is not happening automatically as it used it in the past (verifyCache has no effect).
|
23 |
| -- [$q] - Q-like deferred/promise implementation |
| 23 | +- [$q] - Q-like deferred/promise implementation |
24 | 24 | ([commit](https://github.com/angular/angular.js/commit/1cdfa3b9601c199ec0b45096b38e26350eca744f))
|
25 | 25 | - Transparent data-binding to promises in templates. [Example](http://jsfiddle.net/IgorMinar/aNSWu/)
|
26 | 26 | ([commit](https://github.com/angular/angular.js/commit/78b6e8a446c0e38075c14b724f3cdf345c01fa06))
|
|
52 | 52 | - scope.$service is no more (because injector creates scope and not the other way around),
|
53 | 53 | if you really can't get services injected and need to fetch them manually then, get hold of
|
54 | 54 | [$injector] service and call $injector.get('serviceId')
|
| 55 | +- angular.service style service registration was replaced with module system, please see |
| 56 | + [angular.module] api and [DI documentation][guide2.di] for more info. |
55 | 57 | - the $xhr service was replaced with [$http] with promise based apis.
|
56 | 58 | - [unit-testing $httpBackend]'s expect method (the replacement for $browser.xhr.expect) is stricter -
|
57 | 59 | the order of requests matters and a single request expectation can handle only a single request.
|
@@ -1070,15 +1072,18 @@ with the `$route` service
|
1070 | 1072 | [angular.bootstrap]: http://docs-next.angularjs.org/api/angular.bootstrap
|
1071 | 1073 | [$anchorScroll]: http://docs-next.angularjs.org/api/angular.module.ng.$anchorScroll
|
1072 | 1074 | [$cacheFactory]: http://docs-next.angularjs.org/api/angular.module.ng.$cacheFactory
|
1073 |
| -[bootstraping]: http://docs-next.angularjs.org/guide/dev_guide.bootstrap |
| 1075 | +[bootstrapping]: http://docs-next.angularjs.org/guide/dev_guide.bootstrap |
1074 | 1076 | [angular.copy]: http://docs-next.angularjs.org/api/angular.copy
|
1075 | 1077 | [ng:app]: http://docs-next.angularjs.org/api/angular.directive.ng:app
|
1076 | 1078 | [$compile]: http://docs-next.angularjs.org/api/angular.module.ng.$compile
|
1077 | 1079 | [$filterProvider]: http://docs-next.angularjs.org/api/angular.module.ng.$filterProvider
|
1078 | 1080 | [angular.Module]: http://docs-next.angularjs.org/api/angular.Module
|
| 1081 | +[angular.module]: http://docs-next.angularjs.org/api/angular.module |
1079 | 1082 | [filter]: http://docs-next.angularjs.org/api/angular.module.ng.$filter.filter
|
1080 | 1083 | [limitTo]: http://docs-next.angularjs.org/api/angular.module.ng.$filter.limitTo
|
1081 | 1084 | [orderBy]: http://docs-next.angularjs.org/api/angular.module.ng.$filter.orderBy
|
1082 | 1085 | [$browser.defer.flush]: http://docs-next.angularjs.org/api/angular.module.ngMock.$browser#defer.flush
|
1083 | 1086 | [inject]: http://docs-next.angularjs.org/api/angular.mock.inject
|
1084 | 1087 | [module]: http://docs-next.angularjs.org/api/angular.mock.module
|
| 1088 | +[guide2.di]: http://docs-next.angularjs.org/guide/dev_guide.di |
| 1089 | +[jqLite2]: http://docs.angularjs.org/#!/api/angular.element |
0 commit comments