src/components/weather-location/weather-location.component.ts
changeDetection | ChangeDetectionStrategy.OnPush |
selector | weather-location |
styles |
:host {
margin-top: 1em;
font-size: 1em;
}
|
template |
|
place
|
Type: |
import {
Component,
ChangeDetectionStrategy,
Input,
Output,
EventEmitter
} from '@angular/core';
@Component({
selector: 'weather-location',
changeDetection: ChangeDetectionStrategy.OnPush,
styles: [
`
:host {
margin-top: 1em;
font-size: 1em;
}
`
],
template: `
{{ place }}
`
})
export class WeatherLocationComponent {
@Input() place: string;
}