Article 5AH5H Sending html to browser from client in nodejs

Sending html to browser from client in nodejs

by
TheIndependentAquarius
from LinuxQuestions.org on (#5AH5H)
From: Book - Getting MEAN with Mongo, Express..
Quote:
Views: HTML responses It's likely that you'll want to respond to many of the requests to your application by sending some HTML to the browser.

By now it will come as no surprise to you that Express makes this easier than it is in native Node.js.

Express provides support for a number of different templating engines that make it easier to build HTML pages in an intelligent way, using reusable components as well as data from your application.

Express compiles these together and serves them to the browser as HTML .
They are saying that Express supports many templating engines which can easily send html to browsers.

My question here is that if we are using MEAN this means that Angular is used as a frontend and this also means that displaying data on browser should be the responsiblity of Angular.

Nodejs should send data to Angular and Angular should display it on browser. If this understanding is correct then why would templating engines of Express be required?

Is this quoted paragraph assuming that there is no Angular present therefore the html has to be sent directly to browser from nodejs?latest?d=yIl2AUoC8zA latest?i=sbuqFpDWJ0w:Hx8rPDS6FmI:F7zBnMy latest?i=sbuqFpDWJ0w:Hx8rPDS6FmI:V_sGLiP latest?d=qj6IDK7rITs latest?i=sbuqFpDWJ0w:Hx8rPDS6FmI:gIN9vFwsbuqFpDWJ0w
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments