Angularfire2 v5 & Ionic 3 如何创建核心模块?

Angularfire2 v5 & Ionic 3 How to create Core Module?

我正在尝试实现这个:https://angularfirebase.com/lessons/google-user-auth-with-firestore-custom-data/#Generate-a-Core-Module-Optional

到我的 Ionic 3 项目。

像他们在 Angular5 教程中那样实现代码模块想法的 "Ionic" 方法是什么? 尝试 运行 代码时

ng g module core

我遇到错误:

Unable to find any apps in `.angular-cli.json`.

谢谢

只需转到您创建 ionic 应用程序的文件夹,运行 ionic g page core,ionic 将为该 Core 页面生成一个模块。

此时 ionic 不提供 generate module 命令。但是对于 generate page 它将创建一个 module.

Here you have the list of commands