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

15 lines
364 B
JavaScript
Raw Normal View History

2017-12-20 13:36:12 +00:00
import ngModule from '../module';
2019-11-10 10:08:44 +00:00
import ModuleCard from 'salix/components/module-card';
2017-12-20 13:36:12 +00:00
2019-11-10 10:08:44 +00:00
class Controller extends ModuleCard {
reload() {
2019-11-10 10:08:44 +00:00
this.$http.get(`Items/${this.$params.id}/getCard`)
.then(res => this.item = res.data);
}
2017-12-20 13:36:12 +00:00
}
2017-12-20 13:36:12 +00:00
ngModule.component('vnItemCard', {
template: require('./index.html'),
controller: Controller
2017-12-20 13:36:12 +00:00
});