我已经按照将离子材料设计集成到离子项目中的步骤进行了操作。以下是我所做的事情清单:
在第五部分,它指示将离子材料注入您的离子应用程序,如下所示:
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'])
。
答案 0 :(得分:5)
下面是 Ionic 1 框架,不适用于 Ionic 3 。
var app = angular.module('YOUR_APP_NAME', ['ionic', 'ionic-material']);
如果Ionic 3支持Ionic材料,您可以将其作为外部模块导入添加到app.module.ts中。