I have a requirement where i need to switch between 2 different views back and forth based on certain condition inside a modal window's body.
Those 2 views are :
- List items (Initial view)
- Add new items
After adding new items i need to switch to the List items view.
NOTE: All these views should be displayed inside a modal windows body.
So using ANGULAR 5 routing how can i create new routes / sub routes inside this modal component ?
<router-outlet>
tag in your model and all the contents will be load there – Overslaugh