From 9272b4b275efa41857225e74cfbcb4f978b676e2 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 14 Dec 2016 23:33:02 +0100 Subject: [PATCH] fix(a11y): add all providers to forRoot (#2222) * fix(a11y): add all providers to forRoot Adds all of the necessary providers to the `A11yModule`. Fixes #2189. * Remove redundant concat. --- src/lib/core/a11y/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/core/a11y/index.ts b/src/lib/core/a11y/index.ts index 4c195561551..ff1d094c69e 100644 --- a/src/lib/core/a11y/index.ts +++ b/src/lib/core/a11y/index.ts @@ -16,7 +16,10 @@ export class A11yModule { static forRoot(): ModuleWithProviders { return { ngModule: A11yModule, - providers: A11Y_PROVIDERS, + providers: [ + PlatformModule.forRoot().providers, + A11Y_PROVIDERS, + ], }; } }