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?
请查看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文件.现在您应该看到正确应用的样式.
| 归档时间: |
|
| 查看次数: |
864 次 |
| 最近记录: |