2016-04-28 20:50:03 -04:00
|
|
|
import {Component, Inject} from '@angular/core';
|
2016-05-04 13:00:59 -04:00
|
|
|
import {FORM_DIRECTIVES, NgIf, NgFor} from '@angular/common';
|
2016-04-29 00:57:16 -04:00
|
|
|
import {MyComp} from './a/multiple_components';
|
|
|
|
|
2016-05-02 12:38:46 -04:00
|
|
|
@Component({
|
|
|
|
selector: 'basic',
|
|
|
|
templateUrl: './basic.html',
|
|
|
|
styles: ['.red { color: red }'],
|
|
|
|
styleUrls: ['./basic.css'],
|
2016-05-04 13:00:59 -04:00
|
|
|
directives: [MyComp, FORM_DIRECTIVES, NgIf, NgFor]
|
2016-05-02 12:38:46 -04:00
|
|
|
})
|
2016-04-29 00:57:16 -04:00
|
|
|
export class Basic {
|
|
|
|
ctxProp: string;
|
2016-05-03 20:31:40 -04:00
|
|
|
ctxBool: boolean;
|
2016-05-04 13:00:59 -04:00
|
|
|
ctxArr: any[] = [];
|
2016-05-03 20:31:40 -04:00
|
|
|
constructor() { this.ctxProp = 'initialValue'; }
|
2016-04-29 00:57:16 -04:00
|
|
|
}
|