ng-routing with complex UI in angular js

72 views
Skip to first unread message

Ramaraj Karuppusamy

unread,
Jul 7, 2014, 2:42:27 AM7/7/14
to ang...@googlegroups.com

Hi there,

We are building an application with complicated UI. Our page layout will look like below.

Left menu will contain the list of links for the corresponding pages in the right side.

We are using ng-router for building the application.

We took the whole page as one ng-view and include the left menu as single html template. When clicking on the links, we will replace the right side tab content by ng-include.

Inside each right side content, we have sub tabs. When clicking on sub tab, we will replace the content of sub tab.

In Left menu template controller we have few ajax calls. When loading the content of the sub tab in right side, templates are not reloaded and is cached by the angular. But the ajax calls are reloaded again.

It should not reload the ajax calls inside the left menu when changing the content of sub tab in the right content.

We want to achieve this by ng-routing alone because it is the only routing concept with native angular code.


Thanks and Regards,
Ramaraj K

Ramaraj Karuppusamy

unread,
Jul 9, 2014, 2:17:39 AM7/9/14
to ang...@googlegroups.com
Hi there,

Anybody has any suggestions? Please advice me to proceed further.



--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/L2weXxfMT9c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Eric Eslinger

unread,
Jul 9, 2014, 9:22:40 AM7/9/14
to ang...@googlegroups.com

Use ui-router, as it was built for this use case.

E

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 angular+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages