diff --git a/aio/content/examples/toh-pt0/e2e/app.e2e-spec.ts b/aio/content/examples/toh-pt0/e2e/app.e2e-spec.ts new file mode 100644 index 0000000000..fa35fd0f05 --- /dev/null +++ b/aio/content/examples/toh-pt0/e2e/app.e2e-spec.ts @@ -0,0 +1,14 @@ +'use strict'; // necessary for es6 output in node + +import { browser, element, by } from 'protractor'; + +describe('Tour of Heroes', () => { + beforeEach(() => { + return browser.get('/'); + }); + + it('should display "Tour of Heroes"', () => { + let title = element(by.css('app-root h1')).getText(); + expect(title).toEqual('Tour of Heroes'); + }); +}); diff --git a/aio/content/examples/toh-pt0/example-config.json b/aio/content/examples/toh-pt0/example-config.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/aio/content/examples/toh-pt0/plnkr.json b/aio/content/examples/toh-pt0/plnkr.json new file mode 100644 index 0000000000..3caa575acd --- /dev/null +++ b/aio/content/examples/toh-pt0/plnkr.json @@ -0,0 +1,10 @@ +{ + "description": "Tour of Heroes: Part 0", + "basePath": "src/", + "files":[ + "!**/*.d.ts", + "!**/*.js", + "!**/*.[1].*" + ], + "tags": ["tutorial", "tour", "heroes"] +} diff --git a/aio/content/examples/toh-pt0/src/app/app.component.css b/aio/content/examples/toh-pt0/src/app/app.component.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/aio/content/examples/toh-pt0/src/app/app.component.html b/aio/content/examples/toh-pt0/src/app/app.component.html new file mode 100644 index 0000000000..6213adcb47 --- /dev/null +++ b/aio/content/examples/toh-pt0/src/app/app.component.html @@ -0,0 +1 @@ +
angular-tour-of-heroes
.
-
-The file structure should look like this:
-
-
-app.component.ts
file to heroes.component.ts
.
-* Rename the `AppComponent` class as `HeroesComponent` (rename locally, _only_ in this file).
-* Rename the selector `my-app` as `my-heroes`.
-
-
-src/app/app.component.ts
.
-* Define an exported `AppComponent` class.
-* Add an `@Component` decorator above the class with a `my-app` selector.
-* Move the following from `HeroesComponent` to `AppComponent`:
-
- * `title` class property.
- * `@Component` template `