sovanna / angular-material-sidenav

Simple component that reproduce the Angular Material Style SideNav Menu from their own website
http://sovanna.github.io/angular-material-sidenav/
109 stars 55 forks source link

ui-router dependency #2

Open kcajf opened 8 years ago

kcajf commented 8 years ago

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.

sovanna commented 8 years ago

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.

kcajf commented 8 years ago

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.

sovanna commented 8 years ago

you're welcome.

yep, gonna do that for param ;)

kattsushi commented 8 years ago

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