mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-08 04:22:03 +00:00
20 lines
481 B
TypeScript
20 lines
481 B
TypeScript
import "./polyfills";
|
|
|
|
import { enableProdMode } from "@angular/core";
|
|
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
|
|
|
|
import { AppModule } from "./app/app.module";
|
|
|
|
platformBrowserDynamic()
|
|
.bootstrapModule(AppModule)
|
|
.then((ref) => {
|
|
// Ensure Angular destroys itself on hot reloads.
|
|
if (window["ngRef"]) {
|
|
window["ngRef"].destroy();
|
|
}
|
|
window["ngRef"] = ref;
|
|
|
|
// Otherwise, log the boot error
|
|
})
|
|
.catch((err) => console.error(err));
|