Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created March 26, 2018 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/6dac45c977988bfa511cda989c5b624d to your computer and use it in GitHub Desktop.
Save debugmodedotnet/6dac45c977988bfa511cda989c5b624d to your computer and use it in GitHub Desktop.
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<div>
<h1>Messages</h1>
<app-message [message]='message'></app-message>
</div>`
})
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