salix/modules/account/front/role/card/index.js

15 lines
363 B
JavaScript

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