Angular 无法与 Meteor 1.3.1 一起正常工作

Angular not working correctly with Meteor 1.3.1

我正在 windows 计算机上学习 www.angular-meteor.com 教程。

但是当我在控制台中 运行 meteor 时,我只看到:

除了 socially...

之外的空白屏幕

所以似乎有些 angular 软件包不适用于 Meteor 1.3.1

这是 meteor list 的输出:

accounts-password               1.1.7  Password support for accounts
angular                         1.3.9_2  Everything you need to use Angu...
angularui:angular-google-maps   2.3.2  angular-google-maps (official)
angularui:angular-ui-bootstrap  0.13.0  Native AngularJS (Angular) direc...
angularui:angular-ui-router     0.2.15  angular-ui-router (official): Fl...
angularutils:pagination         0.9.1_2  Magical automatic pagination fo...
check                           1.1.3  Check whether a value matches a p...
dotansimha:accounts-ui-angular  0.0.4  AngularJS wrapper for Meteor's Ac...
email                           1.0.11  Send email messages
es5-shim                        4.5.9  Shims and polyfills to improve EC...
jquery                          1.11.7  Manipulate the DOM using CSS sel...
less                            2.5.7  Leaner CSS language
meteor-base                     1.0.3  Packages that every Meteor app needs
mobile-experience               1.0.3  Packages for a great mobile user ...
mongo                           1.1.6  Adaptor for using MongoDB and Min...
reactive-var                    1.0.8  Reactive variable
standard-minifier-css           1.0.5  Standard css minifier used with M...
standard-minifier-js            1.0.5  Standard javascript minifiers use...
tmeasday:publish-counts         0.7.3  Publish the count of a cursor, in...
tracker                         1.0.12  Dependency tracker to allow reac...
twbs:bootstrap                  3.3.6  The most popular front-end framew...

例如 angularui:angular-ui-router 似乎不起作用。但它适用于 meteor 1.2 版本。

有人遇到同样的问题吗?也许也是一个解决方案? 最好的问候

EDIT

删除 dotansimha:accounts-ui-angular 后我可以看到地图和搜索框。但是该应用程序仍然损坏。没有 parties 显示,分页不起作用等等......有什么解决办法吗?

我发现问题是与这个包不兼容:

meteor remove dotansimha:accounts-ui-angular

不要忘记删除 'accounts.ui' 对 'app.js'

的依赖

刚刚删除,结果:

可能问题是为什么这个包以某种方式使用 "blaze-html-templates"

我想我现在可以正常工作了:

meteor list

accounts-password               1.1.7  Password support for accounts
angular-meteor-auth             1.0.1  Angular-Meteor authentication module
angular-templates               1.0.2  Compile angular templates into th...
angular:angular                 1.5.3_1  AngularJS (official) release. F...
angularui:angular-google-maps   2.3.2  angular-google-maps (official)
angularui:angular-ui-bootstrap  0.13.0  Native AngularJS (Angular) direc...
angularui:angular-ui-router     0.2.15  angular-ui-router (official): Fl...
angularutils:pagination         0.9.1_2  Magical automatic pagination fo...
check                           1.1.3  Check whether a value matches a p...
dotansimha:accounts-ui-angular  0.0.4  AngularJS wrapper for Meteor's Ac...
email                           1.0.11  Send email messages
es5-shim                        4.5.9  Shims and polyfills to improve EC...
jquery                          1.11.7  Manipulate the DOM using CSS sel...
less                            2.5.7  Leaner CSS language
meteor-base                     1.0.3  Packages that every Meteor app needs
mobile-experience               1.0.3  Packages for a great mobile user ...
modules                         0.5.2  CommonJS module system
mongo                           1.1.6  Adaptor for using MongoDB and Min...
pbastowski:angular-babel        1.3.2  Babel compiler and ng-annotate fo...
reactive-var                    1.0.8  Reactive variable
standard-minifier-css           1.0.5  Standard css minifier used with M...
standard-minifier-js            1.0.5  Standard javascript minifiers use...
tmeasday:publish-counts         0.7.3  Publish the count of a cursor, in...
tracker                         1.0.12  Dependency tracker to allow reac...
twbs:bootstrap                  3.3.6  The most popular front-end framew...

所以我确实使用 accounts-ui-angular!

我关注了this link

我所做的是:

First:

  1. 删除你通过大气层安装的 angular meteor 包:meteor remove angular
  2. 确保安装了 ecmascript 包。如果您之前安装了 atmosphere angular 包,您可能在收到多个编译器试图处理扩展名为 .js 的文件的通知后将其删除。所以查看 meteor 列表,如果没有 ecmascript,请执行以下操作:meteor add ecmascript
  3. 通过 npm 安装 angular 和 angular meteor:npm install angular angular-meteor --save
  4. 将 'angular-meteor' 列为主模块的模块依赖项:angular.module('myApp', ['angular-meteor']);
  5. 流星删除 ecmascript
  6. meteor 添加模块(ecmascript 暗示模块,所以如果你删除 ecma,你必须手动添加它)
  7. 流星添加pbastowski:angular-babel

请注意,我do not需要在app.js中导入angular(没有import angular from 'angular';import 'angular-meteor';

现在:

希望对遇到同样问题的人有所帮助:)