angular4-forms Questions
5
Solved
I tried to bind my model on my view, but I have a problem when I submit my form : I don't have an array, but many property.
component :
export class QuizFormAddQuestionComponent implements OnInit...
Halfway asked 30/8, 2017 at 20:16
4
ERROR TypeError: jit_nodeValue_4(...).$any is not a function
at Object.eval [as handleEvent] (AddNewConnectionsComponent.html:42)
at handleEvent (core.js:13581)
at callWithDebugContext (core.js:150...
Sultanate asked 11/1, 2018 at 13:47
7
Solved
I am trying a nested reactive form in Angular 4. It is working fine but when I try to build AOT it's throwing the error
'controls' does not exist on type 'AbstractControl'
I googled and tri...
Algoid asked 25/10, 2017 at 7:13
5
Solved
I have a form and an underlying model like this
From component
myTextModel: string;
updateMyTextModel(): void {
this.myTextModel = "updated model value";
//todo- set form dirty (or invalid or t...
Adal asked 1/12, 2017 at 8:9
2
How do i display multiple field within a primeng auto complete box.
for example:
<p-autoComplete [(ngModel)]="val" [suggestions]="results" (completeMethod)="search($event)" field="name,lastnam...
Wolfsbane asked 27/10, 2017 at 10:37
5
Solved
I want to remove validation for which control is not rendered by using NgIf. I was try to use directive to remove with hidden control but cannot do the same because it not render in template. So I ...
Normanormal asked 23/4, 2018 at 4:3
2
Solved
I have developed a custom Component (app-mat-avatar) to use as an avatar choose (See picture). It consists of one big div with a picture and 2 buttons. One to edit, the other to erase.
I built it f...
Tamarau asked 16/11, 2017 at 22:7
2
Solved
I a working on angular 4.4 + material beta12 custom component and not able to figure out what is wrong in my implementation
I am trying to achieve the below custom input
Task:
set value to for...
Spile asked 30/10, 2017 at 16:29
3
Solved
I want to create a graph similar to the picture I have attached or may be a bar graph. I am using Angular 4 and I have no idea about graphs in Angular. Is a reference link or some sample code avail...
Pithecanthropus asked 14/12, 2017 at 10:28
2
I have a multi-step form where the user traverses back and forth to the form. I save the form data in service and when he comes back I use patchValue to patch all the data to form. I tried setValue...
Riane asked 19/12, 2017 at 18:12
2
Solved
What I want to Achieve is that I have a Select field in angular6 on the basis of the selected value I want to hide and display another div.
Here is the code.
<div class="form-group">
<...
Mortification asked 18/10, 2018 at 11:37
1
I need to check whether password and confirm password fields have same value using reactive form angular 4+. I did see a lot of answers on the same here,Angular 4 form validating for repeat passwor...
Heyer asked 27/9, 2018 at 0:7
2
Solved
I have a file upload in the form. I need to create post request to backend with this uploaded file and some other form fields too.
Below is my code:
fileChange(event) {
const fileList: FileL...
Herminiahermione asked 24/7, 2018 at 21:35
1
Solved
So I have a child component that goes something like this
export class ChildComponent implements OnInit {
@Input('parentForm')
public parentForm: FormGroup;
constructor(private fb: FormBuild...
Buxtehude asked 7/3, 2018 at 22:39
2
Solved
I'm adding a child component to a parent component form.
Pessoa.html
<form [formGroup]="usuarioForm" novalidate>
<div class="col-md-4">
<div class="form-group">
<label for...
Shuster asked 24/5, 2018 at 21:26
2
I want to submit form to external site by POSTing the input fields in old school way(non Ajax) , it submits too but Angular giving me error in console before jumping to external page.
I used follo...
Phebe asked 23/3, 2018 at 9:55
0
I want to submit form to external site by POSTing the input fields in old school way(non Ajax) on paypal.
code for answer worked for me. https://mcmap.net/q/1453861/-angular-2-4-how-to-post-html-f...
Laith asked 24/4, 2018 at 15:53
1
I was going through the doc of angular.io (Reactive forms are synchronous), trying to understand the reactive forms (how they are synchronous and template driven forms are asynchronous).
But the d...
Crier asked 5/4, 2018 at 5:56
2
Solved
I have a company class, it has an headquarter's address field. The address is an interface, it has an another object, country, which is an another interface.
In my database I store all the countrie...
Protasis asked 26/3, 2018 at 8:51
1
Solved
If I use template-driven forms I can inject a reference of a FormControl to an "error-message" component. Note the use of the ngModel directive (see this tutorial).
<input type="text" name="myF...
Decapolis asked 14/3, 2018 at 8:22
2
I set up a linear stepper using the Angular Material 2 Stepper.
I have forms in different components (component-a, component-b, component-c). In my main container component (container-component) ...
Bastinado asked 25/10, 2017 at 18:5
3
So, I am having problems using mat-select with mat-form-field . Using mat-form-field with mat-input is not a problem, and I am fairly sure my imports are correct as well, yet I receive the followin...
Maenad asked 3/11, 2017 at 21:23
1
Solved
I am trying to apply external library for datetime picker. I am getting an error like below:
ERROR Error: Uncaught (in promise): Error: No value accessor for form control with name: 'dateTimeDepar...
Damondamour asked 26/12, 2017 at 17:13
3
Solved
I developing a angular 4 application and facing a problem while binding the data to the form. The binding code seems to be fine and not sure what the problem is. When I debug the application , I ca...
Anadiplosis asked 20/11, 2017 at 18:30
3
Solved
In Angular 4+, I've following template driven form:
<form #addForm="ngForm" (ngSubmit)="onFormSubmit($event, addForm)" >
<div class="form-group">
<label for="item_name">Item Na...
Youmans asked 28/11, 2017 at 20:42
© 2022 - 2024 — McMap. All rights reserved.