Created
May 2, 2016 14:15
-
-
Save jorgeucano/b19d1ba07b20a8cb427030baf0ba3490 to your computer and use it in GitHub Desktop.
Entendiendo el componente en angular2
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
@Component({ | |
selector:'hello-world', | |
template: ` | |
<div> | |
<h1>Hello {{name}}!</h1> | |
</div> | |
` | |
}) | |
class HelloWorld{ | |
name: String; | |
constructor(){ | |
this.name = '@jorgeucano'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment