我正在使用link
中给出的步骤设计应用程序我想使用平均堆栈将我的静态html页面放在我的项目中,当我编译代码时,我收到以下错误,
ReferenceError: Myapp is not defined
at C:\Documents and Settings\ssit\My Documents\GitHub\ssit\server\routes\index.js:11:6
at callbacks (C:\Documents and Settings\ssit\My Documents\GitHub\ssit\node_modules\express\lib\router\index.js:164:37)
at param (C:\Documents and Settings\ssit\My Documents\GitHub\ssit\node_modules\express\lib\router\index.js:138:11)
at pass (C:\Documents and Settings\ssit\My Documents\GitHub\ssit\node_modules\express\lib\router\index.js:145:5)
at Router._dispatch (C:\Documents and Settings\ssit\My Documents\GitHub\ssit\node_modules\express\lib\router\index.js:173:5)
at Object.router (C:\Documents and Settings\ssit\My Documents\GitHub\ssit\node_modules\express\lib\router\index.js:33:10)
at next (C:\Documents and Settings\ssit\My Documents\GitHub\ssit\node_modules\express\node_modules\connect\lib\proto.js:193:15)
at Object.handle (C:\Documents and Settings\ssit\My Documents\GitHub\ssit\node_modules\connect-flash\lib\flash.js:21:5)
at next (C:\Documents and Settings\ssit\My Documents\GitHub\ssit\node_modules\express\node_modules\connect\lib\proto.js:193:15)
at Object.Meanio.chainware.before [as handle] (C:\Documents and Settings\ssit\My Documents\GitHub\ssit\node_modules\meanio\lib\mean0.3.2.js:322:41)
我怎么能解决这个错误。
答案 0 :(得分:0)
检查app.js(@public \ js \ app.js)
怎么样?像这样添加。
angular.module(&#39;意思&#39;,[&#39; ngCookies&#39;,&#39; ngResource&#39;,&#39; ui.bootstrap&#39;,&#39; ui.router&#39;,&#39; mean.system&#39;,&#39; mean.articles&#39;,&#39; mean.Myapp&#39; ]); < / p>
angular.module(&#39; mean.system&#39;,[]); angular.module(&#39; mean.articles&#39;,[]); 的&GT; angular.module(&#39; mean.Myapp&#39;,[]);