Skip to content

Instantly share code, notes, and snippets.

View AfikDeri's full-sized avatar

Afik Deri AfikDeri

  • Tel Aviv, Israel
View GitHub Profile
@AfikDeri
AfikDeri / ChatApp.vue
Created May 22, 2018 23:59
ChatApp Vue Component
<template>
<div class="contacts-list">
<ul>
<li v-for="contact in sortedContacts" :key="contact.id" @click="selectContact(contact)" :class="{ 'selected': contact == selected }">
<div class="avatar">
<img :src="contact.profile_image" :alt="contact.name">
</div>
<div class="contact">
<p class="name">{{ contact.name }}</p>
<p class="email">{{ contact.email }}</p>