Skip to content

Instantly share code, notes, and snippets.

@jorgeucano
Created July 6, 2016 03:07
Show Gist options
  • Save jorgeucano/26e5bac215c0e6ecc950220d1007ae31 to your computer and use it in GitHub Desktop.
Save jorgeucano/26e5bac215c0e6ecc950220d1007ae31 to your computer and use it in GitHub Desktop.
app componente final
import {Component} from "@angular/core";
import { User } from "./shared/user/user";
@Component({
selector: "my-app",
templateUrl: 'pages/login/login.html',
styleUrls: ["pages/login/login-common.css", "pages/login/login.css"]
})
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