mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-21 17:00:24 +00:00
update(objOrString)
updateHash(objOrString [, objOrString])
toString()
cancel()
Examples:
$location.update('http://www.angularjs.org/path#path?a=b');
$location.update({port: 443, protocol: 'https'});
$location.updateHash('hashPath');
$location.updateHash({a: 'b'});
$location.updateHash('hashPath', {a: 'b'});
This commit was produced by squash of more commits, here are the old messages:
- Change tests to use update() instead of parse().
- First implementation of update() method
- Test for update() with object parameter
- Add new tests for location, refactor location code
- Add tests for updateHash()
- Implement updateHash()
- Take one or two arguments, could be string - update hashPath, or hash object - update hashSearch...
- Fixed other service tests, to use new $location.update()
Added $location.cancel() method (with test)
Added $location.parse() for back compatability
Remove parse() method
|
||
|---|---|---|
| .. | ||
| scenario | ||
| angular-mocks.js | ||
| AngularSpec.js | ||
| ApiSpecs.js | ||
| BinderTest.js | ||
| BrowserSpecs.js | ||
| CompilerSpec.js | ||
| ConsoleTest.js | ||
| directivesSpec.js | ||
| FiltersSpec.js | ||
| FormattersTest.js | ||
| InjectorSpec.js | ||
| jquery_alias.js | ||
| jquery_remove.js | ||
| JsonSpec.js | ||
| markupSpec.js | ||
| ParserSpec.js | ||
| ResourceSpec.js | ||
| ScenarioSpec.js | ||
| ScopeSpec.js | ||
| servicesSpec.js | ||
| testabilityPatch.js | ||
| ValidatorsTest.js | ||
| widgetsSpec.js | ||