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

285
Visualizações
Uncaught SyntaxError: Function statements require a function name

I'm trying to use an onClick in a v-btn that calls a function that will perform an action, when I click the browser console returns the following error:

Uncaught SyntaxError: Function statements require a function name

I'm passing the onclick like this:

:onClick="viewForm"

Using the function call as below, the alert I put to perform tests is generated, but without clicking on v-btn, when clicking on v-btn the error is generated:

Uncaught SyntaxError: Unexpected identifier

:onClick="viewForm()"

Does anyone have an idea what the error could be? or if some part of my code doesn't make sense.

Every help is welcome :)

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

0

apparently using @click is working

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