Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Angular 2 component
import { Component } from '@angular/core';
@Component({
selector: 'app-container',
template: `<h1>{{message}}</h1>`
})
export class AppComponent {
message : string = "Hello World";
constructor() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment