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

179
Vistas
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 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