16 lines
388 B
JavaScript
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
|
|
});
|
|
|