简体   繁体   English

Mean.js-未定义角度

[英]Mean.js - angular is not defined

I'm just trying to run mean.js using grunt. 我只是试图使用grunt运行mean.js。 Just did the installation steps in http://meanjs.org . 只是在http://meanjs.org中完成了安装步骤。 But when loaded in localhost, console is showing error 但是在本地主机中加载时,控制台显示错误

Uncaught ReferenceError: angular is not defined 未捕获ReferenceError:未定义角度

Can any one help how to resolve this problem? 任何人都可以帮助解决该问题吗?

It sounds like angular is not included on the page. 听起来页面没有包含角度。

When the install process is over, npm will initiate a bower install command to install all the front-end modules needed (including angular) for the application 安装过程结束后,npm将启动bower install命令以安装应用程序所需的所有前端模块(包括角度模块)

You can run bower manually using 您可以使用以下命令手动运行凉亭

bower install --config.interactive=false

make sure that angular appears in the public/lib folder and included on the page. 确保angular出现在public/lib文件夹中并包含在页面中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM