Changeset 15a34a3 for src/Clients
- Timestamp:
- 10/27/21 21:40:11 (3 years ago)
- Branches:
- dev
- Children:
- c152da1
- Parents:
- 32cd040
- Location:
- src/Clients/Angular/finki-chattery/src/app/shared-app/components/question/ask-question-shared
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Clients/Angular/finki-chattery/src/app/shared-app/components/question/ask-question-shared/ask-question-shared.component.html
r32cd040 r15a34a3 1 <form class="example-container"[formGroup]="questionFormGroup">1 <form [formGroup]="questionFormGroup"> 2 2 <mat-form-field class="full-width margin-bottom-sm" appearance="fill" appHandleInputFormErrors> 3 3 <mat-label>{{ 'ask-question-question-title' | translate }}</mat-label> -
src/Clients/Angular/finki-chattery/src/app/shared-app/components/question/ask-question-shared/ask-question-shared.component.ts
r32cd040 r15a34a3 1 1 import { Component, EventEmitter, OnInit, Output } from '@angular/core'; 2 2 import { FormControl, FormGroup, Validators } from '@angular/forms'; 3 import { Router } from '@angular/router';4 3 5 4 import { CategoryFacadeService } from 'src/app/core/state/category-facade.service'; … … 22 21 public categoriesList$ = this.categoriesFacade.getCategories(); 23 22 24 constructor(private categoriesFacade: CategoryFacadeService , private router: Router) {23 constructor(private categoriesFacade: CategoryFacadeService) { 25 24 this.questionFormGroup = new FormGroup({ 26 25 title: this.titleForm, … … 33 32 34 33 public askQuestionEmit(): void { 35 const body = new AskQuestionRequest(this.titleForm.value, this.textForm.value, this.categoriesForm.value); 36 this.askQuestion.emit(body); 34 this.askQuestion.emit(new AskQuestionRequest(this.titleForm.value, this.textForm.value, this.categoriesForm.value)); 37 35 } 38 36 }
Note:
See TracChangeset
for help on using the changeset viewer.