chore(test.typings): instrument against examples folder
chore(typing_spec): delete unused typing_spec files Closes #7743
This commit is contained in:

committed by
Jason Kurian

parent
440aca86a3
commit
3e593b8221
@ -1,15 +0,0 @@
|
||||
import {Component} from 'angular2/core';
|
||||
import {bootstrap} from 'angular2/platform/browser';
|
||||
|
||||
@Component({
|
||||
selector: 'my-app',
|
||||
template: '<h1>Hello {{ name }}</h1>'
|
||||
})
|
||||
// Component controller
|
||||
class MyAppComponent {
|
||||
name: string;
|
||||
|
||||
constructor() { this.name = 'Alice'; }
|
||||
}
|
||||
|
||||
bootstrap(MyAppComponent);
|
@ -1,28 +0,0 @@
|
||||
import {Component} from 'angular2/core';
|
||||
import {bootstrap} from 'angular2/platform/browser';
|
||||
import {RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS} from 'angular2/router';
|
||||
|
||||
@Component({
|
||||
selector: 'my-app',
|
||||
template: '<h1>Hello</h1>',
|
||||
})
|
||||
class FooCmp {
|
||||
constructor(a: string, b: number) {}
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'my-app',
|
||||
template: '<h1>Hello {{ name }}</h1><router-outlet></router-outlet>',
|
||||
directives: ROUTER_DIRECTIVES
|
||||
})
|
||||
@RouteConfig([
|
||||
{path: '/home', component: FooCmp}
|
||||
])
|
||||
class MyAppComponent {
|
||||
name: string;
|
||||
|
||||
constructor() { this.name = 'Alice'; }
|
||||
}
|
||||
|
||||
bootstrap(MyAppComponent, ROUTER_PROVIDERS);
|
Reference in New Issue
Block a user