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:
parent
62cc9b1752
commit
5e041ff7c2
383 changed files with 3448 additions and 3148 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue