Home Manual Reference Source Test Repository
public class | source

WindowRef

Provides access to the browser's window.

Test:

Static Member Summary

Static Public Members
public static get

The class decorators.

public static get

The constructor parameters.

Constructor Summary

Public Constructor
public

constructor(router: Router, window: Window)

Initializes a new instance of the class.

Member Summary

Public Members
public get

A value indicating whether a previous page in navigation history is available.

public get

nativeWindow: Window

The underlying browser's window.

Method Summary

Public Methods
public

Enables automatic scrolling of the viewport to the top when a navigation ends successfully.

public

Forces the currently requested URL to use a secure channel (e.g.

Static Public Members

public static get annotations: Array source

The class decorators.

public static get parameters: Array source

The constructor parameters.

Public Constructors

public constructor(router: Router, window: Window) source

Initializes a new instance of the class.

Params:

NameTypeAttributeDescription
router Router

The routing service.

window Window

The underlying browser's window.

Public Members

public get canGoBack: boolean source

A value indicating whether a previous page in navigation history is available.

Test:

public get nativeWindow: Window source

The underlying browser's window.

Test:

Public Methods

public enableAutoScrolling() source

Enables automatic scrolling of the viewport to the top when a navigation ends successfully.

public forceSecureConnection() source

Forces the currently requested URL to use a secure channel (e.g. HTTPS).