我想创建一个实现Meteoric包的Meteor应用程序,使我能够使用Ionic UI功能。离开这个:https://github.com/meteoric/meteor-ionic/blob/master/GUIDE.md我试图简单地让它使用Ionic样式,但它不起作用。不过,Meteoric确实正确地呈现了HTML。
router.js
Router.configure({
layoutTemplate: 'layout'
});
Router.route('/', {
name: 'timeLists'
});
的layout.html
<template name="layout">
{{#ionBody}}
{{> ionNavBar}}
{{#ionNavView}}
{{> yield}}
{{/ionNavView}}
{{/ionBody}}
</template>
timeLists.html
<template name="timeLists">
{{#ionContent}}
Hello.
{{/ionContent}}
</template>
我在这里缺少什么?谢谢!
答案 0 :(得分:2)
解决方案:我需要在我的应用程序的样式表中包含Ionic样式:
@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/ionic';
@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/ionicons';
答案 1 :(得分:2)
如此official example所示,您确实需要导入样式
@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/ionic';
@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/ionicons';