1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-02-15 04:42:05 +00:00
ansible-playable/client/app/account/index.js
Mumshad Mannambeth c92f737237 Initial Commit
2017-06-07 13:36:45 -04:00

24 lines
691 B
JavaScript

'use strict';
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import routing from './account.routes';
import login from './login';
import settings from './settings';
import signup from './signup';
import oauthButtons from '../../components/oauth-buttons';
export default angular.module('app2App.account', [uiRouter, login, settings, signup, oauthButtons])
.config(routing)
.run(function($rootScope) {
'ngInject';
$rootScope.$on('$stateChangeStart', function(event, next, nextParams, current) {
if(next.name === 'logout' && current && current.name && !current.authenticate) {
next.referrer = current.name;
}
});
})
.name;