can I use EJS with AngularJS? -
hi new angularjs. have great web app running jquery , jquery ui.
now want rid of jquery , going migrate angularjs because of mvc (mvw) pattern.
so jquery application running ejs templates , entirely dom manipulation. when think angular js, have doubts. can still use ejs or not?
so please guide me whether can use or not.
another doubt is, let's assume have list page. updated dynamically, , display 10 records first based on user scroll, next 10 records appended in dom after ajax. can append dom dynamically using angular?
how achieve these kind of things in angular?
you can use ejs (server or client side) in combination angular there's no need , you'll overcomplicate things. angularjs capable manipulating dom in separation of concerns kind of way. elegant way work angular have restful backend , serve static html/js files webserver.
as endless scrolling, there tons of ready use plugins (modules) choose or can write own. need view ng-repeat directive display loaded items , directive notify controller/scope load more items when user scrolling down. nice simple article can found here.
similar questions:
Comments
Post a Comment