dimanche 7 juin 2015

Listing data from database - use angularjs with API or generate using Jade on server-side

I'm creating a Node.js web app and I'm not sure whether to use AngularJS (or other client-side templating engine such as Ember or Backbone) to display data from a database or to generate the page on the server side (with Jade) and then send it over. Is there a significant benefit to using one approach versus the other?

Angular does add an extra layer of complexity, but at the same time I'm concerned about the performance detriments involved when generating pages on the server side.

Aucun commentaire:

Enregistrer un commentaire