Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2016 12:05
What would you like to do?
Angular 2 component
import { Component } from '@angular/core';
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