Chocobozzz/PeerTube

View on GitHub
client/src/app/shared/shared-main/common/peertube-template.directive.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Directive, Input, TemplateRef } from '@angular/core'

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

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