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?

more details


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -