Deprecation warning
Use the platformBrowser function instead from @angular/platform-browser. In case you are not in a CLI app and rely on JIT compilation, you will also need to import @angular/compiler
platformBrowser
@angular/platform-browser
@angular/compiler
const platformBrowserDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;