1
- ( function ( window , _ , angular , undefined ) {
1
+ /* globals define, module */
2
+ ( function ( root , factory ) {
2
3
'use strict' ;
3
- var module = angular . module ( 'navigation.service' , [ ] ) ;
4
- module . provider ( '$navigation' , function ( ) {
4
+ if ( typeof module !== 'undefined' && module . exports ) {
5
+ if ( typeof angular === 'undefined' ) {
6
+ factory (
7
+ typeof _ === 'undefined' ? require ( 'lodash' ) : root . _ ,
8
+ require ( 'angular' )
9
+ ) ;
10
+ } else {
11
+ factory ( root . _ , root . angular ) ;
12
+ }
13
+ module . exports = 'ng-navigation-service' ;
14
+ } else if ( typeof define === 'function' && define . amd ) {
15
+ define ( [ 'lodash' , 'angular' ] , factory ) ;
16
+ } else {
17
+ factory ( root . _ , root . angular ) ;
18
+ }
19
+ } ( this , function ( _ , angular , undefined ) {
20
+ 'use strict' ;
21
+ angular . module ( 'navigation.service' , [ ] ) . provider ( '$navigation' , function ( ) {
5
22
var configuration = {
6
23
activeLinkDecorator : undefined ,
7
24
inactiveLinkDecorator : undefined ,
149
166
} ;
150
167
} ] ;
151
168
} ) ;
152
- } ) ( window , window . _ , window . angular ) ;
169
+ return angular ;
170
+ } ) ) ;
0 commit comments