Questions tagged [angular-material2]

Angular Material is an implementation of Material Design in Angular 2+. DO NOT use this tag for AngularJS Material questions.

Tag usage

This tag should be used for questions regarding the Angular Material framework, and is typically used in conjunction with the tag.

For the older (and now deprecated as of January 2022) AngularJS Material framework, do not use this tag - use the and tags instead.

Project info

Angular Material, now part of a suite of Angular components made by the Angular team, is an official implementation of Google's Material Design guidelines for Angular.

Angular Material is officially out. The Angular Material team will release patches as Angular progresses and will follow the versioning of Angular.

Links

Notes

Current release: 14.2.2

2957 questions
91
votes
12 answers

how to define index in angular material table

how should I define an index variable when angular material table is used as ngFor is not used in this table. I did search for it in the documentation but index is not mentioned any where in it.
pushplata patel
  • 985
  • 2
  • 7
  • 8
89
votes
4 answers

angular/material2 mat-spinner resize

Is there any possible way to change size of mat-spinner or mat-progress-circle? I read the documentation of mat-spinner and mat-progress-circle but they said that mat-diameter is discontinued and the spinner will take the parent element's size. How…
Vijay R
  • 923
  • 1
  • 6
  • 10
85
votes
5 answers

Angular 5 and material - How to change the background color from SnackBar component

I have to change the background from the snackbar component. I'm using it to alert or inform the user about some either error or completed action the user did. The material version from the project. "@angular/material": "^5.0.0-rc.1", The…
80
votes
7 answers

How to prevent angular material mat-menu from closing?

I'm creating a date time picker control in the angular material and having the below code to do that
Umamaheswaran
  • 3,690
  • 3
  • 29
  • 56
76
votes
5 answers

Material Components for the Web vs Angular Material 2

Recently, the successor to MDL (Material Design Lite) project was launched as Material Components for the Web. One of its goals is "Seamless integration with other JS frameworks and libraries". There is another project Angular Material2 which…
DeepakV
  • 2,420
  • 1
  • 16
  • 20
74
votes
8 answers

Angular 4 Material table highlight a row

I'm looking for a good way to highlight the whole a row in md-table. Should I do directive or what?