15 lines
361 B
JavaScript
15 lines
361 B
JavaScript
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
|
|
});
|