| 98 | standalone: false, |
| 99 | }) |
| 100 | export class Ng1HeroComponentWrapper extends UpgradeComponent { |
| 101 | // The names of the input and output properties here must match the names of the |
| 102 | // `<` and `&` bindings in the AngularJS component that is being wrapped |
| 103 | hero = input.required<Hero>(); |
| 104 | onRemove = output<void>(); |
| 105 | |
| 106 | constructor(elementRef: ElementRef, injector: Injector) { |
| 107 | // We must pass the name of the directive as used by AngularJS to the super |
| 108 | super('ng1Hero', elementRef, injector); |
| 109 | } |
| 110 | } |
| 111 | // #enddocregion |
| 112 | |
| 113 | // #docregion ng2-module |