Skip to content

Instantly share code, notes, and snippets.

@paltman
Created October 24, 2018 15:00
Show Gist options
  • Save paltman/63cfc74754292aa33ee0eb593dd3d900 to your computer and use it in GitHub Desktop.
Save paltman/63cfc74754292aa33ee0eb593dd3d900 to your computer and use it in GitHub Desktop.
<template>
<div class="system-message alert alert-danger" role="alert">
<button @click.stop="$emit('clearMessage')" class="close">&times;</button>
<ul><li v-for="(message, index) in error.messages" :key="index">{{ message }}</li></ul>
</div>
</template>
<script>
export default {
name: 'error-message',
props: ['error']
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment