• Overview
@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