UI-Router with ngx-bootstrap tabs
This is a very quick run through of one approach to using a UI-Router with Angular 10 to manage the state of the ngx-bootstrap tabs. The basic approach has two parts: The router config that encodes the state in a known way, and A directive that integrates with the tab directive. The UI-router state is setup to take encode the tab identifier as a parameter in the URL. It is also configured to pass the new router value into the component, as opposed to replacing the component which is the default behaviour. This is done using the dynamic property: ...