Sending html to browser from client in nodejs
by TheIndependentAquarius from LinuxQuestions.org on (#5AH5H)
From: Book - Getting MEAN with Mongo, Express..
Quote:
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?


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. |
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?