From 3ce7c87cbdfa92952c0bc4051fd6233d07c12a17 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 15 Apr 2020 13:46:49 +0300 Subject: [PATCH] refactor(docs-infra): update `main.ts` in Tour-of-Heroes examples to match latest CLI (#36483) Update the `main.ts` files in Tour-of-Heroes examples to match what would be generated by the latest CLI. PR Close #36483 --- aio/content/examples/toh-pt0/src/main.ts | 4 +++- aio/content/examples/toh-pt1/src/main.ts | 3 ++- aio/content/examples/toh-pt2/src/main.ts | 3 ++- aio/content/examples/toh-pt3/src/main.ts | 3 ++- aio/content/examples/toh-pt4/src/main.ts | 3 ++- aio/content/examples/toh-pt5/src/main.ts | 3 ++- aio/content/examples/toh-pt6/src/main.ts | 3 ++- 7 files changed, 15 insertions(+), 7 deletions(-) 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));