Angular newb here.

I just want to make sure I've got this right.

1. When I want addressable URL's I should use ng-view and load partials 
using the $routeProvider to bind local controllers to specific URL's.
2. State inside a particular controller should be managed using scope 
variables, i.e. don't try and build nested views.

I'm trying to follow https://github.com/IgorMinar/foodme as a working 
example, but it's a fairly trivial example that doesn't go anywhere near a 
complex structure. For example, if I have an /admin endpoint and within 
that I wanted to do user admin and maybe some configuration of some kind, I 
would expect something like /admin/user and /admin/configuration as 
addressable endpoints. If I want something like that, is there a best 
practice? I was using ng-switch to get the right page once in the 
/adminpartial, but everything lives under 
/admin. If I want to take it further and get to /admin/user/cf23df2207d99a7, 
then I'm in trouble.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to