DigitMagazine

User details list element component github-user

Jul 25th, 2017
105
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Vue.component('github-user', {
  2. props: ['user'],
  3. template: `<li>
  4. <img :src="user.avatar_url" />
  5. <a :href="user.html_url">{{ user.login }}</a>
  6. <span v-if="user.type == 'User'">(U)</span>
  7. <span v-else>(O)</span>
  8. </li>`
  9. });
RAW Paste Data