问题标签 [mean.io]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
angularjs - mean.io 依赖注入
mean.io 中的依赖注入是如何工作的。根据文档http://learn.mean.io/#mean-packages-dependency-injection。
我创建了两个包 pkg1 和 pkg2。在我的 pkg2 app.js 文件中,我有
但是当我启动应用程序时出现此错误
使用以下代码注册 pkg1
两个包都是使用命令创建的
angularjs - 未加载 Angular 指令 templateURL。为什么?
我在 Angular 中创建了一个指令。当我使用该template
属性时,该指令“编译”。使用时不编译templateURL
。
templateURL 文件在 Angular 页面的控制台或网络选项卡中没有 404。它是 200 作为浏览器 URL。
我错过了什么?
我的应用程序的 URL 是:http://localhost:3000/#!/profile/
这个 URL 是 200:http://localhost:3000/profile/views/inProfileSidebar.html
inProfileSidebar.html
在此 HTML 中使用:
我在浏览器控制台中没有看到任何错误,并且浏览器的网络日志中也没有对 templateURL 的请求。
它在我使用时有效template
,但不适用于templateURL
. 为什么?
node.js - 无法在 Windows 7 上通过 npm 安装 mean-cli
Mean-cli 是一个用于初始化 meanio 全栈 javascript 框架的包。但我无法通过 npm 全局安装它。这就是我可以提供给你的,让你明白我的意思。
我提到了一个堆栈溢出问题,其中讨论了应该更新节点。如你们所见,我的 nodejs 已更新,并且我已更新 npm。但后来我得到 .scripts/preinstall.js 错误。看到他们的 github 票,他们说这个问题已经解决,但我仍然面临它。任何帮助,将不胜感激。
mean.io - 中间件变量设置在哪里?
我找到了这段代码:
但在源代码中找不到中间件的定义位置。
当我做 a[1] = 3 作为测试时,我得到一个错误。因此,我确定必须在某处定义中间件,但我无法在任何地方找到它。
有没有人碰巧知道这是在哪里或有什么建议?
node.js - Grunt Bower jquery.min.map 错误。设置我的第一个 MEAN 应用程序
我正在尝试设置 MEAN 环境。我不断收到此错误:
错误:ENOENT,没有这样的文件或目录'/home/user/app1/bower_components/jquery/dist/jquery.min.map'
我在 CentOS7 和 RHEL6 上试过,在 CentOS 上我试过从源代码和 epel 安装 nodejs。在 RHEL6 上,我使用这种方法来设置 nodejs:
当我尝试时,bower install
我开始Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular-mocks.git", exit code of #128
安装凉亭。要解决此问题,请运行此命令git config --global url."https://".insteadOf git://
,我不确定它是否持久。
这解决了 RHEL6 上的问题,但没有解决 CentOS7 上的问题。我回到 CentOS7 并再次尝试,它似乎奏效了……我只是继续前进,暂时不质疑它。
javascript - “!!~this.roles.indexOf('*')”在 MEAN.io 框架中是什么意思
在 MEAN 框架的启动代码中,有一行代码如下所示
它位于 shouldRender 函数中的 public/modules/core/services/menus.client.service.js 文件中。
angularjs - 如何使用 MEAN.IO 生成视图和服务?
angular-yeoman 生成器的一大优点是能够通过命令行创建视图、指令和服务。MEAN 堆栈是否具有此功能,或者您是否必须将映射代码手动编码到任何新的依赖项?
mean.io - 在 mean.io 中使用离子框架
我刚开始使用 MEAN.io,这是一个用于播种 MongoDB、Express、AngularJS 和 NodeJS 的项目。我想知道如何将 ionic 与它集成?我使用 bower 将 ionic 安装到 bower_components 文件夹中,但 js/css 文件不会自动加载。当我使用手动将 ionic.bundle.js 和 ionic.css 添加到我的自定义包中时
或者
我从 jshint 收到数百个错误...
mean.io - Is there any way you can update a project without reinstalling it?
Well, just what I said. So, they recently fixed the security issue with the login through facebook and twitter and stuff, but, in my version, that stuff is still broken. Is there anyway I can update the project? Or do I just have to create a whole new one?
node.js - Mean.IO + Heroku 构建失败错误:ENOENT,没有这样的文件或目录'/app/bower_components/jquery/dist/jquery.min.map'
我有一个使用 Mean.IO 编写并部署到 Heroku 的应用程序(Buildpack https://github.com/mbuchetics/heroku-buildpack-nodejs-grunt)。
直到今天早上我最近一次部署之前一直很好,并且没有明显的原因就坏了。鲍尔似乎运行良好
相关部署代码在这里
我看到这条线
但我不确定这意味着 heroku 明智。有任何想法吗?