Releases: justinsa/angular-navigation-service
Fixed bug with inAudienceValidationFunction
The inAudienceValidationFunction that can be overridden through configuration had a no-op statement that was flattening the array of userRoles instead of mapping the array using the roleToAudienceMapFunction. It now both maps the roles and flattens (one-level deep) the resulting mapped values.
Added support to the inAudience method to work with arrays as arguments instead of just direct string values. You can now call inAudience('A', ['B', 'C'], ['D'])
, which is equivalent to inAudience('A', 'B', 'C', 'D')
. The call will flatten arrays that are one-level deep only.
Extensions Support
Add support for extensions to the interface by implementors. This provides a configuration mechanism for extending the $navigation service to expose application specific objects and functions.
Rename main file to ng-navigation-service
- Renamed the main file from: angular-navigation-service.js, to: ng-navigation-service.js to be consistent with the package name.
NPM release
Removed bower dependency for development environment and removed hard dependency on ng-local-storage-service and ngCookies, which are now dynamically injected when required.