Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dynamic component
import { Component, Input } from '@angular/core';
@Component({
selector: 'hello',
template: `<h1>Hello {{name}}!</h1>`,
styles: [`h1 { font-family: Lato; }`]
})
export class DynamicComponent {
@Input() name: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.