angularjs - Angular application with Node + Express web API returning JSON resources vs server side template engine -


i'm quite new node , express , i'm having difficulties understanding concept of server side rendering template engines (like jade) or without.

my experience web development solely based on angular applications consume resources in json format restful web api , render html using angular's two-way data binding.

what pros , cons of approach, , benefits of rendering html pages on server when there's flexibility angular?

this quora answer best description i've found when digging topic several months.

but let me answer question height of experience:

  1. these approaches not mutually exclusive each over, complementary.

  2. pros of server-side rendering:

    • very speedy initial loading of pages (use ajax/mvc subsequent updates);
    • good seo.
  3. cons:

    • it may bit difficult set initially.
  4. i'd recommend build app in traditional angular way, , add server-side rendering if feel app slow respond.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo