I have an Angular component that implements a ControlValueAccessor , but the writeValue method writeValue never called with the initial value from ngModel .
template:
<my-comp [(ngModel)]="$ctrl.activeUser"></my-comp>
component downgrades to AngularJS via:
.directive('myComp', downgradeComponent({ component: MyComp, inputs: [], outputs: [], }));
I tried adding ngModel to inputs and outputs , but it does not work.
angular angular-components
David Fregoli
source share