Skip to content

Commit

Permalink
chore(sidenav): add providers to sidenav forRoot (angular#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelbourn authored and mmalerba committed Dec 7, 2016
1 parent 03e90db commit 7b90d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/sidenav/sidenav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '@angular/core';
import {CommonModule} from '@angular/common';
import {Dir, coerceBooleanProperty, DefaultStyleCompatibilityModeModule} from '../core';
import {A11yModule} from '../core/a11y/index';
import {A11yModule, A11Y_PROVIDERS} from '../core/a11y/index';
import {FocusTrap} from '../core/a11y/focus-trap';


Expand Down Expand Up @@ -470,7 +470,7 @@ export class MdSidenavModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: MdSidenavModule,
providers: []
providers: [A11Y_PROVIDERS]
};
}
}

0 comments on commit 7b90d62

Please sign in to comment.