<div class="form-group"> <label>Type</label><span class="required-field">*</span>…
Jump to turn (6)
- 1Type Select type {{ type.typeEn }} i have this and i want to display selectType
- 2there missunderstand i want show as placeholder with no effect
- 3i want to show in select box by default once open the page
- 4i don't want to change in storeRequest={}
- 5Select type why this not work with me
- 6no i discovered that is not worked because using of ngModel, is there option to
- User
- Assistant
You can achieve this by setting the value of
storeRequest.type_idto the ID of theselectTypein your component file. For example, if the ID of theselectTypeyou want to set as default selected is 1, you can do the following:In your component file:
codestoreRequest = { type_id: 1 };This will make the option with the value of 1 as the default selected option in the dropdown list.
- User