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 core/index defined in core/src/metadata/directives.ts