You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
snackbar not displayed anymore with angular version 4.0.0-rc1 #3357
to display a snackbar at the bottom of the browser
What is the current behavior?
it display a transparent div container with a slim shadow without displaying the snackbar
What are the steps to reproduce?
Add this code in your component created with Angular version 4.0.0-rc1 and @angular/cli version 1.0.0-rc.0 and @angular/material version 2.0.0-beta.2 :
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, browsers are affected?
Angular version 4.0.0-rc1 and @angular/cli version 1.0.0-rc.0 and @angular/material version 2.0.0-beta.2 . Tested on Chrome and Firefox and Edge latest versions.
Shouldn't the component just display itself without animations then? There are usecases where I deliberately disable animations and to not be able to use certain components would be quite a surprise.
Activity
willshowell commentedon Mar 1, 2017
Here is a plunk showing the issue
http://plnkr.co/edit/ZJxPOjKC6Lr6RnYQBgTy?p=preview
Switch between
angular@4.0.0-rc.1andangular@latest(2.4.8 atm) by swapping the commented out import insystemjs.config.tsDenisLaboureyras commentedon Mar 1, 2017
Animations in angular 4.0 are in a separate module, you should import it. If not, the snackbar stays invisible.
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';The side effect in my case is that I can't use anymore aot and uglification with webpack, see issue:
angular/angular#14737
crisbeto commentedon Mar 1, 2017
That makes sense @DenisLaboureyras, although we should probably handle the lack of animations a little better.
marcorinck commentedon Mar 2, 2017
Shouldn't the component just display itself without animations then? There are usecases where I deliberately disable animations and to not be able to use certain components would be quite a surprise.
feat: angular 4 compatibility
feat: angular 4 compatibility
feat: angular 4 compatibility
feat: angular 4 compatibility
feat: angular 4 compatibility
feat: angular 4 compatibility
feat: angular 4 compatibility (#3608)
sync from upstream (#1)
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.