0.0.10 • Published 6 years ago
vue-chat-client v0.0.10
vue-chat-client
This is a chat client for Vue.js
Installation
NPM + ES2015
npm install vue-chat-client --save
import Vue from 'vue'
import ChatClient from 'vue-chat-client'
Vue.component('chat-client', ChatClient)
Usage
export default {
data() {
return: {
feeds: [
{
type: 'message',
uid: 'UID',
text: 'Example message'
}
]
}
}
}
<!-- bind to it normally in templates -->
<chat-client :feeds="feeds"/>
Development Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
License
Copyright (c) 2018-present, Trinketmage