Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

99
Visualizações
Using Local reference breaks while create a staging/production build (Angular)

Following are the template code and the error I get while creating the build although it works fine when I do ng serve.

<input type="text" class="form-control unit-price"  name="unit_price" [(ngModel)]="item.unit_price" #unitPrice="ngModel" required>
           <span class="small text-danger" *ngIf="!unitPrice?.valid && unitPrice?.touched ">Field is Required</span>

enter image description here

Any thing I am missing ?

Will I have to declare that property in component ?

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

On my UnderStanding There is no unitPrice field inside the item object please verify the item object that you had mentioned in the [(ngModel)].

about 4 years ago · Juan Pablo Isaza Relatório

0

On the other hand, convert this: #unitPrice="ngModel" to this: #unit_price="ngModel" in your code.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda