File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 19
19
* the need to interact with the low level {@link ng.$http $http} service.
20
20
*
21
21
* @param {string } url A parameterized URL template with parameters prefixed by `:` as in
22
- * `/user/:username`.
22
+ * `/user/:username`. If you are using a URL with a port number (e.g.
23
+ * `http://example.com:8080/api`), you'll need to escape the colon character before the port
24
+ * number, like this: `$resource('http://example.com\\:8080/api')`.
23
25
*
24
26
* @param {Object= } paramDefaults Default values for `url` parameters. These can be overridden in
25
27
* `actions` methods. If any of the parameter value is a function, it will be executed every time
26
- * when a param value needs to be obtained for a request (unless the param was overriden).
28
+ * when a param value needs to be obtained for a request (unless the param was overriden).
27
29
*
28
30
* Each key value in the parameter object is first bound to url template if present and then any
29
31
* excess keys are appended to the url search query after the `?`.
@@ -229,7 +231,7 @@ angular.module('ngResource', ['ng']).
229
231
} ;
230
232
231
233
/**
232
- * We need our custom mehtod because encodeURIComponent is too aggressive and doesn't follow
234
+ * We need our custom method because encodeURIComponent is too aggressive and doesn't follow
233
235
* http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path
234
236
* segments:
235
237
* segment = *pchar
You can’t perform that action at this time.
0 commit comments