Hi Laurent,

Generally it is better to use ui-router. ngRoute is pretty limited solution 
and it is acceptable only for the simplest apps.
I believe it can help you with your second question, here is an 
example http://plnkr.co/edit/SDOcGS?p=preview and please find documentation 
here: https://github.com/angular-ui/ui-router

Regarding the first question, generally I'm using one module per 
application like this <html ng-app="globalApp">...</html>

Best regards, Pavel.



<https://lh3.googleusercontent.com/-PQqG34lxqcE/VRxMQEQgrEI/AAAAAAAAFWw/Zsk9U7Ed3YQ/s1600/Capture.PNG>
>
> Hi All :=)
>
> It's always easier with a picture... I want to start with some application 
> with multiple modules, views, and partial views. Actually I could do that 
> easily with Jquery and some code... And I though it was a good challenge to 
> do the complete flow with Angular.... And damn I'm just running around for 
> two days on how to make things work... and it isn't :=) !  
>
> So the idea, is I have a global canvas with a top and a bottom banner => 
> this could be driven by a globalApp. 
>
> The content is divided into two parts : the sidebar and the content and 
> can be routed with ngRoute. 
>
>
> *My first issue is* : ng-view is not working in a part already controlled 
> by an app .. Any idea ?
>
> Example not working  
>
> <div ng-app="globalApp">
>
> <div ng-app="app" ng-view>
>
> </div>
>
> Related to the module, the sidebar will be changed, but when I click on an 
> item of the sidebar I only want to modify my main content. As for now  the 
> Sidebar is embedded in the main view of the content. I'm using ngRoute to 
> navigate. I read it wasn't possible to have mutliple ng-view, so I can not 
> separated the sidebar and the main content... This means that everytime I 
> change the view, my sidebar is also refreshed using the ngRoute with the 
> ng-view.
>
> Is there any example with some advanced features or a complete 
> application, or some pages that could help to find out how to handle all 
> this. I didn't found any example that could manage this... 
>
>
> Thank you for any help :=))
>
>
> Laurent
>
>
>
>
>
>
>
>
>
>
>
>
>

-- 
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/d/optout.

Reply via email to