Repository navigation
Closed
Milestone
Description
Overview of the issue
we rollup exports of our components to one file components/index.ts . Components declared like this are not shown under the module.
- notice that only sharedModule has some components, because only in the SharedModule we declare the components directly, in other components we import them from components/index.ts file.
By directly i mean (this works):
declarations: [
TabnavigationComponent,
ProgressBarComponent,
LanguageChooserComponent,
ErrorAndSuccessMessagesComponent
],
but the following way does not work:
example of components/index.ts:
import {RegistrationRootComponent} from './registration-root/registration-root.component';
import {AccountTypeComponent} from './account-type/account-type.component';
export const components: any[] = [
RegistrationRootComponent,
AccountTypeComponent];
export * from './registration-root/registration-root.component';
export * from './account-type/account-type.component';
then we declare components in the module like this:
import * as fromComponents from './components';
import * as fromContainers from './containers';
declarations: [
...fromComponents.components,
...fromContainers.containers,
],
Operating System, Node.js, npm, compodoc version(s)
windows 10, running in gitbash
$ node -v
v8.9.1
$ npm -v
5.8.0
compodoc 1.1.3
Angular configuration, a package.json file in the root folder
{
"name": "frontend-app",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json --disable-host-check",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"compodoc": "./node_modules/.bin/compodoc -p src/tsconfig.app.json"
},
"private": true,
"dependencies": {
"@angular/animations": "6.0.6",
"@angular/common": "6.0.6",
"@angular/compiler": "6.0.6",
"@angular/core": "6.0.6",
"@angular/forms": "6.0.6",
"@angular/http": "6.0.6",
"@angular/platform-browser": "6.0.6",
"@angular/platform-browser-dynamic": "6.0.6",
"@angular/router": "6.0.6",
"@ng-bootstrap/ng-bootstrap": "^2.1.2",
"@ngrx/effects": "^6.0.1",
"@ngrx/entity": "^6.0.1",
"@ngrx/router-store": "^6.0.1",
"@ngrx/store": "^6.0.1",
"@ngrx/store-devtools": "^6.0.1",
"classlist.js": "^1.1.20150312",
"core-js": "^2.5.6",
"json-server": "^0.14.0",
"jwt-decode": "^2.2.0",
"keycloak-angular": "file:./keycloak-angular/dist/keycloak-angular",
"keycloak-js": "^4.0.0-beta.3",
"ng-recaptcha": "^4.0.0-beta.1",
"ngrx-forms": "^2.3.5",
"ngx-scrollbar": "^2.1.0",
"npm": "^6.1.0",
"rxjs": "^6.2.1",
"rxjs-compat": "^6.2.2",
"uuid": "^3.3.2",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.8",
"@angular/cli": "6.0.8",
"@angular/compiler-cli": "6.0.6",
"@angular/language-service": "6.0.6",
"@compodoc/compodoc": "^1.1.3",
"@types/jasmine": "^2.8.7",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^6.0.111",
"codelyzer": "^4.3.0",
"concurrently": "^3.5.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^2.0.3",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.4.3",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"ngrx-store-freeze": "^0.2.3",
"protractor": "^5.3.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "2.7.2"
},
"prettier": {
"singleQuote": true,
"printWidth": 120
}
}
Compodoc installed globally or locally ?
locally

Activity
stale commentedon Sep 30, 2019
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
stale commentedon Oct 7, 2019
This issue has been automatically closed because it has not had recent activity. Please file a new issue if you are encountering a similar or related problem. Thank you for your contributions.
lock commentedon Dec 6, 2019
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.
fix(cli): resolve namespace barrel spread declarations