Skip to content

Commit

Permalink
fix(aot): fix aot error w/ live announcer (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelbourn authored Sep 28, 2016
1 parent 9954ca8 commit 276d07d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/lib/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {MdRippleModule} from './ripple/ripple';
import {PortalModule} from './portal/portal-directives';
import {OverlayModule} from './overlay/overlay-directives';
import {A11yModule} from './a11y/index';
import {MdLiveAnnouncer} from './a11y/live-announcer';
import {InteractivityChecker} from './a11y/interactivity-checker';


// RTL
Expand Down Expand Up @@ -54,6 +56,8 @@ export {
export {FocusTrap} from './a11y/focus-trap';
export {InteractivityChecker} from './a11y/interactivity-checker';

export {A11yModule} from './a11y/index';

export {
MdUniqueSelectionDispatcher,
MdUniqueSelectionDispatcherListener
Expand Down Expand Up @@ -85,7 +89,7 @@ export class MdCoreModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: MdCoreModule,
providers: [A11yModule.forRoot().providers],
providers: [MdLiveAnnouncer, InteractivityChecker],
};
}
}
Empty file added src/lib/dialog/README.md
Empty file.
4 changes: 2 additions & 2 deletions src/lib/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {MdDialogConfig} from './dialog-config';
import {MdDialogRef} from './dialog-ref';
import {DialogInjector} from './dialog-injector';
import {MdDialogContainer} from './dialog-container';
import {A11yModule} from '../core/a11y/index';
import {A11yModule, InteractivityChecker} from '../core';

export {MdDialogConfig} from './dialog-config';
export {MdDialogRef} from './dialog-ref';
Expand Down Expand Up @@ -135,7 +135,7 @@ export class MdDialogModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: MdDialogModule,
providers: [MdDialog, OVERLAY_PROVIDERS, A11yModule.forRoot().providers],
providers: [MdDialog, OVERLAY_PROVIDERS, InteractivityChecker],
};
}
}
3 changes: 3 additions & 0 deletions src/lib/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {MdToolbarModule} from './toolbar/index';
import {MdTooltipModule} from './tooltip/index';
import {MdMenuModule} from './menu/index';
import {MdDialogModule} from './dialog/index';
import {A11yModule} from './core/a11y/index';


const MATERIAL_MODULES = [
Expand Down Expand Up @@ -57,6 +58,7 @@ const MATERIAL_MODULES = [
OverlayModule,
PortalModule,
RtlModule,
A11yModule,
];

@NgModule({
Expand All @@ -78,6 +80,7 @@ const MATERIAL_MODULES = [
RtlModule.forRoot(),

// These modules include providers.
A11yModule.forRoot(),
MdButtonToggleModule.forRoot(),
MdDialogModule.forRoot(),
MdIconModule.forRoot(),
Expand Down

1 comment on commit 276d07d

@DzmitryShylovich
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when this will be available in npm?

Please sign in to comment.