Class: module:Location service:ngeoLocation

ngeo.statemanager.module:Location.ngeo.statemanager.module:Location

new module:Location(location, history)

Provides a service for interacting with the URL in the browser address bar.

WARNING: because of a bug in Angular this service is not compatible with the $location service. This further means that service is not compatible with the $anchorScroll and $route services, and with the ng-include and ng-view directives (which are based on the $anchorScroll and $route services). See https://github.com/angular/angular.js/issues/1417.

This file also provides an ngeo.statemanager.Location.MockProvider function that you can use to mock Angular's $location provider and make it possible to use both ngeoLocation and ng-include.

app.module.config(ngeo.statemanager.Location.MockProvider);

The ngeo Location type.

See our live example: ../examples/permalink.html

Parameters:
Name Type Description
location Location

Location.

history History

History.