Last active
May 12, 2016 07:15
-
-
Save jhades/5f30a8e3138bd2261293494858b54fdb to your computer and use it in GitHub Desktop.
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 {bootstrap} from "@angular/platform-browser-dynamic"; | |
@Component({ | |
selector: 'app', | |
template: ` | |
<label>Message:</label>{{ model?.message }} | |
` | |
}) | |
export class App { | |
message = 'Hello World !'; | |
condition = true; | |
model = { | |
message: 'Hello World !' | |
}; | |
get calculatedValue() { | |
return "Calculated Value"; | |
} | |
} | |
bootstrap(App); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment