Sign Up

Sign In

Forgot Password

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

Sorry, you do not have a permission to ask a question, You must login to ask question.

Discy Latest Questions

  • 0
  • 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
  • 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
  • 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
  • 0

You must import fromEvent as follows in RxJS6: import {fromEvent} from 'rxjs'; Read the migration guide for further information, in particular have a look on the import paths section there. When using fromEvent use it as a function as follows: fromEvent(this.elementRef.nativeElement, 'keyup') Not as a static method as follows (this was ...

close