chore(core): remove @View annotation

Closes #7495
This commit is contained in:
Brian Ford
2016-03-08 13:36:48 -08:00
parent 095db673c5
commit f9fb72fb0e
85 changed files with 588 additions and 599 deletions

View File

@ -1,10 +1,8 @@
import {Component, View} from 'angular2/core';
import {Component} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
@Component({
selector: 'my-app'
})
@View({
selector: 'my-app',
template: '<h1>Hello {{ name }}</h1>'
})
// Component controller

View File

@ -1,11 +1,9 @@
import {Component, View} from 'angular2/core';
import {Component} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS} from 'angular2/router';
@Component({
selector: 'my-app'
})
@View({
selector: 'my-app',
template: '<h1>Hello</h1>',
})
class FooCmp {
@ -14,9 +12,7 @@ class FooCmp {
@Component({
selector: 'my-app'
})
@View({
selector: 'my-app',
template: '<h1>Hello {{ name }}</h1><router-outlet></router-outlet>',
directives: ROUTER_DIRECTIVES
})