import { Component, OnInit } from '@angular/core';
        selector: 'selector-name',
        template: ``
      export class NameComponent implements OnInit {
        constructor() { }
        ngOnInit() { }
      Typescript language logo
      your recipe card header background

      Create Component Inline

      Angular TypeScript Recipes

      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


        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.