Created
February 11, 2017 21:58
-
-
Save wharley/7132535b3270f0b8e2355a1bb1d34403 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class User { | |
username: string; | |
password: string; | |
} | |
//dentro do export class HomaPage coloca esse codigo | |
user: User = { | |
username: '', | |
password: '' | |
}; | |
//usando no html [(ngModel)]="user.username" [(ngModel)]="user.password" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment