]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-main/plugins/plugin-placeholder.component.ts
Use separate file for plugin placeholder component
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / plugins / plugin-placeholder.component.ts
CommitLineData
62bc0352
C
1import { Component, Input } from '@angular/core'
2import { PluginElementPlaceholder } from '@shared/models'
3
4@Component({
5 selector: 'my-plugin-placeholder',
ceb8f322 6 template: '<div [id]="getId()"></div>',
94fbe5c4 7 styleUrls: [ './plugin-placeholder.component.scss' ]
62bc0352
C
8})
9
10export class PluginPlaceholderComponent {
11 @Input() pluginId: PluginElementPlaceholder
12
13 getId () {
14 return 'plugin-placeholder-' + this.pluginId
15 }
16}