-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fadcf03
commit c50bc92
Showing
10 changed files
with
100 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,44 @@ | ||
(function (global) { | ||
var paths = { | ||
// paths serve as alias | ||
'npm:': 'base/node_modules/' | ||
}; | ||
var map = { | ||
'rxjs': 'base/node_modules/rxjs', | ||
'@angular': 'base/node_modules/@angular' | ||
// angular bundles | ||
'@angular/core': 'npm:@angular/core/bundles/core.umd.js', | ||
'@angular/common': 'npm:@angular/common/bundles/common.umd.js', | ||
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', | ||
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', | ||
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', | ||
'@angular/http': 'npm:@angular/http/bundles/http.umd.js', | ||
'@angular/router': 'npm:@angular/router/bundles/router.umd.js', | ||
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', | ||
|
||
// angular testing umd bundles | ||
'@angular/core/testing': 'npm:@angular/core/bundles/core-testing.umd.js', | ||
'@angular/common/testing': 'npm:@angular/common/bundles/common-testing.umd.js', | ||
'@angular/compiler/testing': 'npm:@angular/compiler/bundles/compiler-testing.umd.js', | ||
'@angular/platform-browser/testing': 'npm:@angular/platform-browser/bundles/platform-browser-testing.umd.js', | ||
'@angular/platform-browser-dynamic/testing': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js', | ||
'@angular/http/testing': 'npm:@angular/http/bundles/http-testing.umd.js', | ||
'@angular/router/testing': 'npm:@angular/router/bundles/router-testing.umd.js', | ||
'@angular/forms/testing': 'npm:@angular/forms/bundles/forms-testing.umd.js', | ||
|
||
// other libraries | ||
'rxjs': 'npm:rxjs', | ||
}; | ||
var packages = { | ||
'rxjs': { defaultExtension: 'js' }, | ||
rxjs: { | ||
defaultExtension: 'js' | ||
} | ||
}; | ||
var packageNames = [ | ||
'@angular/common', | ||
'@angular/compiler', | ||
'@angular/core', | ||
'@angular/platform-browser', | ||
'@angular/platform-browser-dynamic' | ||
]; | ||
packageNames.forEach(function (pkgName) { | ||
packages[pkgName] = { main: 'index.js', defaultExtension: 'js' }; | ||
}); | ||
var config = { | ||
map: map, | ||
packages: packages | ||
paths: paths, | ||
map: map, | ||
packages: packages | ||
}; | ||
if (global.filterSystemConfig) { | ||
global.filterSystemConfig(config); | ||
global.filterSystemConfig(config); | ||
} | ||
System.config(config); | ||
})(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import {OpaqueToken, Provider, provide} from '@angular/core'; | ||
import {OpaqueToken, Provider} from '@angular/core'; | ||
|
||
export const WINDOW_GLOBAL = new OpaqueToken('angular2-google-maps window_global'); | ||
export const DOCUMENT_GLOBAL = new OpaqueToken('angular2-google-maps document_global'); | ||
|
||
export const BROWSER_GLOBALS_PROVIDERS: Provider[] = | ||
[provide(WINDOW_GLOBAL, {useValue: window}), provide(DOCUMENT_GLOBAL, {useValue: document})]; | ||
[{provide: WINDOW_GLOBAL, useValue: window}, {provide: DOCUMENT_GLOBAL, useValue: document}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters