1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Migrate to standalone components

This commit is contained in:
Chocobozzz 2024-03-04 10:01:52 +01:00
parent 62cc9b1752
commit 5e041ff7c2
No known key found for this signature in database
GPG key ID: 583A612D890159BE
383 changed files with 3448 additions and 3148 deletions

View file

@ -1,6 +1,8 @@
import { AfterContentInit, Component, ContentChildren, forwardRef, Input, QueryList, TemplateRef } from '@angular/core'
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
import { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms'
import { PeerTubeTemplateDirective } from '@app/shared/shared-main'
import { HelpComponent } from '../shared-main/misc/help.component'
import { NgIf, NgTemplateOutlet } from '@angular/common'
@Component({
selector: 'my-peertube-checkbox',
@ -12,7 +14,9 @@ import { PeerTubeTemplateDirective } from '@app/shared/shared-main'
useExisting: forwardRef(() => PeertubeCheckboxComponent),
multi: true
}
]
],
standalone: true,
imports: [ FormsModule, NgIf, NgTemplateOutlet, HelpComponent, PeerTubeTemplateDirective ]
})
export class PeertubeCheckboxComponent implements ControlValueAccessor, AfterContentInit {
@Input() checked = false