salix/modules/item/front/card/index.js

15 lines
366 B
JavaScript

import ngModule from '../module';
import ModuleCard from 'salix/components/module-card';
class Controller extends ModuleCard {
reload() {
this.$http.get(`Items/${this.$params.id}/getCard`)
.then(res => this.item = res.data);
}
}
ngModule.vnComponent('vnItemCard', {
template: require('./index.html'),
controller: Controller
});