Jim
Jim

Reputation: 2828

Nativescript Drawer Navigation bidirectional data binding

I am creating new app that uses template with drawer navigation

tns create HelloWorld --template tns-template-drawer-navigation-ng

Next, following the online tutorial i am testing bidirectional data binding. Following the example, onthe home page, I have one TextField which binds to email field using [(ngModel)]="email" and button (tap)=signUp(), also i have added NativeScriptFormsModule to the NgModule’s list of imports. For some reason the bidirectional data binding doesn't work only one way. Does anybody faced similar issue?

Upvotes: 0

Views: 127

Answers (1)

Nick Iliev
Nick Iliev

Reputation: 9670

Here you can find a PlayGround demo for creating two-way binding on TextField with ngModel - use it as reference to compare it with your code base

Upvotes: 1

Related Questions