Skip to content

Component generation uses a different index.ts-file #1642

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

Closed
ghost opened this issue Aug 11, 2016 · 2 comments
Closed

Component generation uses a different index.ts-file #1642

ghost opened this issue Aug 11, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 11, 2016

1. OS
Linux 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linux

2. Versions.
angular-cli: local (v1.0.0-beta.11-webpack.2, branch: master)
node: 6.3.1

3. Repro steps.

$ ng new dash-x

installing ng2
  create .editorconfig
  create README.md
  create src/app/app.component.css
  create src/app/app.component.html
  create src/app/app.component.spec.ts
  create src/app/app.component.ts
  create src/app/app.module.ts
  create src/app/environments/environment.dev.ts
  create src/app/environments/environment.prod.ts
  create src/app/environments/environment.ts
  create src/app/index.ts
  create src/app/shared/index.ts
  create src/favicon.ico
  create src/index.html
  create src/main.ts
  create src/polyfills.ts
  create src/test.ts
  create src/tsconfig.json
  create src/typings.d.ts
  create angular-cli.json
  create config/karma.conf.js
  create config/protractor.conf.js
  create e2e/app.e2e-spec.ts
  create e2e/app.po.ts
  create e2e/tsconfig.json
  create .gitignore
  create package.json
  create public/.gitignore
  create public/.npmignore
  create tslint.json
Successfully initialized git.

$ cd dash-x
$ ng generate component dashboard

installing component
  create src/app/dashboard/dashboard.component.css
  create src/app/dashboard/dashboard.component.html
  create src/app/dashboard/dashboard.component.spec.ts
  create src/app/dashboard/dashboard.component.ts
  create src/app/dashboard/index.ts

An ./index.ts file is generated with content export * from './dashboard';
which indicates it should have been in the ./src/app/index.ts file

4. The log
N/A

5. Mention any other details that might be useful.
N/A

@filipesilva
Copy link
Contributor

Closed by #1658

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant