File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
export function DecodeFilter (
2
+ $window
2
3
) {
4
+ 'ngInject' ;
3
5
4
6
return decode ;
5
7
@@ -11,7 +13,7 @@ export function DecodeFilter(
11
13
* @return {String } output
12
14
*/
13
15
function decode ( input ) {
14
- return decodeURI ( input ) ;
16
+ return $window . decodeURI ( input ) ;
15
17
}
16
18
17
19
}
Original file line number Diff line number Diff line change 1
1
import { EncodeFilter } from './encode.filter' ;
2
- import { DecodeFilter } from './encode .filter' ;
2
+ import { DecodeFilter } from './decode .filter' ;
3
3
4
- angular . module ( 'angular-url-encode ' , [ ] )
5
- . filter ( 'bpcEncode ' , EncodeFilter )
6
- . filter ( 'bpcDecode ' , DecodeFilter )
4
+ angular . module ( 'bc.AngularUrlEncode ' , [ ] )
5
+ . filter ( 'bcEncode ' , EncodeFilter )
6
+ . filter ( 'bcDecode ' , DecodeFilter )
7
7
;
8
8
You can’t perform that action at this time.
0 commit comments