angular-material-sidenav icon indicating copy to clipboard operation
angular-material-sidenav copied to clipboard

ui-router dependency

Open kcajf opened this issue 9 years ago • 4 comments

Hi,

Currently it seems the menu is entirely dependent on ui-router, and that every menu link corresponds to a state. Is there any way to forgo that for certain links and instead just have an external URL? For example, I have some internal states but I also want to link out to a few other websites.

kcajf avatar Aug 26 '15 15:08 kcajf

Hi, yes it depends on ui-router

I see what you mean, I've planed to manage both case (ui-router and without) but still didn't do it yet :( However, I'm going to do a quick features to allow external URL, by adding an 'url' property which will override the "state". The external URL will be then opened with a target "_blank". Maybe tonight, new release will come.

sovanna avatar Aug 27 '15 13:08 sovanna

Thanks. It would also be nice to include ui-router parameters in the menu, if you decide to stick with ui-router. These would then be passed with $state.go(state, params). Currently only being able to link to the raw states is a bit limiting.

kcajf avatar Aug 27 '15 14:08 kcajf

you're welcome.

yep, gonna do that for param ;)

sovanna avatar Aug 27 '15 14:08 sovanna

hello Sovanna ! , like this all? finally have included improving the 'url' property? I try to use it and it does not work friend, you help me? great work done around here! Thanks in advance

kattsushi avatar Dec 23 '15 19:12 kattsushi