msfanboy msfanboy - 10 days ago 5
AngularJS Question

Default route for angular ui router

The sample demo of the angular ui router has this link for the start page:

full url of 'ui-router' is

/
or
http://angular-ui.github.io/ui-router/sample/#/


full url of 'about' is
/about
or
http://angular-ui.github.io/ui-router/sample/#/about


When I was using durandalJS there was a limitation that the default url is just "/" there can be no "/ui-router".

Has the angular ui router plugin the same limitation?

Answer

See here there is an "otherwise" option for a default route.

If you are talking about default route PARAMETERS, then there is an answer here.

Comments