Skip to content

Instantly share code, notes, and snippets.

@jorgeucano
Created July 6, 2016 03:01
Show Gist options
  • Save jorgeucano/5e8c8b63757671e9944b66bdeb72b501 to your computer and use it in GitHub Desktop.
Save jorgeucano/5e8c8b63757671e9944b66bdeb72b501 to your computer and use it in GitHub Desktop.
cambio la definicion de app.component.ts
export class AppComponent{
user: User;
isLoggingIn = true;
constructor(){
this.user = new User();
}
submit():void{
alert("esta el mail: " + this.user.email);
}
toggleDisplay(){
this.isLoggingIn = !this.isLoggingIn;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment