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

184
Visualizações
Is it possible to create a view for each object of a list ? Vue.js

I'm quite new with vue.js and all its possibilites but i kinda start to feel comfortable with it. Here is my issue: i got a list that contains a lot of objects of the same type. This object contains some data in it. What i am trying to do is to create a view for each object and to display the data in it into the corresponding view. Here is some code to help you understand my issue.

<Card 
  v-for="room in rooms" :key="room" 
  class="room" 
  v-on:change="selectedBuilding" 
  style="margin-top: 2rem; margin-left: 7rem; margin-right: 7rem"
>
  <template #header></template>
  <template #title>
    <router-link to="/Building/Room" class="pr-2" v-bind="room">
      Salle {{room.name}} - Level {{room.floor}}
    </router-link>
    <Divider type="solid"/>
  </template>
  <template #content>
    <Button 
      label="Edit" 
      class="p-button-raised p-button-secondary p-button-text" 
      icon="pi pi-fw pi-pencil" 
    ></Button>
    <div>
      <Divider type="solid" style="color: #0d3c61"/>
    </div>
  </template>
  <template #footer></template>
</Card>

As you can see i have a bunch of rooms and i'd like to have a view for each one. Also i'd like to display the data of each room into the corresponding view. I searched in the forum and all over the documentation but i didn't found something relevant or i didn't understand the purpose of the tools.

I was also asking myself if it's possible to create one unique vue which changes depending on the data of the room i clicked on ? Because all the rooms got the same type of data and will be displayed in the same way, only the content of the data changes.

So i'm asking directly here if it's possible to do the first one or the other solution and if it is, how can i do it ? Thanks a lot in advance !

about 4 years ago · Juan Pablo Isaza
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