-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(snack-bar): SimpleSnackBar not being exported (#3016)
* Fixes the `SimpleSnackBar` class not being exported. * Moves the `MdSnackBarModule` to the `index.ts` for consistency with other modules. Fixes #3010.
- Loading branch information
1 parent
1a854e7
commit a7a3967
Showing
4 changed files
with
28 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,29 @@ | ||
import {NgModule, ModuleWithProviders} from '@angular/core'; | ||
import {OverlayModule, PortalModule, CompatibilityModule, LIVE_ANNOUNCER_PROVIDER} from '../core'; | ||
import {CommonModule} from '@angular/common'; | ||
import {MdSnackBar} from './snack-bar'; | ||
import {MdSnackBarContainer} from './snack-bar-container'; | ||
import {SimpleSnackBar} from './simple-snack-bar'; | ||
|
||
@NgModule({ | ||
imports: [OverlayModule, PortalModule, CommonModule, CompatibilityModule], | ||
exports: [MdSnackBarContainer, CompatibilityModule], | ||
declarations: [MdSnackBarContainer, SimpleSnackBar], | ||
entryComponents: [MdSnackBarContainer, SimpleSnackBar], | ||
providers: [MdSnackBar, LIVE_ANNOUNCER_PROVIDER] | ||
}) | ||
export class MdSnackBarModule { | ||
/** @deprecated */ | ||
static forRoot(): ModuleWithProviders { | ||
return { | ||
ngModule: MdSnackBarModule, | ||
providers: [] | ||
}; | ||
} | ||
} | ||
|
||
export * from './snack-bar'; | ||
export * from './snack-bar-container'; | ||
export * from './snack-bar-config'; | ||
export * from './snack-bar-ref'; | ||
export * from './simple-snack-bar'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters