Created
June 20, 2018 07:11
-
-
Save gibotsharshita/011859c09d8ac7c33c8dcc215347ef7c 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, Input, OnInit} from '@angular/core'; | |
@Component({ | |
selector: 'load-me', | |
template: `<h3 style="background-color: #00b0e8"> | |
I am a component loaded from a Gist! {{inputText}}</h3>` | |
}) | |
export class LoadMeComp implements OnInit{ | |
@Input() inputText: string; | |
constructor() { | |
} | |
ngOnInit() { | |
this.inputText = 'harshita'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment