{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/570","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/570/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/570/events","html_url":"https://github.com/angular-ui/ui-router/issues/570","id":22417518,"number":570,"title":"ui-router and bootstrap nav link","user":{"login":"rekna1","id":739942,"avatar_url":"https://avatars.githubusercontent.com/u/739942?v=3","gravatar_id":"","url":"https://api.github.com/users/rekna1","html_url":"https://github.com/rekna1","followers_url":"https://api.github.com/users/rekna1/followers","following_url":"https://api.github.com/users/rekna1/following{/other_user}","gists_url":"https://api.github.com/users/rekna1/gists{/gist_id}","starred_url":"https://api.github.com/users/rekna1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rekna1/subscriptions","organizations_url":"https://api.github.com/users/rekna1/orgs","repos_url":"https://api.github.com/users/rekna1/repos","events_url":"https://api.github.com/users/rekna1/events{/privacy}","received_events_url":"https://api.github.com/users/rekna1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2013-11-10T21:29:12Z","updated_at":"2015-04-27T04:27:44Z","closed_at":"2013-11-11T11:41:45Z","body":"I have an angular app with ui-router and bootstrap3. Initialy it shows a search form. When I click on the search button, I transition to the state search.results. In this state, 2 subviews are loaded, one which shows an options menu and one for showing the search results. The options menu is implemented as a bootstrap nav bar. One of the options is a dropdown menu with links for different options, like this:\r\n\r\n    <a href=\"#\" data-ng-click=\"vm.showOnlyLastMonth()\">last month</a>\r\n\r\nWhen I click on the link, it seems to change the route ( I see the url changing from #/results to #/ ).. I can see the vm.showOnlyLastMonth() is executed, but the options and search results disappear (I'm back at the base route).\r\n\r\nIt works when I change all <a href=\"#\"  to <a data-ui-sref=\"search.results\" but I wonder if this is necessary, and the behavior with <a href=\"#\" is the correct behavior ?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/96497065","html_url":"https://github.com/angular-ui/ui-router/issues/570#issuecomment-96497065","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/570","id":96497065,"user":{"login":"okigan","id":478302,"avatar_url":"https://avatars.githubusercontent.com/u/478302?v=3","gravatar_id":"","url":"https://api.github.com/users/okigan","html_url":"https://github.com/okigan","followers_url":"https://api.github.com/users/okigan/followers","following_url":"https://api.github.com/users/okigan/following{/other_user}","gists_url":"https://api.github.com/users/okigan/gists{/gist_id}","starred_url":"https://api.github.com/users/okigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okigan/subscriptions","organizations_url":"https://api.github.com/users/okigan/orgs","repos_url":"https://api.github.com/users/okigan/repos","events_url":"https://api.github.com/users/okigan/events{/privacy}","received_events_url":"https://api.github.com/users/okigan/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T04:27:44Z","updated_at":"2015-04-27T04:27:44Z","body":"I think this is a bug, 'a' element shall have href filled in (per spec) and href=\"#\" is commonly used to fulfill that requirement. Hence <a href=\"#\">...</a> shall have expected behavior. "}}