Skip to content
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 g page command is not registering the page component in app.module.ts file #1728

Closed
faraazc opened this issue Nov 28, 2016 · 1 comment

Comments

@faraazc
Copy link

faraazc commented Nov 28, 2016

Short description of the problem:

ionic g page command is not registering the page component in app.module.ts file. Ideally it should include and register the component in the declarations array.
Angular-cli does registers components when scaffold.

What behavior are you expecting?

i would expect ionic cli to register page component in the declarations array of @NgModule decorator and also in entry points array if possible in the file app.module.ts

Steps to reproduce:

  1. run below command
    ionic generate page page_name
    and check the behaviour in app.module.ts

Post the output of ionic info below please

Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v7.1.0
Xcode version: Not installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants