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