Ui-sref disable/enable

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

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

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