how could you achieve in Angular 4 that when you register in a checkbox save an \"A\" or \"B\" value. As much as I try, he is only sending me true or false, I hope someone c
Another approach is to use ngModelChange:
ngModelChange
Template:
Controller:
onChecked(obj: any, isChecked: boolean){ console.log(obj, isChecked); // {}, true || false }
I prefer this method because here you get the relevant object and true/false values of a checkbox.
true
false