-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
* upgrade to angular2 rc4 * increase allScriptsTimeout and getPageTimeout for the angular 2 test
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.js.map |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div class="container"> | ||
<h1 class="title">Test App for Angular 2</h1> | ||
<nav class="nav"> | ||
<a [routerLink]="['Home']">home</a> | ||
<a [routerLink]="['Async']">async</a> | ||
<a [routerLink]="['/']">home</a> | ||
<a [routerLink]="['/async']">async</a> | ||
</nav> | ||
<router-outlet></router-outlet> | ||
</div> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
import { ROUTER_DIRECTIVES } from '@angular/router'; | ||
|
||
@Component({ | ||
selector: 'my-app', | ||
templateUrl: 'app/app.component.html', | ||
directives: [ ROUTER_DIRECTIVES ] | ||
}) | ||
export class AppComponent { | ||
|
||
} |
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { provideRouter, RouterConfig } from '@angular/router'; | ||
import { HomeComponent } from './home/home.component'; | ||
import { AsyncComponent } from './async/async.component'; | ||
|
||
export const routes: RouterConfig = [ | ||
{ path: '', component: HomeComponent }, | ||
{ path: 'async', component: AsyncComponent } | ||
]; | ||
|
||
export const APP_ROUTER_PROVIDERS = [ | ||
provideRouter(routes) | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import {Component} from 'angular2/core'; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
templateUrl: 'app/home/home-component.html' | ||
templateUrl: 'app/home/home.component.html' | ||
}) | ||
export class HomeComponent { | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { bootstrap } from '@angular/platform-browser-dynamic'; | ||
import { provide } from '@angular/core'; | ||
import { HashLocationStrategy, LocationStrategy } from '@angular/common'; | ||
import { AppComponent } from './app.component'; | ||
import { APP_ROUTER_PROVIDERS } from './app.routes'; | ||
|
||
bootstrap(AppComponent, [ | ||
APP_ROUTER_PROVIDERS, | ||
provide(LocationStrategy, {useClass: HashLocationStrategy}) | ||
]) | ||
.catch(err => console.error(err)); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
System.config({ | ||
map: { | ||
'rxjs': '/node_modules/rxjs', | ||
'@angular': '/node_modules/@angular' | ||
}, | ||
packages: { | ||
'app': { | ||
main: 'boot.js', | ||
defaultExtension: 'js' | ||
}, | ||
'@angular/core': { | ||
main: 'index.js', | ||
defaultExtension: 'js' | ||
}, | ||
'@angular/compiler': { | ||
main: 'index.js', | ||
defaultExtension: 'js' | ||
}, | ||
'@angular/common': { | ||
main: 'index.js', | ||
defaultExtension: 'js' | ||
}, | ||
'@angular/platform-browser': { | ||
main: 'index.js', | ||
defaultExtension: 'js' | ||
}, | ||
'@angular/platform-browser-dynamic': { | ||
main: 'index.js', | ||
defaultExtension: 'js' | ||
}, | ||
'@angular/router': { | ||
main: 'index.js', | ||
defaultExtension: 'js' | ||
}, | ||
'rxjs': { | ||
defaultExtension: 'js' | ||
} | ||
} | ||
}); |