Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
Dynamic tabs with routing
posted

I am using Angular 11 and latest IG (Dec 2020 release), as I am on a brand new Ignite UI license.

I am unsure how to go about dynamically creating a tab, with a routerlink to another component (with parameter).

Example:

Tab:Scenarios (list of scenarios with header info)

User clicks "Manage" in unbound "Actions" column, should:

  1. Create a tab with scenario.name as tab.title and navigate to /details/<scenario.id>
  2. Scenario List should not reload when navigated back to, unless header info changed in /details
  3. Button to delete /details tab removes from tab bar and navigates user back to most previously active tab