fix(app): double layer spread support for modules · compodoc/compodoc@e25a4ee · GitHub
Skip to content

Commit e25a4ee

Browse files
committed
fix(app): double layer spread support for modules
fix #979
1 parent 35401d9 commit e25a4ee

3 files changed

Lines changed: 52 additions & 21 deletions

File tree

src/app/compiler/angular-dependencies.ts

Lines changed: 36 additions & 12 deletions

test/fixtures/todomvc-ng2/src/app/header/header.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ import { FormsModule } from '@angular/forms';
33

44
import { HeaderComponent } from './header.component';
55

6+
const COMPO = [HeaderComponent];
7+
8+
const COMPOS = [...COMPO];
9+
610
/**
711
* The header module
812
*/
913
@NgModule({
1014
imports: [FormsModule],
11-
declarations: [HeaderComponent],
15+
declarations: [...COMPOS],
1216
exports: [HeaderComponent]
1317
})
1418
export class HeaderModule {}

test/src/cli/cli-generation-big-app.spec.ts

Lines changed: 11 additions & 8 deletions

0 commit comments

Comments
 (0)