はじめに 大規模なSPAでは必要不可欠なルーティングの機能をAngular2で試してみます。 Angular2の2.0.0-beta.0を使います。 Router まずは最小限の例を示しましょう。 beta.0で更新された5 MIN QUICKSTARTを参考にディレクトリ構成は以下のようにしています。 my-app ├ node_modules ├ app │ ├ app.component.ts │ ├ page1.component.ts │ ├ page2.component.ts │ └ boot.ts ├ index.html ├ package.json └ tsconfig.json <html> <head> <title>Angular 2 QuickStart</title> <script src="node_modules/angular2/bundles/ang
