AngularJS Multi-Level Default Routes -
in angularjs, wanted send routes single controller - figured - why set routing @ all?
it seems simpler route information $window.location.pathname.split("/");
at first, looked plan:
- 'mysite.com' worked
- 'mysite.com/' worked
- 'mysite.com/home' worked
but when try 2-level or 3-level route:
- 'mysite.com/team/my-name'
- 'mysite.com/blog/post/my-post'
angular crashes saying:
uncaught syntaxerror: unexpected token <
why isn't angular default routing ok multi-level routes?
the angular router not meant (yet). try ui router expecting.
Comments
Post a Comment