Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

How to make an <md-select> view switcher with ui-router #3984

@kingIZZZY

Description

@kingIZZZY

What is the best way to bind an <md-select> with ui-router routes, so that they update each other correctly; ui-router initializes the md-select to appropriate option upon page load, and selecting another option changes ui-router state?

Here is a working example without Angular Material http://plnkr.co/edit/b3pOQKRmuJRS7RyLbDP8 (courtesy of ctanga)
Here is a fork of the above appropriated for Angular Material, not working yet http://plnkr.co/edit/uwYRhgunssmGkdFkfG36 as you can see the initial landing on a url/view fails to initialize the md-select.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions