How to make Angular Material <md-select> + UI Router view switcher?
In a single page web app with AngularJS and UI Router , I would like to make an Angular Material <md-select>
that will switch between multiple views (aka ui-router "states").
- Into this plunker I can do it using plain
<select>
with ng-options , no Angular Material. Please note that the selected option is the<select>
same as the selected location. - In this other plunker , isolated from the above, assigned by Angular stuff, things don't work that well ☹ When viewed (start page download or url) is
<md-select>
not set to its original location / state<md-option>
.
Any ideas?
+3
source to share
2 answers