File

src/app/color-button/color-button.component.ts

Implements

OnInit

Metadata

selector app-color-button
styleUrls color-button.component.css
templateUrl ./color-button.component.html

Index

Methods

Constructor

constructor()

Methods

ngOnInit
ngOnInit()
Returns : void
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-color-button',
  templateUrl: './color-button.component.html',
  styleUrls: ['./color-button.component.css']
})
export class ColorButtonComponent implements OnInit {

  constructor() { }

  ngOnInit() {
  }

}
<p>
  color-button works!
</p>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""