NativeScript Docs
Core Modules
NativeScript Angular
NativeScript UI
Article title
view in github
Search
Preparing search index...
The search index is not available
NativeScript Angular
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"router/ns-platform-location"
NativescriptPlatformLocation
Class NativescriptPlatformLocation
Globals
"router/ns-
platform-
location"
Nativescript
Platform
Location
constructor
hostname
href
location
Strategy
port
protocol
hash
pathname
search
back
forward
get
Base
Href
FromDOM
get
State
on
Hash
Change
on
Pop
State
push
State
replace
State
Hierarchy
PlatformLocation
Index
Constructors
constructor
Properties
hostname
href
location
Strategy
port
protocol
Accessors
hash
pathname
search
Methods
back
forward
get
Base
Href
FromDOM
get
State
on
Hash
Change
on
Pop
State
push
State
replace
State
Constructors
constructor
new
Nativescript
Platform
Location
(
locationStrategy
:
NSLocationStrategy
)
:
NativescriptPlatformLocation
Parameters
locationStrategy:
NSLocationStrategy
Returns
NativescriptPlatformLocation
Properties
hostname
hostname
:
string
href
href
:
string
Private
location
Strategy
location
Strategy
:
NSLocationStrategy
port
port
:
string
protocol
protocol
:
string
Accessors
hash
hash
:
pathname
pathname
:
search
search
:
Methods
back
back
(
)
:
void
Returns
void
forward
forward
(
)
:
void
Returns
void
get
Base
Href
FromDOM
get
Base
Href
FromDOM
(
)
:
string
Returns
string
get
State
get
State
(
)
:
any
Returns
any
on
Hash
Change
on
Hash
Change
(
_fn
:
LocationChangeListener
)
:
void
Parameters
_fn:
LocationChangeListener
Returns
void
on
Pop
State
on
Pop
State
(
fn
:
LocationChangeListener
)
:
void
Parameters
fn:
LocationChangeListener
Returns
void
push
State
push
State
(
state
:
any
, title
:
string
, url
:
string
)
:
void
Parameters
state:
any
title:
string
url:
string
Returns
void
replace
State
replace
State
(
state
:
any
, title
:
string
, url
:
string
)
:
void
Parameters
state:
any
title:
string
url:
string
Returns
void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method