url in browser changes but the state is not changed.
hdi-amiri opened this issue · 5 comments
hdi-amiri commented
Hi
I am using ui-router
version 1.0.3
and angular-permission
version 5.3.2
, I have a structure like below:
<a ng-href="{{serviceGroup.href}}">
<div class="col-sm-5 col-xs-6 main-title special-size">
{{serviceGroup.name}}
</div>
</a>
clicking on each of these service groups cause state transition( some of states have permission
in their data
). by clicking on the above link, the url is changed but the state transition is not happening, If I refresh the page every thing is fine.
any Idea what am I doing wrong?
masterspambot commented
Please use ui-sref not ng-href.
…On Tue, 6 Jun 2017, 09:32 Hadi Amiri, ***@***.***> wrote:
Hi
I am using ui-router version 1.0.3 and angular-permission version 5.3.2,
I have a structure like below:
<a ng-href="{{serviceGroup.href}}">
<div class="col-sm-5 col-xs-6 main-title special-size">
{{serviceGroup.name}}
</div>
</a>
clicking on each of these service groups cause state transition( some of
states have permission in their data). by clicking on the above link, the
url is changed but the state transition is not happening, If I refresh the
page every thing is fine.
any Idea what am I doing wrong?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#425>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAjeAeh8xIfiz3_efFOMoRQu7i6kl8_nks5sBQCjgaJpZM4Nw9nS>
.
hdi-amiri commented
@masterspambot thanks for your answer, the problem with using ui-sref
is that it can't handle cases like this I guess ui-sref="{{myLink}}"
masterspambot commented
Then use ng-attr 😉
…On Tue, 6 Jun 2017, 13:09 Hadi Amiri, ***@***.***> wrote:
@masterspambot <https://github.com/masterspambot> thanks for your answer,
the problem with using ui-sref is that it can't handle cases like this I
guess ui-sref={{myLink}}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#425 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjeAeSPZkXurBeHdc_QjfhyKE5KsdFbks5sBTNZgaJpZM4Nw9nS>
.
hdi-amiri commented
@masterspambot you mean this?
https://stackoverflow.com/a/28568892
masterspambot commented
Exactly.
…On Tue, 6 Jun 2017, 16:08 Hadi Amiri, ***@***.***> wrote:
you mean this?
https://stackoverflow.com/a/28568892
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#425 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjeAUSS1MmLIGbc5NplL2H6Rl9d-3gFks5sBVgGgaJpZM4Nw9nS>
.