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,5 +1,5 @@
import {bootstrap} from 'angular2/bootstrap';
import {Component, Directive, View, Host, forwardRef, Provider} from 'angular2/core';
import {Component, Directive, Host, forwardRef, Provider} from 'angular2/core';
import {
ControlGroup,
NgIf,
@ -61,8 +61,9 @@ class CreditCardValidator {
* actual error message.
* To make it simple, we are using a simple map here.
*/
@Component({selector: 'show-error', inputs: ['controlPath: control', 'errorTypes: errors']})
@View({
@Component({
selector: 'show-error',
inputs: ['controlPath: control', 'errorTypes: errors'],
template: `
<span *ngIf="errorMessage !== null">{{errorMessage}}</span>
`,
@ -95,8 +96,8 @@ class ShowError {
}
@Component({selector: 'template-driven-forms'})
@View({
@Component({
selector: 'template-driven-forms',
template: `
<h1>Checkout Form</h1>