title: Call express route from angular frontend
body: <p><strong>1.</strong> I'm trying to integrate a localAuthenticationStrategy (using <strong>passport.js</strong>) which I have made by following <a href="https://scotch.io/tutorials/easy-node-authentication-setup-and-local" rel="nofollow">scotch.io tutorial</a> in my already developed web app (using <strong>nodeJs with express routing and angularJs $routeProvider for frontend roting</strong>). My problem is any anchor tag from the ng-view my application <strong>does not seem to hit the express route defined for /login in route.js</strong>. How can I hit that from my application using a link or button?</p>
  
  <p>I have used catch all at the end of my routes.js as below -</p>
  
  <pre><code>// route to handle all angular requests
  app.get('*', function(req, res) {
      res.render('index.ejs');
  }); 
  </code></pre>
  
  <p><strong>2.</strong> I'm using <strong>ejs for templating</strong>. Now if I define the partials to be used in ng-view section in the appRoute.js as an ejs file, the content is <strong>getting added without parsing</strong>. What I mean to say is the ejs file is not able to parse the &lt;% %> section and the entire section is getting rendered as it is. How can I make it to be parsed properly before rendering?</p>