From 5599b55b04788c2e327d7551a4a699d75516dd21 Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Wed, 5 Jun 2013 15:30:31 -0700
Subject: 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:
```
...
...
var myApp = angular.module('myApp', ['someOtherModule']);
...
```
After:
```
...
...
var myApp = angular.module('myApp', ['ngRoute', 'someOtherModule']);
...
```
Closes #2804
---
angularFiles.js | 38 ++++++++++++--------------------------
1 file changed, 12 insertions(+), 26 deletions(-)
(limited to 'angularFiles.js')
diff --git a/angularFiles.js b/angularFiles.js
index 39ccec90..db672383 100755
--- a/angularFiles.js
+++ b/angularFiles.js
@@ -23,8 +23,6 @@ angularFiles = {
'src/ng/log.js',
'src/ng/parse.js',
'src/ng/q.js',
- 'src/ng/route.js',
- 'src/ng/routeParams.js',
'src/ng/rootScope.js',
'src/ng/sniffer.js',
'src/ng/window.js',
@@ -60,7 +58,6 @@ angularFiles = {
'src/ng/directive/ngStyle.js',
'src/ng/directive/ngSwitch.js',
'src/ng/directive/ngTransclude.js',
- 'src/ng/directive/ngView.js',
'src/ng/directive/script.js',
'src/ng/directive/select.js',
'src/ng/directive/style.js'
@@ -69,6 +66,10 @@ angularFiles = {
'angularSrcModules': [
'src/ngCookies/cookies.js',
'src/ngResource/resource.js',
+ 'src/ngRoute/routeUtils.js',
+ 'src/ngRoute/route.js',
+ 'src/ngRoute/routeParams.js',
+ 'src/ngRoute/directive/ngView.js',
'src/ngSanitize/sanitize.js',
'src/ngSanitize/directive/ngBindHtml.js',
'src/ngSanitize/filter/linky.js',
@@ -106,19 +107,14 @@ angularFiles = {
'test/ngScenario/jstd-scenario-adapter/*.js',
'test/*.js',
'test/auto/*.js',
- 'test/ng/*.js',
- 'test/ng/directive/*.js',
- 'test/ng/filter/*.js',
+ 'test/ng/**/*.js',
'test/ngCookies/*.js',
'test/ngResource/*.js',
- 'test/ngSanitize/*.js',
- 'test/ngSanitize/directive/*.js',
- 'test/ngSanitize/filter/*.js',
+ 'test/ngRoute/**/*.js',
+ 'test/ngSanitize/**/*.js',
'test/ngMock/*.js',
- 'test/ngMobile/*.js',
- 'test/ngMobile/directive/*.js',
- 'docs/component-spec/bootstrap/*.js',
- 'docs/component-spec/*.js'
+ 'test/ngMobile/**/*.js',
+ 'docs/component-spec/**/*.js'
],
'jstd': [
@@ -153,25 +149,15 @@ angularFiles = {
'lib/jasmine/jasmine.js',
'lib/jasmine-jstd-adapter/JasmineAdapter.js',
'build/angular.js',
- 'src/ngMock/angular-mocks.js',
- 'src/ngCookies/cookies.js',
- 'src/ngResource/resource.js',
- 'src/ngMobile/mobile.js',
- 'src/ngMobile/swipe.js',
- 'src/ngMobile/directive/ngClick.js',
- 'src/ngMobile/directive/ngSwipe.js',
- 'src/ngSanitize/sanitize.js',
- 'src/ngSanitize/directive/ngBindHtml.js',
- 'src/ngSanitize/filter/linky.js',
+ '@angularSrcModules',
'src/ngScenario/browserTrigger.js',
'test/matchers.js',
'test/testabilityPatch.js',
'test/ngMock/*.js',
'test/ngCookies/*.js',
+ 'test/ngRoute/**/*.js',
'test/ngResource/*.js',
- 'test/ngSanitize/*.js',
- 'test/ngSanitize/directive/*.js',
- 'test/ngSanitize/filter/*.js',
+ 'test/ngSanitize/**/*.js',
'test/ngMobile/**/*.js'
],
--
cgit v1.2.3