Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ghsc
Hazards Development Team
earthquake-geoserve-ui
Commits
b1051482
Commit
b1051482
authored
Sep 25, 2019
by
Jeremy M Fee
Committed by
Edward J Hunter
Oct 15, 2021
Browse files
Add referencePlace input to nearby-place-list component
parent
42f9ca7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
projects/hazdev-ng-geoserve-output/src/lib/nearby-place-list/nearby-place-list.component.html
View file @
b1051482
...
...
@@ -2,11 +2,14 @@
<div
*ngIf=
"places; else noNearbyPlaces"
>
<ol>
<li
*ngFor=
"let place of places"
>
<geoserve-nearby-place
[place]=
"place"
></geoserve-nearby-place>
<geoserve-nearby-place
[place]=
"place"
[referencePlace]=
"referencePlace"
></geoserve-nearby-place>
</li>
</ol>
</div>
<ng-template
#noNearbyPlaces
>
<geoserve-no-data></geoserve-no-data>
</ng-template>
\ No newline at end of file
</ng-template>
projects/hazdev-ng-geoserve-output/src/lib/nearby-place-list/nearby-place-list.component.ts
View file @
b1051482
...
...
@@ -10,6 +10,9 @@ export class NearbyPlaceListComponent implements OnInit {
@
Input
()
places
:
Place
[];
@
Input
()
referencePlace
:
Place
=
null
;
constructor
()
{}
ngOnInit
()
{}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment