我是angular、nodejs和jade的初学者。我没有从在nodeclipse (eclipse IDE)上使用nodejs+jade的angular js中获得价值。我还注意到在/myProject/public/javascripts/myCtrl.js的第一行,eclipse报告“angular is not define”。以下是我的代码。
/myProject/views/layout.jade
doctype html
html
head
title= title
link(rel='stylesheet', href='/style
我得到了这个错误:
TypeError: Cannot read property 'prototype' of undefined
at Object.instantiate (http://localhost:3000/angular/angular.min.js:35:144)
at Object.<anonymous> (http://localhost:3000/angular/angular.min.js:35:435)
at Object.d [as invoke] (http://localhost:3000/angular/angular.min.