When I change the view ($state.go(view)) I need to change tab

41 Views Asked by At

I have a problem with a custom directive that I wrote to simulate a tab view in angular. This directive has only a method to redirect from a state to another.

This directive works fine.

The template of the directive is a div with a uib-tabset and some tabs that contain the views to show them.

This works fine.

Now I need this feature: from a view in a tab, I need to change view with a state.go(view) and I must also go to the tab which contains that view.

I tried different solutions that I found here or in other forums, but probably my requested feature is different from others.

Thank you.

1

There are 1 best solutions below

0
Peduz On

I resolved with the answer in this link.

Sorry for my repost.

Angular UI bootstrap tabs - Can't change tabs with a button inside a tab