File

src/components/weather-location/weather-location.component.ts

Metadata

changeDetection ChangeDetectionStrategy.OnPush
selector weather-location
styles :host { margin-top: 1em; font-size: 1em; }
template
{{ place }}

Inputs

place

Type: string

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;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""