Sha256: f9f0f6a007ebbd3ab11e603a5e6246e140003d993d002a6130381e35426eb271
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
import {Module, DirectiveObject} from 'a1atscript'; @Module('signOutDirective', ['ng-token-auth', 'ui.router.state']) @DirectiveObject('lrdSignOut', ['$state', '$auth']) export default class SignOut { constructor($state, $auth) { this.$state = $state; this.$auth = $auth; this.restrict = 'A'; } link(scope, element, attrs) { element.on('click',() => { this.$auth.signOut().then((response) => { this.$state.go('root.homepage.show'); }); }); } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xing-framework-0.0.2 | default_configuration/base_app/frontend/src/common/components/signOut/signOut.js |