assertPlatform
function
stable
Checks that there is currently a platform that contains the given token as a provider.
@paramrequiredToken
any@returns
PlatformRefJump to details
URL: http://angular.dev/api/core/assertPlatform
me === 'auto' && prefersDark)) { documentClassList.add(DARK_MODE_CLASS_NAME); } else { documentClassList.add(LIGHT_MODE_CLASS_NAME); } if (location.search.includes('uwu')) { documentClassList.add('uwu'); }Checks that there is currently a platform that contains the given token as a provider.
anyPlatformRef