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

16 lines
386 B
JavaScript
Raw Normal View History

2017-06-03 11:01:47 +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
export default class Controller extends ModuleCard {
2018-05-02 09:54:13 +00:00
reload() {
2019-11-10 10:08:44 +00:00
this.$http.get(`Clients/${this.$params.id}/getCard`)
.then(res => this.client = res.data);
2018-05-02 09:54:13 +00:00
}
2017-05-23 08:58:17 +00:00
}
2017-06-03 11:01:47 +00:00
ngModule.component('vnClientCard', {
2018-05-23 12:26:51 +00:00
template: require('./index.html'),
2017-10-05 07:20:40 +00:00
controller: Controller
2017-05-23 08:58:17 +00:00
});
2018-05-02 09:54:13 +00:00