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

16 lines
386 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.component('vnClientCard', {
template: require('./index.html'),
controller: Controller
});