File

src/app/green/green-light/green-light.component.ts

Implements

OnInit

Metadata

selector color-green-light
templateUrl ../../shared/templates/sub-color.component.html

Constructor

constructor()

Methods

ngOnInit
ngOnInit()
Returns: void

Properties

Public store
store: ISubColor
import { ISubColor } from './../../model/IColor';
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'color-green-light',
  templateUrl: '../../shared/templates/sub-color.component.html'
})
export class GreenLightComponent implements OnInit {

  public store: ISubColor = {
    color: 'green-light',
    component: 'GreenLightComponent'
  };

  constructor() {}

  ngOnInit() {}


}
<div class="sub-component md-border-dotted">
    <i class="material-icons md-big {{store.color}}">brightness_1</i>
    <p class="{{store.color}}">{{store.component}}</p>
</div>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""