You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
refactor($route): pull $route and friends into angular-route.js
$route, $routeParams and ngView have been pulled from core angular.js
to angular-route.js/ngRoute module.
This is was done to in order keep the core focused on most commonly
used functionality and allow community routers to be freely used
instead of $route service.
There is no need to panic, angular-route will keep on being supported
by the angular team.
Note: I'm intentionally not fixing tutorial links. Tutorial will need
bigger changes and those should be done when we update tutorial to
1.2.
BREAKING CHANGE: applications that use $route will now need to load
angular-route.js file and define dependency on ngRoute module.
Before:
```
...
<script src="angular.js"></script>
...
var myApp = angular.module('myApp', ['someOtherModule']);
...
```
After:
```
...
<script src="angular.js"></script>
<script src="angular-route.js"></script>
...
var myApp = angular.module('myApp', ['ngRoute', 'someOtherModule']);
...
```
Closes#2804
* | {@linkng.directive:ngView#animations ngView} | enter and leave |
21
+
* | {@linkngRoute.directive:ngView#animations ngView} | enter and leave |
22
22
* | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave |
23
23
* | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave |
24
24
* | {@link ng.directive:ngIf#animations ngIf} | enter and leave |
@@ -183,7 +183,7 @@ var $AnimatorProvider = function() {
183
183
*/
184
184
varAnimatorService=function(scope,attrs){
185
185
varanimator={};
186
-
186
+
187
187
/**
188
188
* @ngdoc function
189
189
* @name ng.animator#enter
@@ -198,7 +198,7 @@ var $AnimatorProvider = function() {
198
198
* @param {jQuery/jqLite element} after the sibling element (which is the previous element) of the element that will be the focus of the enter animation
0 commit comments