Class: module:Location service:ngeoLocation


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

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.


The ngeo Location type.

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

Name Type Description
location Location


history History