fix: aot runtime issues (#3807)

* fix: aot runtime issues

Currently when using the `MdSnackBar` in AOT, there will be runtime exceptions from the NgFactory. Those are caused by the re-exports of DI tokens.

The Angular compiler will then look for the first export e.g `MdLiveAnnouncer` and the normal `LiveAnnouncer` export wont be included in the factory.

This is breaking at runtime now, because the NgFactory searches for `LiveAnnouncer` but there is only the `LiveAnnouncer` (DI exception)

Since this deprecation is pretty old we can safely remove it anyways. Although this is probably an Angular that should be reported separately.

Also this commit fixes the output directory of the `aot` gulp task. Currently it outputs the factories in a wrong directory. (This allows us to serve the aot demo-app in the future)

* Remove MdUniqueSelectionDispatcher
This commit is contained in:
Paul Gschwendtner
2017-04-01 01:14:25 +02:00
committed by tinayuangao
parent e7a4a03d68
commit f40296e0fa
2 changed files with 1 additions and 10 deletions
+1
View File
@@ -5,6 +5,7 @@
"extends": "./tsconfig-build",
"compilerOptions": {
"experimentalDecorators": true,
"outDir": ".",
"paths": {
"@angular/material": ["./material"]
}
-10
View File
@@ -36,9 +36,6 @@ export {DomPortalHost} from './portal/dom-portal-host';
// Platform
export * from './platform/index';
/** @deprecated */
export {Platform as MdPlatform} from './platform/platform';
// Overlay
export {Overlay, OVERLAY_PROVIDERS} from './overlay/overlay';
export {OverlayContainer} from './overlay/overlay-container';
@@ -75,9 +72,6 @@ export {
// Selection
export * from './selection/selection';
/** @deprecated */
export {LiveAnnouncer as MdLiveAnnouncer} from './a11y/live-announcer';
export * from './a11y/focus-trap';
export {InteractivityChecker} from './a11y/interactivity-checker';
export {isFakeMousedownFromScreenReader} from './a11y/fake-mousedown';
@@ -89,10 +83,6 @@ export {
UniqueSelectionDispatcherListener,
UNIQUE_SELECTION_DISPATCHER_PROVIDER,
} from './coordination/unique-selection-dispatcher';
/** @deprecated */
export {
UniqueSelectionDispatcher as MdUniqueSelectionDispatcher
} from './coordination/unique-selection-dispatcher';
export {MdLineModule, MdLine, MdLineSetter} from './line/line';