2016-06-23 09:47:54 -07: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-07-18 03:50:31 -07:00
|
|
|
import {NgFor, NgIf} from '@angular/common';
|
2016-08-12 14:45:36 -07:00
|
|
|
import {Component, Inject, LOCALE_ID, TRANSLATIONS_FORMAT} from '@angular/core';
|
2016-07-18 03:50:31 -07:00
|
|
|
import {FORM_DIRECTIVES} from '@angular/forms';
|
2016-06-08 16:38:52 -07:00
|
|
|
|
2016-06-30 13:07:17 -07:00
|
|
|
import {MultipleComponentsMyComp} from './a/multiple_components';
|
2016-04-28 21:57:16 -07:00
|
|
|
|
2016-05-02 09:38:46 -07:00
|
|
|
@Component({
|
|
|
|
|
selector: 'basic',
|
|
|
|
|
templateUrl: './basic.html',
|
|
|
|
|
styles: ['.red { color: red }'],
|
|
|
|
|
styleUrls: ['./basic.css'],
|
|
|
|
|
})
|
2016-06-30 13:07:17 -07:00
|
|
|
export class BasicComp {
|
2016-04-28 21:57:16 -07:00
|
|
|
ctxProp: string;
|
2016-05-03 17:31:40 -07:00
|
|
|
ctxBool: boolean;
|
2016-05-04 10:00:59 -07:00
|
|
|
ctxArr: any[] = [];
|
2016-08-12 14:45:36 -07:00
|
|
|
constructor(
|
|
|
|
|
@Inject(LOCALE_ID) public localeId: string,
|
|
|
|
|
@Inject(TRANSLATIONS_FORMAT) public translationsFormat: string) {
|
|
|
|
|
this.ctxProp = 'initialValue';
|
|
|
|
|
}
|
2016-04-28 21:57:16 -07:00
|
|
|
}
|