Created
March 26, 2018 03:10
-
-
Save debugmodedotnet/6dac45c977988bfa511cda989c5b624d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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