Skip to content

Commit

Permalink
feat: direct provider definition overwrites provider definition in im…
Browse files Browse the repository at this point in the history
…ported modules
  • Loading branch information
draconisNoctis committed Jul 27, 2018
1 parent 39f6ae8 commit 910a6b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/factories/module-router.ts
Expand Up @@ -46,14 +46,14 @@ export class ModuleRouterFactory {

return [
moduleType,
...(metadata.providers || []),
...(metadata.modules || []).map(declaration => {
const nemModule = this.assertNemModuleWithProviders(Array.isArray(declaration) ? declaration[1] : declaration);
return [
this.getProviders(nemModule.nemModule),
...(nemModule.providers || [])
]
}).reduce((t, c) => t.concat(c), [])
}).reduce((t, c) => t.concat(c), []),
...(metadata.providers || [])
]
}

Expand Down

0 comments on commit 910a6b8

Please sign in to comment.