//working
[ngModel]="bets.amount ? bets.amount : '' "
//not working
[(ngModel)]="bets.amount ? bets.amount : ''"
If I use [(ngModel)] will not work. how to make it work?
//working
[ngModel]="bets.amount ? bets.amount : '' "
//not working
[(ngModel)]="bets.amount ? bets.amount : ''"
If I use [(ngModel)] will not work. how to make it work?
I think the best practice is the using of the getter and setter and you put the condition in the get or set as you want