please wait

  • Jasmin Bhasin Mar-13-2019 06:12:21 AM ( 2 months ago )

    Need to create a component having say - 2 tabs on click of each tab need to redirect to specific component.

    for ex - say i have two tabs on a single page - Tab 1, Tab 2 on click of Tab 1 need to see Component_1 on click of Tab 2 need to see Component_2

  • Sarah Jones Mar-13-2019 06:13:27 AM ( 2 months ago )

    You can create a header component for it and define it on app component and after that start router navigation and give routing may it will help you out

  • Pooja Bhardwaj Mar-13-2019 06:14:47 AM ( 2 months ago )

    You need to load Component_1 and Component_2 dynamically. Dynamic means, that the components location in the application is not defined at build time. That means, that it is not used in any angular template. Instead, the component is instantiated and placed in the application at runtime.

Please login

Similar Discussion

Recommended For You