All Questions
1,414 questions
1
vote
3
answers
61
views
Angular material - browser autofill changes input styles
Currently I'm facing the issue that occurs after web browser auto fills the user input like in this screen:
I tried it on two browsers and it looks simaliar (chrome adds white background and firefox ...
-1
votes
0
answers
75
views
How to prevent custom sidenav content from overflowing the viewport in Angular?
In an Angular application, I currently have the following structure. Until now, I was trying to use the mat-sidenav-container.
However, with the Angular Material sidenav, I wasn't able to properly ...
1
vote
2
answers
63
views
How could I apply different colors for mat-form-field "formControl" depends on the state of it?
I have this HTML code:
<mat-form-field class="me-3" appearance="outline" class="filterText">
<mat-label [ngClass]="{'mat-label-error': form.get('...
1
vote
1
answer
38
views
How could I change background-color of the dropdown of mat-paginator?
<mat-paginator
#paginator
class="table-paginator"
(page)="handlePageEvent($event)"
[length]="paginatorLength"
[pageSize]="...
2
votes
1
answer
62
views
How to insert an icon in mat-select and have it be on the rightmost side after Angular v15 introduction of the checkmark in mat-select?
In the process of upgrading my project to Angular 15 and applying the MDC migration, mat-select introduced a checkmark for actively selected components and it seems it has caused the icons I kept ...
1
vote
1
answer
58
views
Array of data showing in console but not in HTML after passing it through dialog in Angular project
Method that I use to pass the data:
openDossiersList(): void {
if (this.selectedDossier) {
this.dialog.open(DossiersListDialogComponent, {
width: '400px',
...
1
vote
1
answer
53
views
String interpolation via directive
Most commonly you would set the mat-option text in a way like this.
<mat-option [value]="type.key">{{ type.value }}</mat-option>
The thing is I have a directive that processes ...
1
vote
1
answer
126
views
How to customize the default warning popup on browser?
I am running an Angular 12 project and I want to replace the default warning dialog by Angular dialog when user try to leave/ refresh page when there is a process still running (remove the default ...
1
vote
2
answers
52
views
Angular material progress spinner reactive
in Angular material progress spinner component we can actually set size by setting diameter. I want to know if there is an option to make this diameter responsive so it based on window size.
<mat-...
1
vote
1
answer
45
views
How put an id(like index value) on a tr
I need to put an id that represent that number of row in my tr
I put this code
<tr mat-row *matRowDef="let row; columns: _columns;let i = dataIndex;" [id]="i"></tr>
...
0
votes
0
answers
83
views
Angular Material Table - how to disable row click on a specific column?
I have an Angular component with the HTML hereunder:
<table [dataSource]="dataSource" mat-table class="content-table" matSort matSortDirection="asc">
<ng-...
2
votes
2
answers
158
views
Angular Material Button Color Not Applying with routerLinkActive
I'm using Angular Material for my application and have the following button setup:
<mat-toolbar>
<span>
<a routerLink="/">My Messages</a>
</span>
<...
1
vote
2
answers
62
views
How to make headers of <mat-tab-group> sticky / fixed on top? (Angular Material 18)
I have the following code:
<div class="flex-auto overflow-y-auto">
<mat-tab-group
[animationDuration]="'0'"
headerPosition="below"...
0
votes
1
answer
214
views
Angular Material List not rendering list properly when the list item is a component
Objective
I am attempting to encapsulate the formatting logic (not routing logic) into a component.
I am using the Angular Material's MatList component.
<mat-nav-list>
<!-- The below <a&...
2
votes
1
answer
40
views
What are the ways of Accessing attributes of images `<img>` inside ng-image-slider (specifically `onerror` to show default src if img src not found)
I am using an <ng-image-slider> inside angular component to display sliding images. If the source of the image is not available then I want my slider to show default image (with taken into ...