aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/shared-main/angular/peertube-template.directive.ts
blob: dc0cde12d2a8f243a54489aaecae569380f5aa6b (plain) (tree)
1
2
3
4
5
6
7
8


                                                             
                                                                

                          

                                                           




                                                   
import { Directive, Input, TemplateRef } from '@angular/core'

@Directive({
  // eslint-disable-next-line @angular-eslint/directive-selector
  selector: '[ptTemplate]'
})
export class PeerTubeTemplateDirective <T extends string> {
  @Input('ptTemplate') name: T

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