I'm making a dynamic form. A Field has a list of values. Each value is represented by a string.  export class Field{     name: string;     values: string[] = [];     fieldType: string;     constructor(fieldType: string) {this.fieldType = fieldT...
I am trying to learn angular material 2 and came across this #auto attribute in autocomplete.I understand auto can be replaced with any text, but why there need a # here before auto and what is there any name of this attribute?  <md-input-contai...
I am making an application using angular 6, where i am using angular dynamic  form.  As of creating the form and submitting i have completed everything, You could able to see the working stackblitz, https://stackblitz.com/edit/angular-x4a5b6-hne6fg...
Don't even know the proper terminology to explain this problem  so, imagine this scenario...  There is a form-input-component and capturing some attributes and passing it down to the markup inside  <form-input placeholder="Enter your name&...
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 following code in HTML(template)  <form (submit)="o...
I have build angular cli project and have a form with checkbox. Some of the fields must disable on checkbox select.  Form is as follows   need to disable/enable password, new password and re type password fields on checkbox select event.  Html   <...
What I have:  I am building an ionic 2 app and have built a basic angular 2 component that contains   An input field A label to display the inputs title A label to display any validation errors   I will refer to this as my input component  I have a p...
I am building angular2 form and I would like to have multiple buttons to submit the form, e.g "Save" and "Save and close".  I have tried to use simple buttons with click action on them, but I didn't find anyway to manually mark fo...
Given a form where one can enter either a city name or its latitude and longitude. The form would validate if city name is filled OR if both latitude AND longitude are filled. Latitude and longitude, if filled, must be numbers.  I could create a Form...
I have a component which employs template-driven form  <form (ngSubmit)="onSearchCorpus(form)" #form="ngForm"> <combo-box [(ngModel)]="model.corpus" name="corpus" #corpus="ngModel"></combo-box>...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.