问题
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.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>
What am I missing here? Thanks!
回答1:
Solution: I needed to include the Ionic styles in my app's stylesheet:
@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/ionic';
@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/ionicons';
回答2:
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';
来源:https://stackoverflow.com/questions/28734787/trouble-implementing-meteoric-meteor-ionic-package-ionic-styling-not-showin