Commit 07591b18 by Emile TAVERNE

Suppression decorator

parent 78ff4f05
import {Component, isDevMode} from '@angular/core';
export function AiutComponent(args: any = {}): (cls: any) => any {
const ngCompDecorator = Component(args);
return function (compType: any) {
ngCompDecorator(compType);
if (isDevMode()) {
const orignalChange = compType.ngOnChange;
compType.ngOnChange = () => {
console.info(`${compType.constructor.name} changed`);
orignalChange.call(compType);
};
}
};
}
export * from './component.decorator';
......@@ -4,7 +4,6 @@
export * from './lib/aitp-utils.module';
export * from './lib/components';
export * from './lib/decorators';
export * from './lib/directives';
export * from './lib/operators';
export * from './lib/services';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment