ui-router not producing correct href attribute in angular
问题 $stateProvider .state('admin', { abstract: true, url: '/admin', template: '<div ui-view></div>' }) <a ui-sref="admin">admin</a> The url I get is <a href="/admin">admin</a> when it should be /#/admin -- this breaks when I command click on a link to open in a new tab. 回答1: This is a known issue, reported as a bug. Will be fixed in next release. Here is a workaround: Impossible to disable html5Mode with angular 1.3.0-rc.3 #1397 Due to: angular/angular.js@dc3de7f the html5mode-check in urlRouter