Created
July 6, 2016 03:07
-
-
Save jorgeucano/26e5bac215c0e6ecc950220d1007ae31 to your computer and use it in GitHub Desktop.
app componente final
This file contains 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
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