Monday, 22 May 2017

Why won't AngularJS run on Node.JS server?

I have a angular based app, which contains the 4 folders: - CSS (contains CSS files) - JS (contains controller folder and the app.js) - Views (contains the html files)

I cannot run the app.js in a node server, the error I keep on getting is

angular.module('testApp', [])
^
ReferenceError: angular is not defined

And when I click on just the html files it shows only text and the css is not applied. How do I go about running this type of angular app/



via Bobshark

No comments:

Post a Comment