node.js - angular is not defined -


i have problem in file route.js when i'm running node.js shows me "angular not defined "

route.js

var app = angular.module('myapp', ['ngroute']);        app.config(function($routeprovider){          $routeprovider             .when('/', {templateurl: 'views/login.html'})             .when('/login', {templateurl: 'views/home.html'})             .otherwise({redirectto : '/'});  }); 

error :

enter image description here

have "imported" angular.js scripts?

script(src='//ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js') script(src='//ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular-resource.min.js') 

this page gives info on how mean stack (mongo, express, angular, node). perhaps has usefull information you.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -