java - AngularJS with Apache Tiles -


i use spring mvc , angularjs project. can angularjs $routing , ngview used instead of or apache tiles framework? far can see using $routing , ngview create templates , reuse them in singlepage application.

yes, angularjs' routing can use instead of tiles. can use together, after may broke singlepage app idea.

in tiles use jsp files. jsp files compiling in server-side , , serving html file in client side via browser.

in angular can create base layout. , tiles' layout extend ability , ng-include can include other views ng-view htmls. , when route page ng-view refresh included area(also there third party plugins/frameworks on angularjs it.take ui-router. provides nice nested views.).

in angular way commonly no need html serverside(this situation may change depending on other situations. make singlepage no need.). need convert controllers returns modelandview object map(as example) return json. @ time routing achieved angularjs' routes. after these refactorings , have singlepage application. or can make hybrid-singlepage(some pages have many event van start pages make single page reduce workload) reveal workload depends on application's size.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -