2016-05-03 12 views
0

wonderingは、新しいAngular 2リリース候補、特に新しいスコープ付きnpmパッケージを使用して誰かがjspmを試したことがありますか?新しい角度2スコープのNPMパッケージはJSPMで動作しますか?

npm install --save @angular/core @angular/compiler @angular/common @angular/platform-browser @angular/platform-browser-dynamic [email protected] [email protected] 

これをjspmと統合しますか?

よろしく

ショーン

答えて

1

それは、JSPMで、まさにこのように動作します。私はまだ私のIDEが正しく動作するためにNPMでそれらをインストールする必要がありますが、私は変更がすぐにその問題を修正することになるかもしれないと思う。

0

はい、すべて機能しています。

NG2

find ./ -type f -name "*.ts" -exec sed -i -e 's/angular2\/core/@angular\/core/g' {} \; 
    find ./ -type f -name "*.ts" -exec sed -i -e 's/angular2\/compiler/@angular\/compiler/g' {} \; 
    find ./ -type f -name "*.ts" -exec sed -i -e 's/angular2\/router/@angular\/router/g' {} \; 
    find ./ -type f -name "*.ts" -exec sed -i -e 's/angular2\/common/@angular\/common/g' {} \; 
    find ./ -type f -name "*.ts" -exec sed -i -e 's/angular2\/http/@angular\/http/g' {} \; 
angular2/core -> @angular/core 
angular2/compiler -> @angular/compiler 
angular2/common -> @angular/common 
angular2/platform/browser -> @angular/platform-browser (applications with precompiled templates) + @angular/platform-browser-dynamic (applications that compile templates on the fly) 
angular2/platform/server -> @angular/platform-server 
angular2/testing -> @angular/core/testing (it/describe/..) + @angular/compiler/testing (TestComponentBuilder) + @angular/platform-browser/testing 
angular2/upgrade -> @angular/upgrade 
angular2/http -> @angular/http 
angular2/router -> @angular/router-deprecated (snapshot of the component router from beta.17 for backwards compatibility) 
new package: @angular/router - component router with several breaking changes 

および実行のためのすべての輸入を検索し、交換する必要があります。

npm install --save @angular/core @angular/compiler @angular/common @angular/platform-browser @angular/platform-browser-dynamic [email protected] [email protected] 

もこれらの変更を行う必要があります。

RouterLink - > RO UTER_DIRECTIVES RouteConfig - >ルート RouteParams - > RouteSegment

RouteSegmentが異なるインターフェースを有する、

import {BrowserDomAdapter} from '@angular/platform-browser/src/browser/browser_adapter'; 

に関して

ショーン

代わりGET(列)のgetParam(文字列)を使用し
関連する問題