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

I am trying to get the Text of Selected option of Select control in Angular 4. HTML: <div class="col-sm-6 form-group"> <label>Industry</label> <select class="form-control select" formControlName="Industry"> <option value="">Please select Value</option> <option *ngFor="let industry of industries" [ngValue]="industry.ID">{{industry.Name}} </option> </select> </div>upload.component.ts this.form.controls['Industry'].valueChanges.subscribe((name) ...

  • 0

As the title says, I have a reactive form that has multiple <mat-select> contained within. On initial form load, the initial option is not displayed even though form.value shows it is. Pertinent component.ts: export class DesJobInfoEditComponent implements OnInit {...currentJobData: IJob; jobTypes: IJobType[];...constructor(private fb: FormBuilder) {...

  • 0

I have tried and failed to find the way in which to reset my angular form. Can somebody help? <form #thisIsAForm> <mat-form-field class="full-width"> <input matInput placeholder="Weather"> </mat-form-field> </form> <button mat-raised-button (click)="resetForm()">Reset</button>export class Example{ @ViewChild('thisIsAForm') thisIsAForm;resetForm() { ...

  • 0

I have this reactive Angular Form structure: myForm: FormGroup; Personal: FormGroup; FIRST_NAME: FormControl; LAST_NAME: FormControl; ngOnInit(): void { this.createFormControls(); this.createForm(); } createFormControls() { this.FIRST_NAME = new FormControl('', [Validators.required]); this.LAST_NAME = new FormControl('', [Validators.required]); } createForm(): void { ...

  • 0

Hi I am implementing a form in angular 2 using Form Builder in component.ts i have implemented my form using formGroup Below is My code public myForm: FormGroup;constructor(private authenticateservice: AuthenticateService, ...

  • 0

I have tried to confirm the password with password value. I have done as per Async validator standard. But I am wondering it’s not working and throw me the following error. Please tell anyone how to solve this error. Expected validator ...

close