- Timestamp:
- 10/16/21 18:10:51 (3 years ago)
- Branches:
- master
- Children:
- eed0bf8
- Parents:
- 6a3a178
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/planner/planner.component.ts
r6a3a178 rfa375fe 2 2 import { Planner } from '../_models/planner'; 3 3 import { PlannerService } from '../_services/planner.service'; 4 import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog'; 5 import { CreateInitialPlannerComponent } from '../create-initial-planner/create-initial-planner.component'; 6 4 7 5 8 @Component({ … … 11 14 12 15 planners: Planner[]; 13 constructor(private plannerService: PlannerService ) {16 constructor(private plannerService: PlannerService, public dialog: MatDialog) { 14 17 this.planners = []; 18 }; 19 20 openDialog(): void { 21 const dialogRef = this.dialog.open(CreateInitialPlannerComponent, { 22 width: '250px', 23 data: {} 24 }); 15 25 } 16 26 17 27 ngOnInit(): void { 18 28 this.plannerService.getAllPlanners().subscribe( … … 22 32 ); 23 33 } 24 34 25 35 }
Note:
See TracChangeset
for help on using the changeset viewer.