Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Dynamic component
import { Component, Input } from '@angular/core';
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