Questions tagged [angular-material]
Angular Material is an implementation of Material Design in Angular. Do not use this tag for AngularJS Material, the implementation of Material Design for the older AngularJS framework.
angular-material
19,861
questions
-1
votes
1
answer
24
views
Drag and Drop component where both drag and drop both horizonatally and vertically in Angular
Problem statement
I am trying to develop a interface which is dynamic length 2 dimensional metrics (M x N) where N is of different length and can grow and shrink. Think the interface like a checker ...
1
vote
0
answers
9
views
How to disable matBadge animations in Angular Material?
By clicking on the icon, I want only the number inside the matBadge to change. I don't want an animation to be made when clicking. How do I do that?
<div class="action_like">
&...
0
votes
0
answers
20
views
how to load lazily loaded route in mat-sidebar-content?
I've a structure in Angular and we are following module based structure. Not standalone components.
SideBar Component
<mat-sidebar-container>
<mat-sidebar>
/* Sidebar Menu Items */
</...
2
votes
1
answer
35
views
How to extract colors from a palette in Material 3
With Material 2 (Angular 17) I used to extract colors with:
mat.get-color-from-palette($primary, 800). What would be the equivalent in Material 3 (Angular 18)?
0
votes
0
answers
15
views
mat-expansion-panel: ask for confirmation before close
I have n mat-expansion-panel in a mat-accordion. Each panel contains a form to edit data the a certain entity. Since I use this:
<ng-template matExpansionPanelContent>
<ng-container *ngIf=&...
1
vote
2
answers
24
views
Error: control.registerOnChange is not a function with reactive form
I am trying to get the mat-select to open with 'tag2' selected. It works with a string[] but not with { id: number; name: string }[].
tags: { id: number; name: string }[] = [{ id: 1, name: 'tag1' }, ...
0
votes
3
answers
42
views
How to resolve ngx-bootstrap Dependency Error
I got the following error, What's the meaning of this error log and do you know how to fix it ? Thanks.
137 error code ERESOLVE
138 error ERESOLVE could not resolve
139 error
140 error While resolving:...
0
votes
0
answers
10
views
How to Implement Cloning, Auto-Arrangement, and Realignment of Drag-and-Drop Images in Angular CDK?
I am working on a drag-and-drop exercise in Angular. When I drag an image, it should be cloned. When I drop it into the designated container, it should be fixed to that container. If I place the image ...
0
votes
2
answers
35
views
Trouble with MatPaginator trying to create a generic component
I'm using angular-material to create a generic table. When I navigate to the details of an object in the table and when I want to open the table page from the menu, it does not render the data until I ...
0
votes
1
answer
40
views
How to Synchronize mat-paginator Page Sizes?
I'm attempting to synchronize the page sizes of multiple mat-paginators that are nested across multiple child components.
I'm using a shared service to store the "global" page size.
However, ...
0
votes
0
answers
27
views
Is there a "Hello World!" project for Angular with Material 3 and theming [closed]
I want to create a theme and apply it to my application, but I cannot get it to work.
(Angular 18, Material 3 theming)
I have created this styles.scss:
@use "@angular/material" as mat;
@...
1
vote
1
answer
28
views
CKeditor5 with Angular 18
I've updated an angular project from angular 13 to angular 18 but now my Ckeditor5 does not work anymore, I could not find anything related to it on the Ckeditor5 website, there is a quick start that ...
1
vote
1
answer
33
views
How to set text colors in Angular Material
I have an Angular app using a legacy version of Material that I need to upgrade to be a more modern non-legacy version (version 16,17,or 18). Overall this works, but now the default text is a much ...
0
votes
0
answers
21
views
How to implement drag and drop on a table list with pagination in angular?
I have a table with ngb-pagination and now I have a requirement to add drag and drop in the list.I am not able to drag an item from page 1 and drop that item in page 2. Is that possible to do it. How ...
1
vote
1
answer
25
views
How to customize date validation error messages in Angular?
I am working on an Angular form where I need to validate a date input field. Currently, if I enter a non-date text like "Date" in the field, I receive the error message "Date is ...