Skip to content

pages component not created #9

Description

@KadoTomohiro

https://albatrosary.gitbooks.io/start-angular/content/%E9%9A%8E%E5%B1%A4%E5%8C%96%E3%81%95%E3%82%8C%E3%81%9Fmodule%E3%81%A8routing.html

Pages component not created in 'ng g' commands, but pages component exist in result.

'ng g' commands

$ ng g component footer
$ ng g module pages
$ ng g class pages/pages.routes
$ ng g module pages/issue
$ ng g module pages/wiki
$ ng g component pages/top

result

$ tree
.
├── app.component.css
├── app.component.html
├── app.component.spec.ts
├── app.component.ts
├── app.module.ts
├── app.routes.ts
├── footer
│   ├── footer.component.css
│   ├── footer.component.html
│   ├── footer.component.spec.ts
│   └── footer.component.ts
├── home
│   ├── home.component.css
│   ├── home.component.html
│   ├── home.component.spec.ts
│   └── home.component.ts
├── index.ts
├── page-not-found
│   ├── page-not-found.component.css
│   ├── page-not-found.component.html
│   ├── page-not-found.component.spec.ts
│   └── page-not-found.component.ts
└── pages
    ├── issue
    │   ├── issue.component.css
    │   ├── issue.component.html
    │   ├── issue.component.spec.ts
    │   ├── issue.component.ts
    │   └── issue.module.ts
    ├── pages.component.css
    ├── pages.component.html
    ├── pages.component.spec.ts
    ├── pages.component.ts
    ├── pages.module.ts
    ├── pages.routes.ts
    ├── top
    │   ├── top.component.css
    │   ├── top.component.html
    │   ├── top.component.spec.ts
    │   └── top.component.ts
    └── wiki
        ├── wiki.component.css
        ├── wiki.component.html
        ├── wiki.component.spec.ts
        ├── wiki.component.ts
        └── wiki.module.ts

7 directories, 39 files

Please add this command.

$ ng g component pages
installing component
  create src/app/pages/pages.component.css
  create src/app/pages/pages.component.html
  create src/app/pages/pages.component.spec.ts
  create src/app/pages/pages.component.ts
  update src/app/app.module.ts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions