Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { Component, OnInit } from '@angular/core';
selector: 'app-root',
template: `
<app-message [message]='message'></app-message>
export class AppComponent implements OnInit {
message: any;
ngOnInit() {
this.message = 'Hello World !';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment