File: app/components/home/home.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy  >  Hackernews Vue  >  app/components/home/home.js  >  Download  
File: app/components/home/home.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Hackernews Vue
View information from Hackernews using Vue.js
Author: By
Last change:
Date: 5 years ago
Size: 298 bytes


Class file image Download
define(['vue', 'text!app/components/home/home.html'], function (Vue, template) {

    // Create component class
    var Home = Vue.extend({
        name: 'home',
        template: template,

    // Create and registration component
    Vue.component('home', Home);
    return Home;