15 lines
364 B
JavaScript
15 lines
364 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.component('vnItemCard', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|