Guest User

Untitled

a guest
Jun 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <mat-form-field>
  2. <mat-select placeholder="Select a service" required (change)="changeService($event.value)">
  3. <mat-optgroup *ngFor="let serviceGroup of serviceGroups" [label]="serviceGroup.serviceGroupName">
  4. <mat-option *ngFor="let service of serviceGroup?.services" [value]="service">
  5. {{service?.serviceName}}
  6. </mat-option>
  7. </mat-optgroup>
  8. </mat-select>
  9. </mat-form-field>
  10.  
  11. ngOnInit() {
  12. this.serviceGroupService.serviceGroups.subscribe(sg => {});
  13.  
  14. this.selectedService.serviceId = this.bookingservicetime.serviceTime.service.serviceId;
  15. this.selectedServiceTime = this.bookingservicetime.serviceTime;
  16. }
Add Comment
Please, Sign In to add comment