ja hat alles funktioniert.
Notwendigkeit zu suchen und alle Importe für NG2 ersetzen
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
und laufen:
npm install --save @angular/core @angular/compiler @angular/common @angular/platform-browser @angular/platform-browser-dynamic [email protected] [email protected]
auch müssen Sie diese Änderungen vornehmen:
RouterLink -> RO UTER_DIRECTIVES RouteConfig -> Routen RouteParams -> RouteSegment
RouteSegment eine andere Schnittstelle verfügt, verwenden getParam (string) anstelle von get (string)
import {BrowserDomAdapter} from '@angular/platform-browser/src/browser/browser_adapter';
Grüße
Sean