• Overview

This site uses cookies from Google to deliver its services and to analyze traffic.

@angular/core

assertPlatform

function
stable

Checks that there is currently a platform that contains the given token as a provider.

API

function assertPlatform(requiredToken: any): PlatformRef;

assertPlatform

Checks that there is currently a platform that contains the given token as a provider.

@paramrequiredTokenany
@returnsPlatformRef
Jump to details