Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
How to show the dropdown list based on the picklist values

I have an angular application in that I have to show the dropdown list based on the picklist values.

.service.ts

 public getLists() {
    let baseUrl = `/endpoint`;
    this._restfulService
      .restfulGetData(baseUrl)
      
      .subscribe(
        (LookupData: LookupData) => {
          if (LookupData) {
            this.option1data = LookupData.option1Data;
            this.option2data = LookupData.option2Data;
            this.option3data = LookupData.option3Data;
            this.option4data = LookupData.option4Data;
            
 }
        },
        (err) => {
          console.error(err);
        }
      );
  }

.component.html

 <div class="row">
          <div class="form-group">
            <div class="col-sm-3">
              <label for="action"> <b>Category</b></label>
            </div>
            <div class="col-sm-7">
              <select>
               
                <option value="" disabled [selected]="true"></option>
                <option>option1</option>
                <option>option2</option>
                <option>option3</option>
                <option>option4</option>
        </select>
            </div>
          </div>
        </div>

 <div class="row>
          <div class="form-group">
            <div class="col-sm-3>
              <label for="action"> <b>Lists</b></label>
            </div>
            <div class="col-sm-7">
              <select>
               <option value="" disabled [selected]="true"></option>
                <option>
                 
              //In this dropdown I have to show the lists based on the selection of picklists
                </option>
              </select>
            </div>
          </div>
        </div>

So In tha above code if I select option1 from the picklist I have to show the option1Data dropdownlist etc..

can anyone helpme on this

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

<div class="row">
  <div class="form-group">
    <div class="col-sm-3">
      <label for="action"> <b>Lists</b></label>
    </div>
    <div class="col-sm-7">
      <select>
        <option disabled selected="true">Select pick</option>
        <option *ngFor="let items of LookupData" [ngValue]="items.name">
          {{ items.name }}
        </option>
      </select>
    </div>
  </div>
</div>

please put the above code in the HTML file. Hope this code will helpful to you

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda