I successfully managed to downgrade Angular 7 component to Angular 1, but I faced a little problem which I have tried to solve many ways.
My downgraded component has output parameter as follows:
@Output()isValid = new EventEmitter<boolean>();
and it is triggered as follows:
this.isValid.emit(false);
In my Angular 1 component, I used it after downgrading it as follows:
- in template:
<downgrade-employee-selector (is-valid)="{{vm.validateEmployeeSelector($event)}}"> </downgrade-employee-selector>
- in ts:
self.validateEmployeeSelector = ($event) => {console.log($event);}
It is working fine but in the Angular 1 function $event
value is always undefined and I can not understand how it is working.