angularjs - same ui-sref generates different href -
what logic behind generation of href ui-sref? got situation when different places (states), same ui-sref generates different href, causes bug.
one of ui-sref, which have same abstract ancestor state pointing to, appends id generated href, other (which outside) not.
from documentation on ui-sref:
a directive binds link ( tag) state. if state has associated url, directive automatically generate & update href attribute via $state.href() method. clicking link trigger state transition optional parameters.
so looks url
of state pointing to, , generates href
accordingly. why 2 ui-sref
, same parameters, pointing same state can generate different result?
Comments
Post a Comment