2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-06-08 19:38:52 -04:00
|
|
|
import {FORM_DIRECTIVES, NgFor, NgIf} from '@angular/common';
|
2016-04-28 20:50:03 -04:00
|
|
|
import {Component, Inject} from '@angular/core';
|
2016-06-08 19:38:52 -04:00
|
|
|
|
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
|
|
|
}
|