Changeset 76712b2 for trip-planner-front/src/app/explore/explore-result
- Timestamp:
- 01/28/22 18:45:54 (3 years ago)
- Branches:
- master
- Children:
- 6fe77af
- Parents:
- b738035
- Location:
- trip-planner-front/src/app/explore/explore-result
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/explore/explore-result/explore-result.component.css
rb738035 r76712b2 1 .container { 2 background-color: #F9F2E8; 3 } -
trip-planner-front/src/app/explore/explore-result/explore-result.component.html
rb738035 r76712b2 14 14 </header> 15 15 16 <main role="main" style="background-color: #F9F2E8;"> 16 <main role="main"> 17 <h1 style="color: #F77D62; display: inline; ">Explore </h1> 18 <h1 style=" display: inline;">{{place}}</h1> 19 <div class="lightbox" *ngFor="let l of allLocation"> 20 <div class="row"> 21 <div class="col-lg-6"> 22 <img src="data:image/png;base64,{{l.photo}}" 23 class="w-100 mb-2 mb-md-4 shadow-1-strong rounded"/> 24 </div> 25 </div> 26 </div> 27 <div class="container"> 28 <li *ngFor="let location of allLocation"> 29 <ol>{{location.name}}</ol> 30 </li> 31 </div> 17 32 </main> 18 33 <br> -
trip-planner-front/src/app/explore/explore-result/explore-result.component.ts
rb738035 r76712b2 1 1 import { Component, OnInit } from '@angular/core'; 2 import { ActivatedRoute } from '@angular/router'; 3 import { LocationService } from 'src/app/_services/location.service'; 2 4 3 5 @Component({ … … 8 10 export class ExploreResultComponent implements OnInit { 9 11 10 constructor() { } 12 place: string; 13 allLocation: any[] = []; 14 15 constructor(private route: ActivatedRoute, private locationService : LocationService) { 16 this.place = ''; 17 } 11 18 12 19 ngOnInit(): void { 20 this.route.queryParams 21 .subscribe(params => { 22 this.place = params.place; 23 } 24 ); 25 26 this.locationService.getAllLocationsSearch(this.place).subscribe( 27 data => { 28 this.allLocation = data; 29 } 30 ) 13 31 } 14 32
Note:
See TracChangeset
for help on using the changeset viewer.