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 :
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
Post a Comment