Ui-sref disable/enable


#1

Is it possible to disable ui-sref and enable it upon clicking a button from other page ?


#2

then i would use a ngClick instead of uiSref to handle redirections.

On the other page you could set a flag in a service --> in the controller of the redirection you add a function, that is called by the click on the a-tag or button and handles the redirection with $state.go().
There you can check the flag in the service and redirecting or not


#3

Can you please give me some example code of what your saying , I’m just confused about what your saying, Thanks :smile: