Angular

What it does

Marks a class as an Angular directive and collects directive configuration metadata.

How to use

import {Directive} from '@angular/core'; @Directive({ selector: 'my-directive', }) export class MyDirective { }

Description

exported from @angular/core/index defined in @angular/core/src/metadata/directives.ts