When using ngTemplateOutlet and context:
<ng-container *ngTemplateOutlet="template; context: Context"></ng-container>
The context data:
this.Context = {
$implicit: this.userName,
'password': this.password,
'Login': this.Login,
'Register': this.Register
};
can't be bound to a 2 way binding, is this a limitation or am i doing something wrong?
<ng-template let-username #loginpage>
<TextField class="input" hint="Email" keyboardType="email" [(ngModel)]="username"></TextField>
</ng-template>
I am getting this error:
ns-renderer: Cannot assign to a reference or variable!
ngModel
can't assign to local variables. You can only assign to properties (fields) of your component plnkr.co/edit/xlZgPVU2UQnVg4uoeKvj?p=preview – Antilogarithm