title: AngularJS with Express Templates or pure HTML? Pros and Cons?
body: <p>Express JS uses templates for generating HTML and then server sends them to client in response. There may be several other templates from which HTML can be generated. The ones I was able to discover are:</p>
  
  <ul>
  <li><p>Jade (<a href="http://jade-lang.com/" rel="noreferrer">http://jade-lang.com/</a>)</p></li>
  <li><p>EJS (<a href="http://embeddedjs.com/" rel="noreferrer">http://embeddedjs.com/</a>)</p></li>
  </ul>
  
  <p>In my app, I need to use both ExpressJS and AngularJs. I am new to both technologies. While learning angular, I had to use it in pure HTML. After learning ExpressJs, I realized, in order to use angularjs, I need to use them in any of the above templates which will be converted to HTML while sending to client.</p>
  
  <p>Now, I want to use expressjs as my server and angularjs as my client side app. For this, I think I have two options.</p>
  
  <p><strong>Option 1</strong></p>
  
  <p>I can stop using templates altogether and use our NodeJS server to respond by sending simple HTML files. These HTML files will then contain AngularJS coding within them. AngularJS then, on client side, will act as our application. It will demand other HTML documents from the server. Or it can also be used like AJAX, where we can only request the piece of information to update just part of the page rather refreshing the whole page for a minor change.</p>
  
  <p><strong>Option 2</strong></p>
  
  <p>I can use angularjs inside expressjs templates (jade or ejs).</p>
  
  <p>Kindly, help me in understanding the pros and cons of both options. Which one will be your choice in such case.</p>