0
2
JRJose Romero
This code defines a named selector that can be used in a template. The selector is defined as a class and the OnInit method is registered as an ngOnInit method.
Library: angular
Shortcut: angular.component.inline
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'selector-name',
template: ``
})
export class NameComponent implements OnInit {
constructor() { }
ngOnInit() { }
}