【发布时间】:2013-05-27 06:02:07
【问题描述】:
结合 3 小时后,我决定在这里写问题。
我正在尝试使用yeoman 在我的电脑上编写一个应用程序来构建应用程序。我正在尝试使用socket.io,但我看到了 404。
我做什么
- 我已经安装了 yeoman。
- 我已经在
/node_modules/下安装了socket.io - 我已经安装了
angular-socket-ioby bower - 在我的 index.html 中,我包含了所需的脚本:index.html
- 在 app.js 中我添加了模块
btford.socket-io - 在我的控制器中,我注入套接字:
.controller('ChatCtrl', function ($scope, socket) { - 我跑了?服务器使用
grunt server命令
那么我在哪里犯了错误或者我理解错了什么,所以我的应用程序找不到 socket.io.js 文件?
在这里你可以找到我的完整代码:https://github.com/w00caSh/FunWithAngular
编辑:
这很重要。我是否必须为此启用任何节点服务器?
【问题讨论】:
标签: angularjs socket.io gruntjs yeoman