安装 Ionic Material 设计
Installing Ionic Material Design
我已按照将 Ionic Material 设计集成到 Ionic 项目中的步骤进行操作。以下是我所做的列表:
- 离子启动离子Material空白
- bower 安装 ionic-material
- bower 安装 robotodraft
- 在 Ionic index.html 页面中添加了 JS 和 CSS 库
第五条指示将 Ionic Material 注入您的 Ionic 应用程序,如下所示:
var app = angular.module('YOUR_APP_NAME', ['ionic', 'ionic-material']);
我将在哪里以及如何将它注入到我的 Ionic 项目中?我有 app.module.ts 和 app.component.ts。但是我该如何以及在哪里插入提到的代码,因为它甚至要求我输入我的应用程序名称 angular.module('YOUR_APP_NAME', ['ionic', 'ionic-material'])
。
下一行适用于 Ionic 1 框架,不适用于 Ionic 3.
var app = angular.module('YOUR_APP_NAME', ['ionic', 'ionic-material']);
如果 Ionic material 在 Ionic 3 中受支持,您可以将它添加到 app.module.ts 作为外部模块导入。
我已按照将 Ionic Material 设计集成到 Ionic 项目中的步骤进行操作。以下是我所做的列表:
- 离子启动离子Material空白
- bower 安装 ionic-material
- bower 安装 robotodraft
- 在 Ionic index.html 页面中添加了 JS 和 CSS 库
第五条指示将 Ionic Material 注入您的 Ionic 应用程序,如下所示:
var app = angular.module('YOUR_APP_NAME', ['ionic', 'ionic-material']);
我将在哪里以及如何将它注入到我的 Ionic 项目中?我有 app.module.ts 和 app.component.ts。但是我该如何以及在哪里插入提到的代码,因为它甚至要求我输入我的应用程序名称 angular.module('YOUR_APP_NAME', ['ionic', 'ionic-material'])
。
下一行适用于 Ionic 1 框架,不适用于 Ionic 3.
var app = angular.module('YOUR_APP_NAME', ['ionic', 'ionic-material']);
如果 Ionic material 在 Ionic 3 中受支持,您可以将它添加到 app.module.ts 作为外部模块导入。