I wrote this component:
import {Component} from 'angular2/core';
@Component({
selector: 'app',
template: `
<div>
<div>Value is {{ value }}</div>
<input type="text" [(ngModel)]="value" />
</div>
`
})
export class App {
value: string;
constructor() {
this.value = 'Angular 2';
}
};
and it works. The question is: Why I don't need to import {FORM_DIRECTIVES}
from 'angular2/common';?
Regards,
Sarun
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.