parent
3341a97154
commit
ae01c70bba
@ -469,10 +469,8 @@ export interface Directive {
|
||||
/**
|
||||
* Type of the Component metadata.
|
||||
*/
|
||||
export const Directive: DirectiveDecorator = makeDecorator(
|
||||
'Directive', (dir: Directive = {}) => dir, undefined, undefined,
|
||||
(type: Type<any>, meta: Directive) => (R3_COMPILE_DIRECTIVE || (() => {}))(type, meta));
|
||||
|
||||
export const Directive: DirectiveDecorator =
|
||||
makeDecorator('Directive', (dir: Directive = {}) => dir);
|
||||
/**
|
||||
* Component decorator interface
|
||||
*
|
||||
|
@ -199,6 +199,9 @@ export interface NgModule {
|
||||
}
|
||||
|
||||
/**
|
||||
* Decorator that marks the following class as an NgModule, and supplies
|
||||
* configuration metadata for it.
|
||||
*
|
||||
* @Annotation
|
||||
*/
|
||||
export const NgModule: NgModuleDecorator = makeDecorator(
|
||||
|
Loading…
x
Reference in New Issue
Block a user