GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • Location
  • HashLocationStrategy
  • PathLocationStrategy

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — LocationStrategy • Angular

API

    
      abstract class LocationStrategy {}
    
    
@paramincludeHashboolean | undefined
@returnsstring
@paraminternalstring
@returnsstring
@returnsunknown
@paramstateany
@paramtitlestring
@paramurlstring
@paramqueryParamsstring
@returnsvoid
@paramstateany
@paramtitlestring
@paramurlstring
@paramqueryParamsstring
@returnsvoid
@returnsvoid
@returnsvoid
@paramrelativePositionnumber
@returnsvoid
@paramfnLocationChangeListener
@returnsvoid
@returnsstring

Description

Enables the Location service to read route state from the browser's URL. Angular provides two strategies: HashLocationStrategy and PathLocationStrategy.

Applications should use the Router or Location services to interact with application route state.

For instance, HashLocationStrategy produces URLs like http://example.com/#/foo, and PathLocationStrategy produces http://example.com/foo as an equivalent URL.

See these two classes for more.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.