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