File: app/components/readme/readme.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy  >  Hackernews Vue  >  app/components/readme/readme.js  >  Download  
File: app/components/readme/readme.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: 370 bytes


Class file image Download
], function (Vue, marked, readme) {

    // Create component class
    var Readme = Vue.extend({
        name: 'readme',
        template:  '<div class="markdown-body">' + marked(readme) + '</div>',

    // Create and registration component
    Vue.component('readme', Readme);
    return Readme;