feat(router): add a provider making angular1/angular2 integration easier (#12769)

This commit is contained in:
Victor Savkin
2016-11-09 13:33:33 -08:00
committed by vikerman
parent fe35bc34f6
commit 6e35d13fbc
9 changed files with 174 additions and 9 deletions

View File

@ -0,0 +1,20 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export default {
entry: '../../../dist/packages-dist/router/upgrade.js',
dest: '../../../dist/packages-dist/router/bundles/router-upgrade.umd.js',
format: 'umd',
moduleName: 'ng.router.upgrade',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/router': 'ng.router',
'@angular/upgrade/static': 'ng.upgrade.static'
}
};