Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a829d98

Browse files
using $window service
1 parent ccd567d commit a829d98

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

‎dist/angular-url-encode.min.js‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/angular-url-encode.min.js.map‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/decode.filter.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export function DecodeFilter() {
1+
export function DecodeFilter(
2+
$window
3+
) {
24

35
return decode;
46

@@ -10,7 +12,7 @@ export function DecodeFilter() {
1012
* @return {String} output
1113
*/
1214
function decode(input) {
13-
return decodeURI(input);
15+
return $window.decodeURI(input);
1416
}
1517

1618
}

‎src/encode.filter.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export function EncodeFilter() {
1+
export function EncodeFilter(
2+
$window
3+
) {
24

35
return encode;
46

@@ -10,7 +12,7 @@ export function EncodeFilter() {
1012
* @return {String} output
1113
*/
1214
function encode(input) {
13-
return window.encodeURIComponent(input);
15+
return $window.encodeURIComponent(input);
1416
}
1517

1618
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /