I have a ngx bootstrap modal that currently works and opens a Details Listing page with specific data for everyone of my Listings. However I would like to use routing so that my Listing Modal can be opened via direct url and populated with listing specific details based on it's id. For example .../listings/listing/50 would open the Listing Modal and be populated with the details for listing id 50.
I can't even get any modal to open via direct url at this time.
Currently I am opening each modal with a link click
<a (click)="openDetailsModal(listing)" ...
and my ListingService
openDetailsModal(listing: Listing): void {
this.selectedListing = listing;
this.bsModalRef = this.modalService.show(ListingDetailComponent, {class:'listingDetailModal'});
this.bsModalRef.content.listing = this.selectedListing;
}
Also I am currently getting all of my listings from my database as well using HttpClient