Sha256: 9815320acf1f44e63bcffbe5d7905580461708c2b55a36c8c5d8eb07a48a920f
Contents?: true
Size: 566 Bytes
Versions: 20
Compression:
Stored size: 566 Bytes
Contents
import SignOut from 'components/signOut/signOut.js'; import {Module, Component, Template} from 'a1atscript'; import OnLoginDirective from 'components/OnLoginDirective/OnLoginDirective.js'; @Module( 'sessionLinks', [ 'ng-token-auth', SignOut]) @Component({ selector: 'xngSessionLinks', services: ['$rootScope', '$auth'] }) @Template({ url: 'components/sessionLinks/session-links.tpl.html' }) export default class SessionLinks extends OnLoginDirective { onLogin(user) { this.isLoggedIn = true; } onLogout() { this.isLoggedIn = false; } }
Version data entries
20 entries across 20 versions & 1 rubygems