Skip to content

Instantly share code, notes, and snippets.

@jhades
Last active May 12, 2016 07:15
Show Gist options
  • Save jhades/5f30a8e3138bd2261293494858b54fdb to your computer and use it in GitHub Desktop.
Save jhades/5f30a8e3138bd2261293494858b54fdb to your computer and use it in GitHub Desktop.
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