You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
I want to redirect user to particular page when he clicks on tab. As I have similar behavior in several places I don't want to write boilerplate code using select + active attributes. So that, I'd like to pass something like hreftab-href attribute to the tab directive which is attached to link then:
Currently it's not possible as I need to extend template and controller but I can't get access to controller inside tab.html as there is no controllerAs.
So, the simplest fix is to add controllerAs: 'tab' to tab directive so then it can be accessed inside view. So then I do this:
I don't think we want to support this exactly, although not having controllerAs and not being able to override the template on an instance by instance basis is a missing enhancement.
I should mention that it seems weird to have a redirect to an external url from tabs from a UI perspective.
I want to redirect user to particular page when he clicks on tab. As I have similar behavior in several places I don't want to write boilerplate code using
select + active
attributes. So that, I'd like to pass something likehref
tab-href
attribute to the tab directive which is attached to link then:Currently it's not possible as I need to extend template and controller but I can't get access to controller inside
tab.html
as there is nocontrollerAs
.So, the simplest fix is to add
controllerAs: 'tab'
to tab directive so then it can be accessed inside view. So then I do this:The text was updated successfully, but these errors were encountered: