Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e66cf commit 99d95f1Copy full SHA for 99d95f1
src/ng/location.js
@@ -345,17 +345,16 @@ LocationHashbangInHtml5Url.prototype =
345
* Change path, search and hash, when called with parameter and return `$location`.
346
*
347
* @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)
348
- * @param {string=} replace The path that will be changed
349
* @return {string} url
350
*/
351
- url: function(url, replace) {
+ url: function(url) {
352
if (isUndefined(url))
353
return this.$$url;
354
355
var match = PATH_MATCH.exec(url);
356
if (match[1]) this.path(decodeURIComponent(match[1]));
357
if (match[2] || match[1]) this.search(match[3] || '');
358
- this.hash(match[5] || '', replace);
+ this.hash(match[5] || '');
359
360
return this;
361
},
0 commit comments