File: app/components/test-chat/components/app/app.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy  >  Vuex Examples  >  app/components/test-chat/components/app/app.js  >  Download  
File: app/components/test-chat/components/app/app.js
Role: Example script
Content type: text/plain
Description: Example script
Class: Vuex Examples
Example apps using Vuex state management pattern
Author: By
Last change:
Date: 3 years ago
Size: 1,089 bytes


Class file image Download
], function (Vue, store, actions, message_section, thread_section, template) {

    // Create component object
    var Chat = {
        name: 'test-chat',
        store: store,
        template: template,
        components: {
            'message-section': message_section,
            'thread-section': thread_section
        created: function () {
            console.log('Component Chat created');
            // Ini config
            Vue.config.debug = true;
            // Ini filter
            Vue.filter('time', function (timestamp) {
                return new Date(timestamp).toLocaleTimeString();

    return Chat;