Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Navigate from anchor tag #8324


User avatar
0
TimMackey created

I want to navigate to a page (normally accessed via the sidebar navigation menu) from an anchor tag. This will provide my users 2 ways of navigating to their desired page. How can I accomplish this without reloading the page? See 8205 for code samples.


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can use routerLink.

  • User Avatar
    0
    TimMackey created

    It took a bit to figure out how to pass parameters, but finally did. Here's what I ended up with. <a routerLink="/app/main/ttm-page_7" [queryParams]="{menuId: 7}">

    Behaves just like navigation from the sidebar menu. Thank you! :)