From b37a0484d411b783d2bd33194d3a9fc4ae9e69a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Rodr=C3=ADguez?= Date: Fri, 26 May 2017 01:44:03 +0200 Subject: [PATCH] docs(aio): restore missing files (#16995) --- .../examples/forms/src/app/app.component.ts | 8 +++++ .../examples/reactive-forms/src/index.html | 31 +++++++++++++++++++ .../upgrade-phonecat-2-hybrid/app/main.ts | 11 +++++++ 3 files changed, 50 insertions(+) create mode 100644 aio/content/examples/forms/src/app/app.component.ts create mode 100644 aio/content/examples/reactive-forms/src/index.html create mode 100644 aio/content/examples/upgrade-phonecat-2-hybrid/app/main.ts diff --git a/aio/content/examples/forms/src/app/app.component.ts b/aio/content/examples/forms/src/app/app.component.ts new file mode 100644 index 0000000000..454f7e03db --- /dev/null +++ b/aio/content/examples/forms/src/app/app.component.ts @@ -0,0 +1,8 @@ +// #docregion +import { Component } from '@angular/core'; + +@Component({ + selector: 'my-app', + template: '' +}) +export class AppComponent { } diff --git a/aio/content/examples/reactive-forms/src/index.html b/aio/content/examples/reactive-forms/src/index.html new file mode 100644 index 0000000000..802d12f211 --- /dev/null +++ b/aio/content/examples/reactive-forms/src/index.html @@ -0,0 +1,31 @@ + + + + + Hero Form + + + + + + + + + + + + + + + + + + + + + Loading... + + + diff --git a/aio/content/examples/upgrade-phonecat-2-hybrid/app/main.ts b/aio/content/examples/upgrade-phonecat-2-hybrid/app/main.ts new file mode 100644 index 0000000000..886e8ffac8 --- /dev/null +++ b/aio/content/examples/upgrade-phonecat-2-hybrid/app/main.ts @@ -0,0 +1,11 @@ +// #docregion bootstrap +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { UpgradeModule } from '@angular/upgrade/static'; + +import { AppModule } from './app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { + const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; + upgrade.bootstrap(document.documentElement, ['phonecatApp']); +}); +// #enddocregion bootstrap