Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

How do I customise mat-datepicker date in MM/DD/YYYY format? I’m using following following configuration: HTML: <mat-form-field> <input matInput [matDatepicker]="picker" placeholder="Choose a date"> <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle> <mat-datepicker #picker></mat-datepicker> </mat-form-field>TS: import {Component} from '@angular/core';/** @title Basic datepicker */ @Component({ selector: 'datepicker-overview-example', templateUrl: 'datepicker-overview-example.html', ...

  • 0

I need to dynamically create a bunch of MatMenu. So far I have no idea of how I can: 1 – Create a template reference variable dynamically (for the mat-menu component) 2 – Reference the dynamically created variable (to use in the [matMenuTriggerFor] attribute of the trigger) I’ve ...

  • 0

I want to change the text of the input placeholder dynamically. The console.log already gives the updated string but the interface doesn’t update so there stays the old placeholder. How can I get the Interface to recognize the change? document.getElementById(this.implicKey).setAttribute('placeholder', options[i].implication);console.log(document.getElementById(this.implicKey).getAttribute('placeholder'));

  • 0

How do I customise mat-datepicker date in MM/DD/YYYY format? I’m using following following configuration: HTML: <mat-form-field> <input matInput [matDatepicker]="picker" placeholder="Choose a date"> <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle> <mat-datepicker #picker></mat-datepicker> </mat-form-field>TS: import {Component} from '@angular/core';/** @title Basic datepicker */ @Component({ selector: 'datepicker-overview-example', templateUrl: 'datepicker-overview-example.html', ...

close