aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/angular/peertube-template.directive.ts
blob: e04c25d9a20fbf0c1cb7ffbe9a65f5b95ddc3936 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { Directive, Input, TemplateRef } from '@angular/core'

@Directive({
  selector: '[ptTemplate]'
})
export class PeerTubeTemplateDirective <T extends string> {
  @Input('ptTemplate') name: T

  constructor (public template: TemplateRef<any>) {
    // empty
  }
}