-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何在Ionic中使用NG-ZORRO-MOBILE(How to use NG-ZORRO-MOBILE in Ionic) #4
Labels
Comments
Let me try |
月底了,什么时候更新仓库啊, |
@CK110 已经更新了 |
You may want to add "--type=angular" to "ionic start" to start an Ionic 4 project. |
这个为啥不加到文档里面去而是 issue? |
|
👍😋let me too try try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
第一个本地实例 First Local Development
我们可以在 ionic 开发框架下使用 NG-ZORRO-MOBILE,下面我们用一个简单的实例来说明。
NG-ZORRO-MOBILE can be used in Ionic, let's get started with a simple example.
1. 安装脚手架工具 Installation
2. 创建一个项目 Create a New Project
执行以下命令,
ionic
会在当前目录下新建一个名称为PROJECT-NAME
的文件夹,并自动安装好相应依赖。A new project can be created using ionic CLI tools with following command.
3. 安装 Install ng-zorro-antd-mobile
进入项目文件夹,执行以下命令后将自动完成
ng-zorro-antd-mobile
的初始化配置。ng-zorro-antd-mobile
will be installed in the project folder with the following command.开发者可以通过增加参数来完成个性化的初始化配置,例如国际化或者自定义主题等,还可以快速生成模板代码,详细可以参考 脚手架 部分。
ng-zorro-antd-mobile
supports init configuration with schematics, you can get more info in the schematics part.4. 开发调试 Development & Debugging
一键启动调试,运行成功后显示欢迎页面。
Run your project now, you can see the img below now.
自行构建 Customized Work Flow
1. 安装组件 Install
ng-zorro-antd-mobile
2.引入模块 Import module
在 app.modules.ts 中,全局引入
ng-zorro-antd-mobile
。Add
ng-zorro-antd-mobile
globally in app.modules.ts。3.引入样式 Import style
在 angular.json 中,全局引入
ng-zorro-antd-mobile
样式。Add
ng-zorro-antd-mobile
style globally in angular.json。The text was updated successfully, but these errors were encountered: