本文介绍了无法实施Meteoric(Meteor-Ionic)软件包 - 离子样式没有显示出来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个实现Meteoric包的Meteor应用程序,使我能够使用Ionic UI功能。为此:我试图简单地让它使用Ionic样式,但它不起作用。但Meteoric确实正确地呈现了HTML。
I want to create a Meteor app that implements the Meteoric package, enabling me to use Ionic UI features. Going off of this: https://github.com/meteoric/meteor-ionic/blob/master/GUIDE.md I'm trying to simply get it to use Ionic styling but it doesn't work. It Meteoric does render the HTML correctly, though.
router.js
router.js
Router.configure({
layoutTemplate: 'layout'
});
Router.route('/', {
name: 'timeLists'
});
layout.html
layout.html
<template name="layout">
{{#ionBody}}
{{> ionNavBar}}
{{#ionNavView}}
{{> yield}}
{{/ionNavView}}
{{/ionBody}}
</template>
timeLists.html
timeLists.html
<template name="timeLists">
{{#ionContent}}
Hello.
{{/ionContent}}
</template>
我在这里缺少什么?谢谢!
What am I missing here? Thanks!
推荐答案
如此你真的需要导入样式
As shown in this official example you really need to import styles
@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/ionic';
@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/ionicons';
这篇关于无法实施Meteoric(Meteor-Ionic)软件包 - 离子样式没有显示出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!