I want to know if I need to implement this in template tag only
template: ` <p>Child: {{sharedVar}}</p>
<input [(ngModel)]="sharedVar"
(ngModelChange)="change()">
...because in my component I have
@Component({
selector: 'app-transaction',
templateUrl: './transaction.component.html',
styleUrls: ['./transaction.component.scss', ],
})
like this. Can I implement it in my html directly
I referred it from -
Angular 2 ngModel in child component updates parent component property