Angular-material Questions
Ad
Issues with the material table updating when using paginator
I've searched and i've searched and i've searched, i can't find an answer to this. i am using angular firestore to fetch data (tried both
Flexbox - How to split row 50/50 between two elements and wrap if width falls below min-width?
I have a simple div which contains two mat-cards. here are the css attributes of the div and of the cards inside the div: .cards {
Angular 2 md-grid-list set column with screen size
I searched for this topic but i did not find a subject that was fitting my problem. i'm trying to set column size to the elements inside my
angular material 2 md-autocomplete dynamic name
In the documentation explains that you have to create a md-autocomplete like that: <md-form-field> <input type="text"
Meterial 2 md-datepicker-toggle is not a known element
After import mddatepickermodule and mdnativedatemodule, in my html: <input mdinput
Angular Material 2 md-input-container not working
I'm encountering an issue with angular-material2 where i'm trying to use an input. however, none of what i tried has worked. i'm getting
Material 2 - md-sidenav not opening from right to left
I want the side navigation to open from right to left. i used the align property and set it to "rtl" but it is not working.
Material 2 md-menu how to change background color for only one menu
I am using md-menu in multiple places but only in one page the menu background needs to be a different color. when i try to do it with
Angular Material 2 md-select required not working on form submit
I create a simple form with a textbox and a dropdown. both are required. when i click submit button textbox becomes red while dropdown
Ad
Angular material 2 md-card width
I'm having an issue with the md-card component <md-card> <img height="200" width="200" md-card-image
Angular 4 - material 2 - md datepicker set first day of the week
How to set first day of the week using material 2? currently the default is sunday even if i set the locale to hu or anything else..
Angular 2 md-radio-button set value programatically
I'm trying to set a value programatically of a md-radio-button inside of a md-radio-group. here is my code simplified
Angular 2 md-input placeholder not moving up with ngmodel
I'm using angular material to style a input. usually when there is a value in the input, the placeholder should move up; but it didn't happens
Angular 2 md-tooltip not working
My tooltip doesn't seem to be working. i'm not sure why that is. been looking around for known issues, but so far i haven't found anything.
using HTML5 drag and drop with Angular material 2 md-list
Consider the following component template, i am trying to achieve ability to reorder list elements for angular material 2 and simple li-tag.
Angular Material 2 md-tab content height
I'm new to angular material and i'm trying to implement md-tab into my app. but, i'm not able to style my tab content to acquire the remaining
Material 2 md-tab-nav-bar wraps on mobile
I want to use tabs for navigation. i followed the
Angular Material 2: 'md-input' is not a known element
What am i missing here? should md-input be individually loaded in the module file? this
Angular Material 2 Md-ToolTip with show conditionally
I am trying to use angular material 2's mdtooltip. the
Angular Material 2: md-select doesn't show initial value
Good evening, i'm using angular material 2.0.0 beta1, and i've got troubles with md-select. here is the code: <md-select
Ad
Sync 2+ md-virtual-repeat
I would like to be able to sync 2 md-virtual-repeat lists so that their scroll positions are identical. i tried using md-top-index and
Why Angular duplicate enum values?
Here's my enum: export enum mytypes { house = 1, apartment = 2, flat = 3, studio = 4 } if i cycle in a
Angular app.component.html doesn't render
I'm learning and testing angular. i am following a tutorial that uses angular and material ui. i am trying to render the html from my
change md-card-title from app.component.html when card has its own component
<app-card></app-card> is in my app.component.html and displays the card component
How to calculate and bind to multiple input fields in Angular
I am trying to bind multiple input fields together but am having trouble doing so. i basically have multiple input fields where if one input field
Multiplication of value not working on output field
I am trying to make an output field multiply it's value based on a value i set in my input field. eg. if the input field is equal to 2 then the
Angular Material Table how to invert an icon in only one row?
I have a mat-table with 3 icons in each row. one of the icons is an arrow that opens up an expandable row when pressed. i want to invert the icon
Angular Material - Compare and iterate through two datasources
I am using mat-table to display records in grid format. also i have implemented expandable rows by using two different datasources. first
The style (css) of Angular Material is not the same of the one in the documentation
This thing it's starting to annoying me, so i'm here to ask help! i've started working on an angular application with the material. i want
expand firstLevel Tree in angular material
I created a tree in angular. that tree has 3 levels. when the tree is loaded, the first level is opened.
Hide a component on click of mat-button and display other one Angular 9
I need to have an intro page in my angular 9 app. there i have a mat-button which when i click it i need to display the home page
Ad
ternary operator does not work in angular
I have the following code and i want whenever the list is empty the td displays a text and as soon as it gets some elements, show the
Performance of mat-table with 30 000 rows
I use angular 6, firebase and angular material. i have 30,000 json objects stored in firebase that i want to load them into a mat-table.
To highlight the selected row in mat-selection list and show its corresponding data by default
When we hover over the first column of the table a tooltip appears and then on clikcing on the button presnt in the tooltip mat dialog opens
Installing Angular material leads to almost 600 vulnerabilities audit result
I need the drag and drop capabilities from the @angular/material module, but when i install it using angular cli, a bunch of
Enable mat button only on object change
I have a mat-toggle-button which i would like to make clickable only when an object in the ts class is changed,
ERROR TypeError: Cannot read properties of undefined (reading 'imageUrl') Angular material
When i write this line of html code: <td> <img align="center" [src]="productbybarcode.imageurl" />
Retrieve firebase list data to create a dynamic table
I want to push the values into a array like below when i retrieve values from firebase database columns: any[]; this.columns = [
Mat-Sort won't sort when table is inside authenticated template
I have a table, data comes from a firebase database. problem i'm having is sorting the table when using authentication. i built the site on two
i'm making a carousel of images and i've the error : The left-hand side of an assignment expression may not be an optional property access
I am making an image carousel in angular that receives a model to iterate the images, but when i try to take the first position it throws me an
Angular - Mat Paginator : Multiple Tables in a component
I am stuck on an issue for a while now, searched for solution but, unfortunately, nothing is working. i am rendering 5 tables on the
Using Material icons inside a library component with Angular Nx Storybook
I am having hard time in using angular material icons in nx storybook. here is how these are configured in angular.json, i think i am not
Ad
How to use custom material color palettes in Angular?
I am using material buttons in my page as such: <button mat-stroked-button color="primary">learn</button>
Mat-Selection-List selectAll() not working
I am trying to implement selectall() and deselectall() but it is showing error:
Passing keys in an object and using it in *ngFor
I have an api response [{"pass":15,"fail":80,"skip":5,"total":100}] and want to show progress bar basis of pass, fail and skip
Not allowing me to pass false value while using child to parent component interaction
Argument of type 'boolean' is not assignable to parameter of type 'string | symbol'.ts(2345) cancel() {
Telling an Angular Reactive form to repaint?
In this reset password material stepper demo in the first
Angular Material Expansion Panel Header with Input
I have an angular 12 application using angular material components. i have an expansion panel which in the header has an input.
add custom validation in input type text using angular material stepper
I am using angular stepper to display all my data and take input for some of the text boxes, but i want to add my custom validations when user
Setting angular material date picker value programmatically
I am using angular material date picker in one of my component's of angular project. this component has two tabs. using *ngif i am showing only
How do we set a datepicker default value to 1 year from today?
How do we set to an angular mat date picker where the default selected value is 1 year from today ?. thanks. when the date picket loads the
Angular Mat Stepper enable only active navigation and completed navgation
I made a steppers sample project with react.js and material ui. link is
Close dropdown with button - Angular Material
I am using the selectto dropdown in angular material design. this is my code: <mat-form-field id="inputclick"
Ad
Why is mat-error working on MatDialog but not on normal page?
I have a normal html page that has an input field and a button. the user inserts some value on the input field and the app makes an http
How to fix the design of the Header on dataTable while Draging
I'm setting a reorder-able table, using { mat-table , mattabledatasource } but when i drag a column i want it's place to have a white background
ERROR Error: mat-form-field must contain a MatFormFieldControl. validation on dropdownlist
I have a angular application and i am using angular material of course i googled a lot about this error message. but didnt find any
How to dynamically display sum of selected row data on Angular?
I am trying to dynamically display the sum of selected column data through selectionmodel on the selected rows below my table. the
Angular Material Table: how to pass/submit selected rows upon button click?
There is a similar question
How to make dropdownlist required in angular material?
I have a search 'form' with angular material. but it is not a form with a submit button. but just a button. like this:
How to populate data from backend in dropdownlist and select the value in Angular?
I hava angular 8 application and i am using material. what i want to archieve is that data from the backend will be populated in a
How to get value from dropdownlist from backend in Angular template
I have a angular 8 application and a dropdown with two values: on the backend the names of the two values are: invited and registerd.
Angular Forms create control for each property of object
I am trying to create an angular form array which contains multiple objects and each object has 5 properties. i retrieve the array of objects from
change colour of a mat button when clicked in angular
Hi i am developing an angular application. i want to create tabs, clicking on each calls a different function. i am using mat buttons for it. my
Ad
How to omit 0 and negative numbers, but user can enter for example 10 in angular materials
So i hava a angular 8 application and i am using the material angular library. and i have a nummeric field. but i want to omit the user from
Angular: disable material button with directive doesn't works
I want to disable some buttons through a directive (add disabled property to button). this directive works on classic html button but
Fire an event on close of multiselect dropdown in Angular material
How to fire an event on close of multiselect dropdown in angular material? this is my html template
Problems with Angular routing. Error: Uncaught (in promise): Error: Cannot match any routes
I'm using angular material with routing. after a click event i want that my app will go to an url which contains the parameter
How to prevent my angular sidenav from hiding the toolbar?
I would like to design an angular component made of a toolbar and below a sidenav. here is the corresponding html code for my component:
How to programmatically change the month in Material Calendar <mat-calendar>
I'm using the material calendar component with custom navigation that i've built which shows the next 5 days after you select a date in the
ERROR Error: mat-form-field must contain a MatFormFieldControl while using API documentation?
I imported the matformfieldmodule like this: import { browsermodule } from '@angular/platform-browser';
use modified angular cdk module in other project locally
I have forked, cloned and modified the angular material repository to suit my needs. code in the dev-app runs fine. now i want to use this
"How to set the DatePicker in Angular Matrial 7 ? Input Tag getting hide ?"
I am working with angular material and facing the problem to manage the datepicker component because it's doing hide input box and because of that
Reloading a paginated mat-table fails to display rows in Angular
I have a mat-table that loads data from firebase. all-matches.component.html ... <mat-table #table
Angular Material: How to refresh a drop-down list after a certain condition?
I have a dropdown that i want to refresh the value, more exactly , i have two language and for each of them i have those elements [name-for
Ad
Material Angular table not sorting column which contains objects
I'm building a web app using angular material and am trying to display a table with sorting. the sorting works on all but this column. this is the
How to chain suscriptions
Hi i am trying to chain following subscriptions. changebranch() { const bottomsheetref: matbottomsheetref =
Angular Material Table with Firebase Is Empty When MatTableDataSource Used
When i use mattabledatasource for my table for data from firebase the table is empty. when i save the data from firebase to a variable the table
material table datasource from firebase
Hi i am using angular material 5 and angular 5 along with angularfirebase2 version 5. i am able to get the datasource and display the material
ngmodelchange called when mat-option selected in angular material
I have a scenario whenever the user starts searching for something which will call the http service and get the response and show it in the
how to send fullcalendar day click date to other component in Angular5
I am trying to send the date to dialog(for registering new event). this is how i added in calendaroptions,
How to delay opening in CDK overplay?
I'm using the cdk overlay to display a "popover" when the user hovers over a list item. i currently open the popover when the mouseenter event
angular material mat-drawer issue with height
For some reason, i can't seem to get the mat drawer to occupy the remaining available height on the screen. i've tried:
Angular 6 material table adds row(form field) with last entered value
I am trying to add form fields and displaying it in the form of material table. but when i try to add a row(form field) it displays form field
How to properly format this data for Material Table [dataSource]?
I can get the data from the api to show using *ngfor='let earning of symbolearnings.earnings'>{{earning.actualeps}}now
How to create a dropdown from an icon using Angular Material?
I would like to click the alarm icon and that creates a dropdown menu. i have already seen
Ad
Angular material not loading styles correctly
I am using angular material, to build table here is my component for table: import { component, afterviewinit, viewchild }
Open mat-expansion-panel ONLY when button is clicked
Is there a way in which i can make my mat-expansion-panel open only when i click a certain button? i am thinking of
Adding confirm password validation to Angular Reactive Forms?
I'm following this tutorial for
Pushing new FormGroup into FormArray marks dynamic FormGroup as invalid
I'm not sure if this is a bug, almost 90% certain it's not, but i want to know the logic behind something like this occuring. i have a
Angular Material datepicker not pre-filling value from Laravel API response
I have an angular material date picker field in a form. the form is connected to an api endpoint built with laravel. when i select a date in the
Contents of Angular Sidenav material container don't render
I am trying to use the angular material sidenav in my project but when i add it to the project it causes the entire page to be blank (white) and
How to change css of the hover text in mat-icon angular?
I am using a mat-icon like this html code file - datentry.component.html <mat-icon mattooltip="time
How to change a mat-progress-bar value in an interval?
I'm using angular 5 and i have a mat-progress-bar. i also have a timer with 2 * 60 value that means 2 minutes. i want to decrease the value of
How to Implement *matCellDef and *ngif on the Same Cell
I originally created a static html table where i set a formula and css based on the value in the cell: <td
How can the condition be reduced to one line?
I set the condition like this: <mat-chip-list> <mat-chip color="accent" *ngif="letter.status ==
Angular 6 Router Transition Animation doesn't work (Nav bar)
I am trying to implement fade transition on my router outlet - whenever you move to a page you get fadein/out. however it just doesn't
Ad
Change input fields text as a user types in Angular 6
I have a function which adds and removes colons as a user types, however the output is being shown outside of the input field hence i am trying to
Angular Material Badge: Make MatBadge contain an icon instead of text?
Using angular/material 6.2.1, i am trying to add a badge to a button, which works fine. however, instead of showing plain text that i
Ad
Blog Categories
Ad