diff --git a/aio/content/examples/toh-pt0/src/main.ts b/aio/content/examples/toh-pt0/src/main.ts index a9ca1caf8c..28bfa9e1fe 100644 --- a/aio/content/examples/toh-pt0/src/main.ts +++ b/aio/content/examples/toh-pt0/src/main.ts @@ -8,4 +8,6 @@ if (environment.production) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.error(err)); + diff --git a/aio/content/examples/toh-pt1/src/main.ts b/aio/content/examples/toh-pt1/src/main.ts index 6fd45e7d1e..682ef69512 100644 --- a/aio/content/examples/toh-pt1/src/main.ts +++ b/aio/content/examples/toh-pt1/src/main.ts @@ -9,5 +9,6 @@ if (environment.production) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.error(err)); // #enddocregion diff --git a/aio/content/examples/toh-pt2/src/main.ts b/aio/content/examples/toh-pt2/src/main.ts index 6fd45e7d1e..682ef69512 100644 --- a/aio/content/examples/toh-pt2/src/main.ts +++ b/aio/content/examples/toh-pt2/src/main.ts @@ -9,5 +9,6 @@ if (environment.production) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.error(err)); // #enddocregion diff --git a/aio/content/examples/toh-pt3/src/main.ts b/aio/content/examples/toh-pt3/src/main.ts index 6fd45e7d1e..682ef69512 100644 --- a/aio/content/examples/toh-pt3/src/main.ts +++ b/aio/content/examples/toh-pt3/src/main.ts @@ -9,5 +9,6 @@ if (environment.production) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.error(err)); // #enddocregion diff --git a/aio/content/examples/toh-pt4/src/main.ts b/aio/content/examples/toh-pt4/src/main.ts index a9ca1caf8c..c7b673cf44 100644 --- a/aio/content/examples/toh-pt4/src/main.ts +++ b/aio/content/examples/toh-pt4/src/main.ts @@ -8,4 +8,5 @@ if (environment.production) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.error(err)); diff --git a/aio/content/examples/toh-pt5/src/main.ts b/aio/content/examples/toh-pt5/src/main.ts index a9ca1caf8c..c7b673cf44 100644 --- a/aio/content/examples/toh-pt5/src/main.ts +++ b/aio/content/examples/toh-pt5/src/main.ts @@ -8,4 +8,5 @@ if (environment.production) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.error(err)); diff --git a/aio/content/examples/toh-pt6/src/main.ts b/aio/content/examples/toh-pt6/src/main.ts index 0740658908..5f3e6c96be 100644 --- a/aio/content/examples/toh-pt6/src/main.ts +++ b/aio/content/examples/toh-pt6/src/main.ts @@ -9,4 +9,5 @@ if (environment.production) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.error(err));