Skip to content

ui-sref does not generate href attribute if url is not provided #1635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ilovett opened this issue Dec 16, 2014 · 1 comment
Closed

ui-sref does not generate href attribute if url is not provided #1635

ilovett opened this issue Dec 16, 2014 · 1 comment

Comments

@ilovett
Copy link

ilovett commented Dec 16, 2014

Similarl to #1293 -- I saw that this was fixed in 0.2.13

However, I've noticed that href is not generated unless explicitly setting url to an empty string url: ''

Shouldn't href also be generated if url is undefined / not provided? If not why?

  .state('settings', {
    templateUrl: 'views/settings.html',
    controller: 'SettingsCtrl'
  })
@ProLoser
Copy link
Member

Because if you refresh the page it won't arrive at this state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants