1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +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,7 @@
import { Component, forwardRef, Input, OnInit } from '@angular/core'
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
import { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms'
import { SelectOptionsItem } from '../../../../types/select-options-item.model'
import { NgSelectModule } from '@ng-select/ng-select'
export type ItemSelectCheckboxValue = { id?: string, group?: string } | string
@ -14,7 +15,9 @@ export type ItemSelectCheckboxValue = { id?: string, group?: string } | string
useExisting: forwardRef(() => SelectCheckboxComponent),
multi: true
}
]
],
standalone: true,
imports: [ NgSelectModule, FormsModule ]
})
export class SelectCheckboxComponent implements OnInit, ControlValueAccessor {
@Input() availableItems: SelectOptionsItem[] = []