36 lines
354 B
JavaScript
36 lines
354 B
JavaScript
var sectionReferencesComponent = {
|
|
template: '#section-references-template',
|
|
|
|
|
|
|
|
mounted: function()
|
|
{
|
|
|
|
},
|
|
|
|
|
|
|
|
destroyed: function()
|
|
{
|
|
|
|
},
|
|
|
|
|
|
|
|
data: function()
|
|
{
|
|
return {
|
|
item: {}
|
|
};
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
addReference: function()
|
|
{
|
|
var item = sections.getDefaultReference();
|
|
this.$root.sections.references.push(item);
|
|
}
|
|
}
|
|
}; |