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

16 lines
388 B
JavaScript

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