6

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!

0 Answers0