Function that Flattens and Push elements to given array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const constants = { | |
ACTIONS: { changeAction: 'changeAction', onSuccess: 'onSuccess' }, | |
GUARDS: { isFormValid: 'isFormValid' }, | |
SERVICES: { doSubmit: 'doSubmit' } | |
}; | |
const {ACTIONS, GUARDS, SERVICES} = constants; | |
const formMachine = Machine({ | |
id: 'form', | |
initial: 'idle', |
This is based on http://www.jvandemo.com/learn-how-to-make-authentication-in-your-angular-applications-simpler-and-more-consistent/ Role management added additionally.
This is built based on best practices provided in https://github.com/johnpapa/angular-styleguide#resolving-promises-for-a-controller
This module uses https://github.com/grevory/angular-local-storage to store session data