gpt4 book ai didi

javascript - Angular - 将版本 4 beta 加载到 plunker 中

转载 作者:行者123 更新时间:2023-12-03 05:15:11 27 4
gpt4 key购买 nike

我有一个plunker使用 Angular 版本 2。在 GitHub 中,主分支是版本 4-beta,我如何加载较新的版本,以便我可以在 plunker 中使用东西?

Systemjs 配置:

  map: {

'app': './src',

'@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/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',

'rxjs': 'npm:rxjs',
'typescript': 'npm:typescript@2.0.2/lib/typescript.js'
},

最佳答案

您可以像这样指定版本:

map: {
...
'@angular/core': 'npm:@angular/core@4.0.0-beta.3/bundles/core.umd.js',
'@angular/common': 'npm:@angular/common@4.0.0-beta.3/bundles/common.umd.js',
'@angular/compiler': 'npm:@angular/compiler@4.0.0-beta.3/bundles/compiler.umd.js',
'@angular/platform-browser': 'npm:@angular/platform-browser@4.0.0-beta.3/bundles/platform-browser.umd.js',
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic@4.0.0-beta.3/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'npm:@angular/http@4.0.0-beta.3/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router@4.0.0-beta.3/bundles/router.umd.js',
'@angular/forms': 'npm:@angular/forms@4.0.0-beta.3/bundles/forms.umd.js',
...
}

关于javascript - Angular - 将版本 4 beta 加载到 plunker 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41636695/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com