I understand that I can assign local template variables to hold element reference like following
<input #myInput />
But can I declare a variable with custom value?
For example:
<!-- Somewhere I do #obj = model.data.something -->
<input [(ngModel)]="obj.inputA" >
<input [(ngModel)]="obj.inputB" >
Instead of doing
<input [(ngModel)]="model.data.something.inputA" >
<input [(ngModel)]="model.data.something.inputB" >