用流星和角度模板化

时间:2016-04-15 14:41:01

标签: angularjs meteor

使用 angular 包时,我无法使用模板包。否则我收到此错误:

 While determining active plugins:
 error: conflict: two packages included in the app (angular-templates
 and templating) are both trying to handle *.html

 While determining active plugins:
 error: conflict: two packages included in the app (angular-templates
 and templating) are both trying to handle *.html

 While determining active plugins:
 error: conflict: two packages included in the app (angular-templates
 and templating) are both trying to handle *.html

没有模板我不能使用基本的模板形式:

Template.layout.onCreated(function () {

});

因为我收到此错误:

Uncaught ReferenceError: Template is not defined

如何在流星应用中使用模板和角度

1 个答案:

答案 0 :(得分:0)

使用angular-meteor包时,您无法使用Blaze模板。

查看此链接了解详情: http://www.angular-meteor.com/tutorials/socially/angular1/bootstrapping

您必须使用以下命令删除blaze模板(Meteor的默认UI包):

$ meteor remove blaze-html-templates