MCPcopy Create free account
hub / github.com/codecombat/codecombat / constructor

Method constructor

app/views/core/VueComponentView.js:11–23  ·  view source on GitHub ↗
(component, options)

Source from the content-addressed store, hash-verified

9
10module.exports = class VueComponentView extends RootView {
11 constructor (component, options) {
12 super(options)
13 const baseTemplate = options.baseTemplate || 'base-flat-vue' //base template, by default using base-flat
14 this.id = 'vue-component-view'
15 try {
16 this.template = require('templates/vue-base/'+ baseTemplate)
17 }
18 catch (err) {
19 console.error("Error in importing the base template.", err)
20 }
21 this.VueComponent = component
22 this.propsData = options.propsData
23 }
24
25 buildVueComponent() {
26 return new this.VueComponent({

Callers

nothing calls this directly

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected