update angular
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
></ngx-mat-select-search>
|
||||
</mat-option>
|
||||
<mat-option *ngFor="let song of filteredSongs()" [value]="song.id">{{
|
||||
song.title
|
||||
}}</mat-option>
|
||||
song.title
|
||||
}}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@ describe('AddSongComponent', () => {
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [AddSongComponent],
|
||||
}).compileComponents();
|
||||
})
|
||||
}),
|
||||
);
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -13,6 +13,7 @@ import {ShowService} from '../../../modules/shows/services/show.service';
|
||||
templateUrl: './add-song.component.html',
|
||||
styleUrls: ['./add-song.component.less'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: false,
|
||||
})
|
||||
export class AddSongComponent {
|
||||
@Input() public songs: Song[] | null = null;
|
||||
@@ -21,7 +22,8 @@ export class AddSongComponent {
|
||||
@Input() public addedLive = false;
|
||||
public filteredSongsControl = new UntypedFormControl();
|
||||
|
||||
public constructor(private showSongService: ShowSongService, private showService: ShowService) {}
|
||||
public constructor(private showSongService: ShowSongService, private showService: ShowService) {
|
||||
}
|
||||
|
||||
public filteredSongs(): Song[] {
|
||||
if (!this.songs) return [];
|
||||
|
||||
@@ -11,4 +11,5 @@ import {ReactiveFormsModule} from '@angular/forms';
|
||||
exports: [AddSongComponent],
|
||||
imports: [CommonModule, MatFormFieldModule, MatSelectModule, NgxMatSelectSearchModule, ReactiveFormsModule],
|
||||
})
|
||||
export class AddSongModule {}
|
||||
export class AddSongModule {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user