File

src/app/red/red-dark/red-dark.component.ts

Implements

OnInit

Metadata

selector color-red-dark
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-red-dark',
  templateUrl: '../../shared/templates/sub-color.component.html'
})
export class RedDarkComponent implements OnInit {

 public store: ISubColor = {
    color: 'red-dark',
    component: 'RedDarkComponent'
  };

 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 ""