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

15 lines
361 B
JavaScript
Raw Normal View History

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