In AngularJS, you can use ng-repeat to show each component of a list to HTML:
<div ng-app>
<div ng-controller="myctrl">
<div ng-repeat="row in lists">
<p>{{row.first}}</p>
<p>{{row.last}}</p>
</div>
</div>
</div>
However, in the above code, you have to first write each component of a list, which should be fetched from database, manually before you use it in the above HTML. So is there any way to directly fetch data from MySQL in Node.js and Express and render it to .ejs file, and finally use the rendered list to be used in AngularJS?
Thanks.