import ngModule from '../../module';
import ModuleCard from 'salix/components/module-card';

class Controller extends ModuleCard {
    reload() {
        this.$http.get(`MailAliases/${this.$params.id}`)
            .then(res => this.alias = res.data);
    }
}

ngModule.vnComponent('vnAliasCard', {
    template: require('./index.html'),
    controller: Controller
});