fixed an Angular 10 update issue with view child

pull/42/head
Chris Veilleux 2020-12-18 16:25:53 -06:00
parent e9874e9c0d
commit a28e204dd5
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
export class OptionBtnComponent implements ControlValueAccessor {
@Input() config: OptionButtonsConfig;
@Input() disabled = false;
@ViewChild(MatButtonToggleGroup) options: MatButtonToggleGroup;
@ViewChild(MatButtonToggleGroup, { static: true }) private options: MatButtonToggleGroup;
public onChange;
public onTouched;