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

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -