流星和离子css没有应用

Pue*_*gel 5 meteor ionic-framework

我想使用meteoric包创建一个非常简单的应用程序与流星和离子框架.使用该指南,我创建了以下非常简单的应用程序:

Router.js:

Router.configure({
  layoutTemplate: 'layout'
});

Router.route('/', function () {
  this.render('MyTemplate');
});
Run Code Online (Sandbox Code Playgroud)

Templates.html:

<template name="layout">
    {{#ionBody}}
        {{> ionNavBar}}

        {{#ionNavView}}
            {{> yield}}
        {{/ionNavView}}

    {{/ionBody}}
</template>

<template name="myTemplate">
    {{#ionContent}}
        Hello World!
    {{/ionContent}}
</template>
Run Code Online (Sandbox Code Playgroud)

该应用程序加载没有错误,并显示内容"Hello World!" 没有任何造型.例如,为什么没有显示iosNavBar?

Mar*_*ber 7

请查看ionic-sass的安装说明:https: //github.com/meteoric/ionic-sass

它说:

在你的应用程序的.scss文件中:

@import'.meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/ionic';

所以在你的meteor应用程序中,使用上面的import语句创建一个style.scss文件.现在您应该看到正确应用的样式.