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