mdNavBar doesn't update from URL with Angular 1.6 and ui-router 1.0.0-rc.1
问题 I'm using Angular 1.6 and ui-router 1.0.0-rc.1. I set up a couple of simple states: .config(function($stateProvider) { $stateProvider.state({ name: "foo", url: "/foo", template: "<foo-widget layout='row'/>" }); $stateProvider.state({ name: "bar", url: "/bar", template: "<bar-widget layout='row'/>" }); $stateProvider.state({ name: "home", url: "", template: "<foo-widget layout='row'/>" }); Then on the main page I put an mdNavBar: <md-nav-bar nav-bar-aria-label="navigation links" md-selected