安装离子材料设计

时间:2018-04-05 08:36:11

标签: angular ionic-framework ionic3 ionic-material

我已经按照将离子材料设计集成到离子项目中的步骤进行了操作。以下是我所做的事情清单:

  1. 离子启动离子材料空白
  2. bower install ionic-material
  3. bower install robotodraft
  4. 在Ionic index.html页面中添加了JS和CSS库 enter image description here
  5. 在第五部分,它指示将离子材料注入您的离子应用程序,如下所示: 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'])

1 个答案:

答案 0 :(得分:5)

下面是 Ionic 1 框架,不适用于 Ionic 3

var app = angular.module('YOUR_APP_NAME', ['ionic', 'ionic-material']);

如果Ionic 3支持Ionic材料,您可以将其作为外部模块导入添加到app.module.ts中。