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 });