Made a  to call from main.js which gets the data from my database and uses ng-repeat to display it on the landing page of the application.