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