MCPcopy Create free account
hub / github.com/angular/components / addOptions

Method addOptions

src/material/select/select.spec.ts:4792–4798  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4790 @ViewChildren(MatOption) options!: QueryList<MatOption>;
4791
4792 addOptions() {
4793 this.foods = [
4794 {value: 'steak-0', viewValue: 'Steak'},
4795 {value: 'pizza-1', viewValue: 'Pizza'},
4796 {value: 'tacos-2', viewValue: 'Tacos'},
4797 ];
4798 }
4799}
4800
4801@Component({

Callers 1

select.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected