ov-upgrade-component-generator
Version:
Node application in order to generate ng2 upgraded components from ng1 components
18 lines (13 loc) • 509 B
text/typescript
import { Input, Directive, ElementRef, Injector, SimpleChanges } from '@angular/core';
import { UpgradeComponent } from '@angular/upgrade/static';
({
selector: 'sample-component'
})
export class SampleComponentDirective extends UpgradeComponent {
() test: any;
() customer: any;
() customerChange: EventEmitter < any >;
constructor(elementRef: ElementRef, injector: Injector) {
super('sampleComponent', elementRef, injector);
}
}