import { Directive } from '@angular/core';
      
      @Directive({ selector: '[selector-name]' })
      export class NameDirective {
        constructor() { }
      }
      Typescript language logo
      your recipe card header background

      Angular Directive

      Angular TypeScript Recipes

      In this example, the @Directive annotation is used to declare a class named NameDirective. The constructor of this class will be automatically invoked when the selector is invoked.

      Library: angular

      Shortcut: angular.directive

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.