You have to define different child states also building_no as parent and 
floor_no or room_no as child routes or data to be sent for that routes. 
Check below example which might help you to understand how child routes 
works and how data can be passed and retrieved.

https://angular-2-training-book.rangle.io/routing/child_routes

On Wednesday, 29 January 2020 10:47:39 UTC+5:30, Seagu Sandeep wrote:
>
> I am new angular. I am trying render a single page using angular. Using 
> routing can i add parameters to baseurl meaning 
> ex:*http:mywebsite:4200/building_no/floor_no/room_no 
> (*building_no, floor_no,room_no are parameters). WIth this url i want to 
> show the details of that room. There are no subsections in my applications 
> to only show part of the page. For each url i need to show the whole app 
> but with different data based on the parameters i give. Please let me know 
> if anyone has answer to this problem.
>
> Thank you,
> Sandep Seagu
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/5db56640-a24a-40a7-9192-0a7e56d394db%40googlegroups.com.

Reply via email to