1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { Component, Input } from '@angular/core' import { PluginElementPlaceholder } from '@shared/models' @Component({ selector: 'my-plugin-placeholder', template: '<div [id]="getId()"></div>' }) export class PluginPlaceholderComponent { @Input() pluginId: PluginElementPlaceholder getId () { return 'plugin-placeholder-' + this.pluginId } }