-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(angular): update to angular 2.0.0-rc.3
- Loading branch information
1 parent
5da27e7
commit 97803a2
Showing
8 changed files
with
76 additions
and
67 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
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,19 +1,8 @@ | ||
import {Component} from '@angular/core'; | ||
import {HTTP_BINDINGS} from '@angular/http'; | ||
import {Router, Routes} from '@angular/router'; | ||
|
||
import {BuildComponent} from './build/build.component'; | ||
import {ChampionsComponent} from './champions/champions.component'; | ||
import {FeaturesComponent} from './features/features.component'; | ||
import {RegionsComponent} from './region/region.component'; | ||
import {Router} from '@angular/router'; | ||
|
||
@Component({selector: 'app', template: '<router-outlet></router-outlet>'}) | ||
|
||
@Routes([ | ||
{path: '/:region/:champion/summoner/:summoner', component: BuildComponent}, {path: '/:region/:champion/build', component: BuildComponent}, {path: '/:region/:champion', component: FeaturesComponent}, | ||
{path: '/:region', component: ChampionsComponent}, {path: '/', component: RegionsComponent} | ||
]) | ||
|
||
export class AppComponent { | ||
constructor(private router: Router) {} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {RouterConfig, provideRouter} from '@angular/router'; | ||
|
||
import {BuildComponent} from './build/build.component'; | ||
import {ChampionsComponent} from './champions/champions.component'; | ||
import {FeaturesComponent} from './features/features.component'; | ||
import {RegionsComponent} from './region/region.component'; | ||
|
||
export const routes: RouterConfig = [ | ||
{path: ':region/:champion/summoner/:summoner', component: BuildComponent}, {path: ':region/:champion/build', component: BuildComponent}, {path: ':region/:champion', component: FeaturesComponent}, | ||
{path: ':region', component: ChampionsComponent}, {path: '', component: RegionsComponent} | ||
]; | ||
|
||
export const APP_ROUTER_PROVIDERS = [provideRouter(routes)]; |
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