From 1101f07ef2d41f1b520c76095529f45973ba7051 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Thu, 2 Feb 2017 18:38:17 +0000 Subject: [PATCH] refactor: add src folder (#3171) * boilerplate, gulpfile, quickstart * move ts files up to cookbooks * move rest of ts files * fix tsconfig, default build task, json file * fix js examples * fix webpack example * remove a2docs.css references * fix aot examples * fix webpack run task * fix cb-i18n * fix upgrade examples * fix unit tests * fix comment in deployment index * removed unused typings.json * fix plunkers * fix js example paths * fix ts quickstart/setup prose * add src folder note to setup * broadly replace app/ -> src/app/ * broadly replace main.ts * broadly replaced index.html * broadly replace tsconfig * replace systemjs * fix filetrees * Minor prose fixes to aot, i18n cookbooks * remove char harp was complaining about * update new reactive forms example * fix quickstart jade error * fix mistakes uncovered by CI * fix bad filename errors * edit style guide 04-06 rule to use src * add changelog * Incorporate Jesus's feedback * fix snippet headers in toh1/2 * chore: tweak changelog and setup text --- .gitignore | 1 - gulpfile.js | 81 ++-- public/_includes/_util-fns.jade | 4 +- public/docs/_examples/.gitignore | 28 +- .../_examples/_boilerplate/bs-config.e2e.json | 14 + .../_examples/_boilerplate/bs-config.json | 8 + .../_boilerplate/example-config.json | 4 + .../docs/_examples/_boilerplate/package.json | 36 +- public/docs/_examples/_boilerplate/plnkr.json | 10 + .../_boilerplate/{ => src}/styles.css | 0 .../_boilerplate/{ => src}/systemjs.config.js | 0 .../{ => src}/systemjs.config.web.build.js | 0 .../{ => src}/systemjs.config.web.js | 0 .../_examples/_boilerplate/src/tsconfig.json | 21 ++ .../docs/_examples/animations/ts/plnkr.json | 1 + .../animations/ts/{ => src}/app/app.module.ts | 0 .../{ => src}/app/hero-list-auto.component.ts | 0 .../app/hero-list-basic.component.ts | 0 ...ero-list-combined-transitions.component.ts | 0 .../hero-list-enter-leave-states.component.ts | 0 .../app/hero-list-enter-leave.component.ts | 0 .../app/hero-list-groups.component.ts | 0 .../app/hero-list-inline-styles.component.ts | 0 .../app/hero-list-multistep.component.ts | 0 .../app/hero-list-timings.component.ts | 0 .../app/hero-list-twoway.component.ts | 0 .../ts/{ => src}/app/hero-list.component.css | 0 .../app/hero-team-builder.component.ts | 0 .../ts/{ => src}/app/hero.service.ts | 0 .../animations/ts/{ => src}/index.html | 2 +- .../animations/ts/{app => src}/main.ts | 2 +- .../docs/_examples/architecture/ts/plnkr.json | 1 + .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/backend.service.ts | 0 .../{ => src}/app/hero-detail.component.html | 0 .../ts/{ => src}/app/hero-detail.component.ts | 0 .../{ => src}/app/hero-list.component.1.html | 0 .../ts/{ => src}/app/hero-list.component.html | 0 .../ts/{ => src}/app/hero-list.component.ts | 0 .../ts/{ => src}/app/hero.service.ts | 0 .../architecture/ts/{ => src}/app/hero.ts | 0 .../ts/{ => src}/app/logger.service.ts | 0 .../architecture/ts/{ => src}/app/mini-app.ts | 0 .../ts/{ => src}/app/sales-tax.component.ts | 0 .../ts/{ => src}/app/sales-tax.service.ts | 0 .../ts/{ => src}/app/tax-rate.service.ts | 0 .../architecture/ts/{ => src}/index.html | 2 +- .../ts/app => architecture/ts/src}/main.ts | 2 +- .../attribute-directives/ts/plnkr.json | 1 + .../ts/{ => src}/app/app.component.1.html | 0 .../ts/{ => src}/app/app.component.1.ts | 0 .../ts/{ => src}/app/app.component.html | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/dummy.module.1.ts | 0 .../ts/{ => src}/app/highlight.directive.1.ts | 0 .../ts/{ => src}/app/highlight.directive.2.ts | 0 .../ts/{ => src}/app/highlight.directive.3.ts | 0 .../ts/{ => src}/app/highlight.directive.ts | 0 .../ts/{ => src}/index.html | 2 +- .../ts/{app => src}/main.ts | 2 +- .../cb-ajs-quick-reference/ts/plnkr.json | 1 + .../ts/{ => src}/app/app-routing.module.ts | 0 .../ts/{ => src}/app/app.component.css | 0 .../ts/{ => src}/app/app.component.html | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.1.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/date.pipe.ts | 0 .../ts/{ => src}/app/movie-list.component.css | 0 .../{ => src}/app/movie-list.component.html | 0 .../ts/{ => src}/app/movie-list.component.ts | 0 .../ts/{ => src}/app/movie.service.ts | 0 .../ts/{ => src}/app/movie.ts | 0 .../ts/{ => src}/images/hero.png | Bin .../ts/{ => src}/images/ng-logo.png | Bin .../ts/{ => src}/images/villain.png | Bin .../ts/{ => src}/index.html | 2 +- .../ts/src}/main.ts | 2 +- .../cb-aot-compiler/ts/example-config.json | 5 +- .../cb-aot-compiler/ts/rollup-config.js | 4 +- .../ts/{ => src}/app/app.component.html | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/index-jit.html | 2 +- .../cb-aot-compiler/ts/{ => src}/index.html | 2 +- .../ts/{app => src}/main-jit.ts | 2 +- .../cb-aot-compiler/ts/{app => src}/main.ts | 2 +- .../cb-aot-compiler/ts/tsconfig-aot.json | 4 +- .../cb-component-communication/ts/plnkr.json | 5 +- .../ts/{ => src}/app/app.component.html | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/astronaut.component.ts | 0 .../app/countdown-parent.component.ts | 0 .../app/countdown-timer.component.ts | 0 .../ts/{ => src}/app/hero-child.component.ts | 0 .../ts/{ => src}/app/hero-parent.component.ts | 0 .../ts/{ => src}/app/hero.ts | 0 .../ts/{ => src}/app/mission.service.ts | 0 .../{ => src}/app/missioncontrol.component.ts | 0 .../ts/{ => src}/app/name-child.component.ts | 0 .../ts/{ => src}/app/name-parent.component.ts | 0 .../{ => src}/app/version-child.component.ts | 0 .../{ => src}/app/version-parent.component.ts | 0 .../ts/{ => src}/app/voter.component.ts | 0 .../ts/{ => src}/app/votetaker.component.ts | 0 .../ts/{ => src}/demo.css | 0 .../ts/{ => src}/index.html | 2 +- .../ts/src}/main.ts | 2 +- .../cb-component-relative-paths/ts/plnkr.json | 1 + .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/some.component.css | 0 .../ts/{ => src}/app/some.component.html | 0 .../ts/{ => src}/app/some.component.ts | 0 .../ts/{ => src}/index.html | 2 +- .../ts/src}/main.ts | 2 +- .../cb-dependency-injection/ts/plnkr.json | 5 +- .../ts/{ => src}/app/app-routing.module.ts | 0 .../ts/{ => src}/app/app.component.html | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/date-logger.service.ts | 0 .../ts/{ => src}/app/hero-bio.component.ts | 0 .../ts/{ => src}/app/hero-bios.component.ts | 0 .../ts/{ => src}/app/hero-cache.service.ts | 0 .../{ => src}/app/hero-contact.component.ts | 0 .../ts/{ => src}/app/hero-data.ts | 0 .../app/hero-of-the-month.component.ts | 0 .../ts/{ => src}/app/hero.service.ts | 0 .../ts/{ => src}/app/hero.ts | 0 .../ts/{ => src}/app/highlight.directive.ts | 0 .../ts/{ => src}/app/logger.service.ts | 0 .../{ => src}/app/parent-finder.component.ts | 0 .../ts/{ => src}/app/runners-up.ts | 0 .../{ => src}/app/sorted-heroes.component.ts | 0 .../ts/{ => src}/app/user-context.service.ts | 0 .../ts/{ => src}/app/user.service.ts | 0 .../ts/{ => src}/index.html | 2 +- .../ts/src}/main.ts | 2 +- .../ts/{ => src}/sample.css | 0 .../ts/{ => src}/app/ad-banner.component.ts | 0 .../ts/{ => src}/app/ad-item.ts | 0 .../ts/{ => src}/app/ad.component.ts | 0 .../ts/{ => src}/app/ad.directive.ts | 0 .../ts/{ => src}/app/ad.service.ts | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/hero-job-ad.component.ts | 0 .../{ => src}/app/hero-profile.component.ts | 0 .../ts/{ => src}/index.html | 4 +- .../ts/{app => src}/main.ts | 2 +- .../ts/{ => src}/sample.css | 0 .../_examples/cb-dynamic-form/ts/app/main.ts | 5 - .../_examples/cb-dynamic-form/ts/plnkr.json | 3 +- .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../app/dynamic-form-question.component.html | 0 .../app/dynamic-form-question.component.ts | 0 .../{ => src}/app/dynamic-form.component.html | 0 .../{ => src}/app/dynamic-form.component.ts | 0 .../ts/{ => src}/app/question-base.ts | 0 .../{ => src}/app/question-control.service.ts | 0 .../ts/{ => src}/app/question-dropdown.ts | 0 .../ts/{ => src}/app/question-textbox.ts | 0 .../ts/{ => src}/app/question.service.ts | 0 .../cb-dynamic-form/ts/{ => src}/index.html | 2 +- .../_examples/cb-dynamic-form/ts/src/main.ts | 5 + .../cb-dynamic-form/ts/{ => src}/sample.css | 0 .../cb-form-validation/ts/plnkr.json | 5 +- .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../hero-form-reactive.component.html | 0 .../reactive/hero-form-reactive.component.ts | 0 .../app/reactive/hero-form-reactive.module.ts | 0 .../app/shared/forbidden-name.directive.ts | 0 .../ts/{ => src}/app/shared/hero.ts | 0 .../ts/{ => src}/app/shared/shared.module.ts | 0 .../app/shared/submitted.component.ts | 0 .../app/template/hero-form-template.module.ts | 0 .../hero-form-template1.component.html | 0 .../template/hero-form-template1.component.ts | 0 .../hero-form-template2.component.html | 0 .../template/hero-form-template2.component.ts | 0 .../cb-form-validation/ts/{ => src}/forms.css | 0 .../ts/{ => src}/index.html | 2 +- .../ts/{app => src}/main.ts | 2 +- public/docs/_examples/cb-i18n/ts/.gitignore | 1 + public/docs/_examples/cb-i18n/ts/plnkr.json | 1 + .../ts/{ => src}/app/app.component.1.html | 0 .../ts/{ => src}/app/app.component.html | 0 .../cb-i18n/ts/{ => src}/app/app.component.ts | 0 .../cb-i18n/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/i18n-providers.ts | 0 .../_examples/cb-i18n/ts/{ => src}/index.html | 2 +- .../ts/{ => src}/locale/messages.es.xlf | 0 .../ts/{ => src}/locale/messages.es.xlf.html | 0 .../cb-i18n/ts/{app => src}/main.1.ts | 2 +- .../_examples/cb-i18n/ts/{app => src}/main.ts | 4 +- .../ts/{ => src}/systemjs-text-plugin.js | 0 .../cb-set-document-title/ts/plnkr.json | 3 +- .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/index.html | 2 +- .../ts/src}/main.ts | 2 +- .../js-es6-decorators/example-config.json | 5 +- .../cb-ts-to-js/js-es6-decorators/plnkr.json | 1 + .../js-es6-decorators/{ => src}/.babelrc | 0 .../{ => src}/app/app.component.es6 | 30 +- .../{ => src}/app/app.component.html | 62 +-- .../{ => src}/app/app.module.es6 | 110 +++--- .../{ => src}/app/confirm.component.es6 | 44 +-- .../{ => src}/app/confirm.component.html | 12 +- .../{ => src}/app/data.service.es6 | 0 .../hero-di-inject-additional.component.es6 | 0 .../app/hero-di-inject.component.es6 | 0 .../{ => src}/app/hero-di.component.es6 | 0 .../src/app/hero-host-meta.component.es6} | 0 .../{ => src}/app/hero-host.component.es6 | 0 .../{ => src}/app/hero-io.component.es6 | 0 .../app/hero-lifecycle.component.es6 | 0 .../{ => src}/app/hero-queries.component.es6 | 0 .../{ => src}/app/hero-title.component.es6 | 0 .../{ => src}/app/hero-title.component.html | 8 +- .../{ => src}/app/hero.component.es6 | 0 .../js-es6-decorators/{ => src}/index.html | 2 +- .../app => js-es6-decorators/src}/main.es6 | 2 +- .../cb-ts-to-js/js-es6/example-config.json | 5 +- .../_examples/cb-ts-to-js/js-es6/plnkr.json | 1 + .../cb-ts-to-js/js-es6/{ => src}/.babelrc | 0 .../js-es6/{ => src}/app/app.component.es6 | 40 +- .../js-es6/{ => src}/app/app.component.html | 60 +-- .../js-es6/{ => src}/app/app.module.es6 | 112 +++--- .../{ => src}/app/confirm.component.es6 | 64 ++-- .../{ => src}/app/confirm.component.html | 12 +- .../js-es6/{ => src}/app/data.service.es6 | 0 .../hero-di-inject-additional.component.es6 | 0 .../app/hero-di-inject.component.es6 | 0 .../{ => src}/app/hero-di.component.es6 | 0 .../{ => src}/app/hero-host.component.es6 | 0 .../{ => src}/app/hero-io.component.es6 | 0 .../app/hero-lifecycle.component.es6 | 0 .../{ => src}/app/hero-queries.component.es6 | 0 .../{ => src}/app/hero-title.component.es6 | 0 .../{ => src}/app/hero-title.component.html | 8 +- .../js-es6/{ => src}/app/hero.component.es6 | 0 .../cb-ts-to-js/js-es6/{ => src}/index.html | 2 +- .../app => js-es6/src}/main.es6 | 2 +- .../docs/_examples/cb-ts-to-js/js/plnkr.json | 1 + .../js/{ => src}/app/app.component.html | 94 ++--- .../js/{ => src}/app/app.component.js | 40 +- .../js/{ => src}/app/app.module.js | 92 ++--- .../js/{ => src}/app/confirm.component.html | 12 +- .../js/{ => src}/app/confirm.component.js | 150 ++++---- .../js/{ => src}/app/data.service.js | 0 .../hero-di-inject-additional.component.js | 0 .../{ => src}/app/hero-di-inject.component.js | 0 .../js/{ => src}/app/hero-di.component.js | 0 .../js/{ => src}/app/hero-host.component.js | 0 .../{ => src}/app/hero-io-dsl.component.html | 14 +- .../js/{ => src}/app/hero-io.component.html | 14 +- .../js/{ => src}/app/hero-io.component.js | 0 .../{ => src}/app/hero-lifecycle.component.js | 0 .../{ => src}/app/hero-queries.component.js | 0 .../{ => src}/app/hero-title.component.html | 8 +- .../js/{ => src}/app/hero-title.component.js | 0 .../js/{ => src}/app/hero.component.js | 0 .../cb-ts-to-js/js/{ => src}/index.html | 2 +- .../cb-ts-to-js/js/{app => src}/main.js | 0 .../docs/_examples/cb-ts-to-js/ts/plnkr.json | 1 + .../ts/{ => src}/app/app.component.html | 62 +-- .../ts/{ => src}/app/app.component.ts | 30 +- .../ts/{ => src}/app/app.module.ts | 112 +++--- .../ts/{ => src}/app/confirm.component.html | 12 +- .../ts/{ => src}/app/confirm.component.ts | 44 +-- .../ts/{ => src}/app/data.service.ts | 0 .../hero-di-inject-additional.component.ts | 0 .../{ => src}/app/hero-di-inject.component.ts | 0 .../ts/{ => src}/app/hero-di.component.ts | 0 .../src/app/hero-host-meta.component.ts} | 88 ++--- .../ts/{ => src}/app/hero-host.component.ts | 0 .../ts/{ => src}/app/hero-io.component.ts | 0 .../{ => src}/app/hero-lifecycle.component.ts | 0 .../{ => src}/app/hero-queries.component.ts | 0 .../{ => src}/app/hero-title.component.html | 8 +- .../ts/{ => src}/app/hero-title.component.ts | 0 .../ts/{ => src}/app/hero.component.ts | 0 .../cb-ts-to-js/ts/{ => src}/index.html | 2 +- .../cb-ts-to-js/ts/{app => src}/main.ts | 8 +- .../cli-quickstart/ts/bs-config.cli.json | 11 + .../cli-quickstart/ts/example-config.json | 2 +- .../cli-quickstart/ts/src/styles.css | 117 +++++- .../cli-quickstart/ts/src/tsconfig.json | 25 +- .../_examples/component-styles/ts/app/main.ts | 5 - .../_examples/component-styles/ts/plnkr.json | 1 + .../ts/{ => src}/app/app.module.ts | 0 .../{ => src}/app/hero-app-main.component.ts | 0 .../ts/{ => src}/app/hero-app.component.ts | 0 .../{ => src}/app/hero-controls.component.ts | 0 .../ts/{ => src}/app/hero-details-box.css | 0 .../{ => src}/app/hero-details.component.css | 0 .../{ => src}/app/hero-details.component.ts | 0 .../ts/{ => src}/app/hero-team.component.css | 0 .../ts/{ => src}/app/hero-team.component.ts | 0 .../component-styles/ts/{ => src}/app/hero.ts | 0 .../{ => src}/app/quest-summary.component.css | 0 .../app/quest-summary.component.html | 0 .../{ => src}/app/quest-summary.component.ts | 0 .../component-styles/ts/{ => src}/index.html | 2 +- .../_examples/component-styles/ts/src/main.ts | 5 + .../dependency-injection/ts/plnkr.json | 3 +- .../ts/{ => src}/app/app.component.1.ts | 0 .../ts/{ => src}/app/app.component.2.ts | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.config.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/car/car-creations.ts | 0 .../ts/{ => src}/app/car/car-factory.ts | 0 .../ts/{ => src}/app/car/car-injector.ts | 0 .../ts/{ => src}/app/car/car-no-di.ts | 0 .../ts/{ => src}/app/car/car.component.ts | 0 .../ts/{ => src}/app/car/car.ts | 0 .../app/heroes/hero-list.component.1.ts | 0 .../app/heroes/hero-list.component.2.ts | 0 .../app/heroes/hero-list.component.ts | 0 .../ts/{ => src}/app/heroes/hero.service.1.ts | 0 .../ts/{ => src}/app/heroes/hero.service.2.ts | 0 .../app/heroes/hero.service.provider.ts | 0 .../ts/{ => src}/app/heroes/hero.service.ts | 0 .../ts/{ => src}/app/heroes/hero.ts | 0 .../app/heroes/heroes.component.1.ts | 0 .../{ => src}/app/heroes/heroes.component.ts | 0 .../ts/{ => src}/app/heroes/mock-heroes.ts | 0 .../ts/{ => src}/app/injector.component.ts | 0 .../ts/{ => src}/app/logger.service.ts | 0 .../ts/{ => src}/app/providers.component.ts | 0 .../ts/{ => src}/app/test.component.ts | 0 .../ts/{ => src}/app/user.service.ts | 0 .../ts/{ => src}/index.html | 2 +- .../ts/{app => src}/main.ts | 2 +- .../ts/{ => src}/app/app.component.ts | 0 .../deployment/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/crisis-list.component.ts | 0 .../ts/{ => src}/app/hero-list.component.ts | 0 .../deployment/ts/{ => src}/index.html | 76 ++-- .../deployment/ts/{app => src}/main.ts | 2 +- .../ts/{ => src}/systemjs.config.server.js | 0 .../_examples/displaying-data/ts/plnkr.json | 3 +- .../ts/{ => src}/app/app-ctor.component.ts | 0 .../ts/{ => src}/app/app.component.1.ts | 0 .../ts/{ => src}/app/app.component.2.ts | 0 .../ts/{ => src}/app/app.component.3.ts | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../displaying-data/ts/{ => src}/app/hero.ts | 0 .../displaying-data/ts/{ => src}/index.html | 2 +- .../ts/app => displaying-data/ts/src}/main.ts | 2 +- public/docs/_examples/forms/js/plnkr.json | 1 + .../forms/js/{ => src}/app/app.component.js | 0 .../forms/js/{ => src}/app/app.module.js | 0 .../js/{ => src}/app/hero-form.component.html | 0 .../js/{ => src}/app/hero-form.component.js | 0 .../_examples/forms/js/{ => src}/app/hero.js | 0 .../_examples/forms/js/{ => src}/forms.css | 0 .../_examples/forms/js/{ => src}/index.html | 2 +- .../_examples/forms/js/{app => src}/main.js | 0 public/docs/_examples/forms/ts/app/main.ts | 5 - public/docs/_examples/forms/ts/plnkr.json | 5 +- .../forms/ts/{ => src}/app/app.component.ts | 0 .../forms/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/hero-form.component.html | 0 .../ts/{ => src}/app/hero-form.component.ts | 0 .../_examples/forms/ts/{ => src}/app/hero.ts | 0 .../_examples/forms/ts/{ => src}/forms.css | 0 .../_examples/forms/ts/{ => src}/index.html | 2 +- public/docs/_examples/forms/ts/src/main.ts | 5 + .../ts/app/main.ts | 5 - .../ts/plnkr.json | 1 + .../ts/{ => src}/app/app.component.ts | 42 +-- .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/car.components.ts | 148 ++++---- .../ts/{ => src}/app/car.services.ts | 190 +++++----- .../app/hero-tax-return.component.css | 44 +-- .../app/hero-tax-return.component.html | 40 +- .../app/hero-tax-return.component.ts | 88 ++--- .../{ => src}/app/hero-tax-return.service.ts | 0 .../ts/{ => src}/app/hero.ts | 0 .../ts/{ => src}/app/heroes-list.component.ts | 0 .../ts/{ => src}/app/heroes.service.ts | 0 .../app/villains-list.component.html | 12 +- .../{ => src}/app/villains-list.component.ts | 42 +-- .../ts/{ => src}/app/villains.service.ts | 34 +- .../ts/{ => src}/index.html | 2 +- .../ts/src/main.ts | 5 + .../homepage-hello-world/ts/app/main.ts | 5 - .../homepage-hello-world/ts/plnkr.json | 5 +- .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/hello_world.html | 0 .../ts/{ => src}/app/hello_world.ts | 0 .../ts/{ => src}/index.1.html | 2 +- .../ts/{ => src}/index.html | 2 +- .../homepage-hello-world/ts/src/main.ts | 5 + .../ts/systemjs.config.1.js | 0 .../_examples/homepage-tabs/ts/plnkr.json | 5 +- .../ts/{ => src}/app/app.module.ts | 0 .../homepage-tabs/ts/{ => src}/app/di_demo.ts | 0 .../homepage-tabs/ts/{ => src}/app/ui_tabs.ts | 0 .../homepage-tabs/ts/{ => src}/index.1.html | 2 +- .../homepage-tabs/ts/{ => src}/index.html | 2 +- .../ts/app => homepage-tabs/ts/src}/main.ts | 2 +- .../homepage-tabs/ts/systemjs.config.1.js | 0 .../_examples/homepage-todo/ts/app/main.ts | 5 - .../_examples/homepage-todo/ts/plnkr.json | 5 +- .../ts/{ => src}/app/app.module.ts | 0 .../homepage-todo/ts/{ => src}/app/todo.ts | 0 .../ts/{ => src}/app/todo_app.ts | 0 .../ts/{ => src}/app/todo_form.ts | 0 .../ts/{ => src}/app/todo_list.ts | 0 .../homepage-todo/ts/{ => src}/index.1.html | 2 +- .../homepage-todo/ts/{ => src}/index.html | 2 +- .../_examples/homepage-todo/ts/src/main.ts | 5 + .../homepage-todo/ts/systemjs.config.1.js | 0 .../_examples/lifecycle-hooks/ts/app/main.ts | 4 - .../_examples/lifecycle-hooks/ts/plnkr.json | 3 +- .../{ => src}/app/after-content.component.ts | 0 .../ts/{ => src}/app/after-view.component.ts | 0 .../ts/{ => src}/app/app.component.html | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/counter.component.ts | 0 .../app/do-check-parent.component.html | 0 .../ts/{ => src}/app/do-check.component.ts | 0 .../ts/{ => src}/app/logger.service.ts | 0 .../app/on-changes-parent.component.html | 0 .../ts/{ => src}/app/on-changes.component.ts | 0 .../app/peek-a-boo-parent.component.ts | 0 .../ts/{ => src}/app/peek-a-boo.component.ts | 0 .../ts/{ => src}/app/spy.component.html | 0 .../ts/{ => src}/app/spy.component.ts | 0 .../ts/{ => src}/app/spy.directive.ts | 0 .../lifecycle-hooks/ts/{ => src}/index.html | 2 +- .../_examples/lifecycle-hooks/ts/src/main.ts | 4 + .../lifecycle-hooks/ts/{ => src}/sample.css | 0 .../ngmodule/ts/contact.1b.plnkr.json | 3 +- .../ngmodule/ts/contact.2.plnkr.json | 3 +- .../ngmodule/ts/minimal.0.plnkr.json | 3 +- public/docs/_examples/ngmodule/ts/plnkr.json | 3 +- .../ngmodule/ts/pre-shared.3.plnkr.json | 3 +- .../ts/{ => src}/app/app-routing.module.3.ts | 0 .../ts/{ => src}/app/app-routing.module.ts | 0 .../ts/{ => src}/app/app.component.0.ts | 0 .../ts/{ => src}/app/app.component.1.ts | 0 .../ts/{ => src}/app/app.component.1b.ts | 0 .../ts/{ => src}/app/app.component.2.ts | 0 .../ts/{ => src}/app/app.component.3.ts | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ngmodule/ts/{ => src}/app/app.module.0.ts | 0 .../ngmodule/ts/{ => src}/app/app.module.1.ts | 0 .../ts/{ => src}/app/app.module.1b.ts | 0 .../ngmodule/ts/{ => src}/app/app.module.2.ts | 0 .../ngmodule/ts/{ => src}/app/app.module.3.ts | 0 .../ngmodule/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/contact/awesome.pipe.ts | 0 .../app/contact/contact-routing.module.3.ts | 0 .../app/contact/contact-routing.module.ts | 0 .../app/contact/contact.component.3.ts | 0 .../app/contact/contact.component.css | 0 .../app/contact/contact.component.html | 0 .../app/contact/contact.component.ts | 0 .../{ => src}/app/contact/contact.module.2.ts | 0 .../{ => src}/app/contact/contact.module.3.ts | 0 .../{ => src}/app/contact/contact.module.ts | 0 .../{ => src}/app/contact/contact.service.ts | 0 .../app/contact/highlight.directive.ts | 0 .../ts/{ => src}/app/core/core.module.ts | 0 .../{ => src}/app/core/title.component.html | 0 .../ts/{ => src}/app/core/title.component.ts | 0 .../ts/{ => src}/app/core/user.service.ts | 0 .../app/crisis/crisis-detail.component.ts | 0 .../app/crisis/crisis-list.component.ts | 0 .../app/crisis/crisis-routing.module.ts | 0 .../ts/{ => src}/app/crisis/crisis.module.ts | 0 .../ts/{ => src}/app/crisis/crisis.service.ts | 0 .../app/hero/hero-detail.component.ts | 0 .../{ => src}/app/hero/hero-list.component.ts | 0 .../app/hero/hero-routing.module.3.ts | 0 .../{ => src}/app/hero/hero-routing.module.ts | 0 .../ts/{ => src}/app/hero/hero.component.3.ts | 0 .../ts/{ => src}/app/hero/hero.component.ts | 0 .../ts/{ => src}/app/hero/hero.module.3.ts | 0 .../ts/{ => src}/app/hero/hero.module.ts | 0 .../ts/{ => src}/app/hero/hero.service.ts | 0 .../{ => src}/app/hero/highlight.directive.ts | 0 .../ts/{ => src}/app/highlight.directive.ts | 0 .../ts/{ => src}/app/shared/awesome.pipe.ts | 0 .../app/shared/highlight.directive.ts | 0 .../ts/{ => src}/app/shared/shared.module.ts | 0 .../ts/{ => src}/app/title.component.html | 0 .../ts/{ => src}/app/title.component.ts | 0 .../ngmodule/ts/{ => src}/app/user.service.ts | 0 .../ngmodule/ts/{ => src}/index.0.html | 2 +- .../ngmodule/ts/{ => src}/index.1.html | 2 +- .../ngmodule/ts/{ => src}/index.1b.html | 2 +- .../ngmodule/ts/{ => src}/index.2.html | 2 +- .../ngmodule/ts/{ => src}/index.3.html | 2 +- .../ngmodule/ts/{ => src}/index.html | 2 +- .../ngmodule/ts/{app => src}/main-static.ts | 2 +- .../ngmodule/ts/{app => src}/main.0.ts | 2 +- .../ngmodule/ts/{app => src}/main.1.ts | 2 +- .../ngmodule/ts/{app => src}/main.1b.ts | 2 +- .../ngmodule/ts/{app => src}/main.2.ts | 2 +- .../ngmodule/ts/{app => src}/main.3.ts | 2 +- .../ngmodule/ts/{app => src}/main.ts | 2 +- public/docs/_examples/pipes/ts/app/main.ts | 5 - public/docs/_examples/pipes/ts/plnkr.json | 3 +- .../pipes/ts/{ => src}/app/app.component.html | 0 .../pipes/ts/{ => src}/app/app.component.ts | 0 .../pipes/ts/{ => src}/app/app.module.ts | 0 .../app/exponential-strength.pipe.ts | 0 .../pipes/ts/{ => src}/app/fetch-json.pipe.ts | 0 .../app/flying-heroes-impure.component.html | 0 .../app/flying-heroes.component.html | 0 .../{ => src}/app/flying-heroes.component.ts | 0 .../ts/{ => src}/app/flying-heroes.pipe.ts | 0 .../app/hero-async-message.component.ts | 0 .../{ => src}/app/hero-birthday1.component.ts | 0 .../{ => src}/app/hero-birthday2.component.ts | 0 .../ts/{ => src}/app/hero-list.component.ts | 0 .../pipes/ts/{ => src}/app/heroes.ts | 0 .../app/power-boost-calculator.component.ts | 0 .../{ => src}/app/power-booster.component.ts | 0 .../_examples/pipes/ts/{ => src}/heroes.json | 0 .../_examples/pipes/ts/{ => src}/index.html | 2 +- public/docs/_examples/pipes/ts/src/main.ts | 5 + .../_examples/quickstart/js/bs-config.1.json | 8 + .../docs/_examples/quickstart/js/plnkr.json | 1 + public/docs/_examples/quickstart/js/spec.js | 9 - .../js/{ => src}/app/app.component.js | 0 .../quickstart/js/{ => src}/app/app.module.js | 0 .../quickstart/js/{ => src}/index.html | 2 +- .../quickstart/js/{app => src}/main.js | 0 .../quickstart/js/{ => src}/styles.1.css | 0 .../_examples/quickstart/ts/bs-config.1.json | 8 + .../docs/_examples/quickstart/ts/plnkr.json | 1 + .../ts/{ => src}/app/app.component.ts | 0 .../quickstart/ts/{ => src}/app/app.module.ts | 0 .../quickstart/ts/{ => src}/index.html | 2 +- .../ts/app => quickstart/ts/src}/main.ts | 2 +- .../quickstart/ts/{ => src}/tsconfig.1.json | 0 .../reactive-forms/ts/final.plnkr.json | 3 +- .../ts/{ => src}/app/app.component.1.ts | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/data-model.ts | 80 ++-- .../ts/{ => src}/app/demo.component.html | 80 ++-- .../ts/{ => src}/app/demo.component.ts | 96 ++--- .../ts/{ => src}/app/demo.module.ts | 66 ++-- .../app/hero-detail-1.component.html | 0 .../{ => src}/app/hero-detail-1.component.ts | 0 .../app/hero-detail-2.component.html | 0 .../{ => src}/app/hero-detail-2.component.ts | 0 .../app/hero-detail-3.component.html | 0 .../{ => src}/app/hero-detail-3.component.ts | 0 .../{ => src}/app/hero-detail-3a.component.ts | 0 .../app/hero-detail-4.component.html | 0 .../{ => src}/app/hero-detail-4.component.ts | 0 .../app/hero-detail-5.component.html | 0 .../{ => src}/app/hero-detail-5.component.ts | 0 .../app/hero-detail-6.component.html | 0 .../{ => src}/app/hero-detail-6.component.ts | 0 .../app/hero-detail-7.component.html | 0 .../{ => src}/app/hero-detail-7.component.ts | 0 .../app/hero-detail-8.component.html | 0 .../{ => src}/app/hero-detail-8.component.ts | 0 .../{ => src}/app/hero-detail.component.html | 0 .../ts/{ => src}/app/hero-detail.component.ts | 0 .../{ => src}/app/hero-list.component.1.html | 16 +- .../ts/{ => src}/app/hero-list.component.html | 34 +- .../ts/{ => src}/app/hero-list.component.ts | 64 ++-- .../ts/{ => src}/app/hero.service.ts | 52 +-- .../ts/{ => src}/app/main-final.ts | 10 +- .../ts/{ => src}/index-final.html | 0 .../reactive-forms/ts/{ => src}/index.html | 2 +- .../reactive-forms/ts/{app => src}/main.ts | 4 +- public/docs/_examples/router/ts/app/main.ts | 6 - public/docs/_examples/router/ts/plnkr.json | 1 + .../app/admin/admin-dashboard.component.1.ts | 0 .../app/admin/admin-dashboard.component.2.ts | 0 .../app/admin/admin-dashboard.component.ts | 0 .../app/admin/admin-routing.module.1.ts | 0 .../app/admin/admin-routing.module.2.ts | 0 .../app/admin/admin-routing.module.3.ts | 0 .../app/admin/admin-routing.module.ts | 0 .../ts/{ => src}/app/admin/admin.component.ts | 0 .../ts/{ => src}/app/admin/admin.module.ts | 0 .../app/admin/manage-crises.component.ts | 0 .../app/admin/manage-heroes.component.ts | 0 .../router/ts/{ => src}/app/animations.ts | 52 +-- .../ts/{ => src}/app/app-routing.module.1.ts | 0 .../ts/{ => src}/app/app-routing.module.2.ts | 0 .../ts/{ => src}/app/app-routing.module.3.ts | 0 .../ts/{ => src}/app/app-routing.module.4.ts | 0 .../ts/{ => src}/app/app-routing.module.5.ts | 0 .../ts/{ => src}/app/app-routing.module.6.ts | 0 .../ts/{ => src}/app/app-routing.module.ts | 0 .../ts/{ => src}/app/app.component.1.ts | 0 .../ts/{ => src}/app/app.component.2.ts | 0 .../ts/{ => src}/app/app.component.3.ts | 0 .../ts/{ => src}/app/app.component.4.ts | 0 .../ts/{ => src}/app/app.component.5.ts | 0 .../router/ts/{ => src}/app/app.component.ts | 0 .../router/ts/{ => src}/app/app.module.0.ts | 0 .../router/ts/{ => src}/app/app.module.1.ts | 0 .../router/ts/{ => src}/app/app.module.2.ts | 0 .../router/ts/{ => src}/app/app.module.3.ts | 0 .../router/ts/{ => src}/app/app.module.4.ts | 0 .../router/ts/{ => src}/app/app.module.5.ts | 0 .../router/ts/{ => src}/app/app.module.6.ts | 0 .../router/ts/{ => src}/app/app.module.7.ts | 0 .../router/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/auth-guard.service.1.ts | 0 .../ts/{ => src}/app/auth-guard.service.2.ts | 0 .../ts/{ => src}/app/auth-guard.service.3.ts | 0 .../ts/{ => src}/app/auth-guard.service.4.ts | 0 .../ts/{ => src}/app/auth-guard.service.ts | 0 .../router/ts/{ => src}/app/auth.service.ts | 0 .../app/can-deactivate-guard.service.1.ts | 0 .../app/can-deactivate-guard.service.ts | 0 .../app/compose-message.component.html | 34 +- .../app/compose-message.component.ts | 0 .../crisis-center-home.component.ts | 0 .../crisis-center-routing.module.1.ts | 0 .../crisis-center-routing.module.2.ts | 0 .../crisis-center-routing.module.3.ts | 0 .../crisis-center-routing.module.4.ts | 0 .../crisis-center-routing.module.ts | 0 .../crisis-center/crisis-center.component.ts | 0 .../crisis-center/crisis-center.module.1.ts | 0 .../app/crisis-center/crisis-center.module.ts | 0 .../crisis-detail-resolver.service.ts | 0 .../crisis-detail.component.1.ts | 0 .../crisis-center/crisis-detail.component.ts | 0 .../crisis-center/crisis-list.component.1.ts | 0 .../crisis-center/crisis-list.component.ts | 0 .../app/crisis-center/crisis.service.ts | 0 .../ts/{ => src}/app/crisis-list.component.ts | 0 .../router/ts/{ => src}/app/dialog.service.ts | 0 .../ts/{ => src}/app/hero-list.component.ts | 0 .../app/heroes/hero-detail.component.1.ts | 0 .../app/heroes/hero-detail.component.2.ts | 0 .../app/heroes/hero-detail.component.ts | 0 .../app/heroes/hero-list.component.1.ts | 0 .../app/heroes/hero-list.component.ts | 0 .../ts/{ => src}/app/heroes/hero.service.ts | 0 .../app/heroes/heroes-routing.module.ts | 0 .../ts/{ => src}/app/heroes/heroes.module.ts | 0 .../ts/{ => src}/app/login-routing.module.ts | 0 .../ts/{ => src}/app/login.component.1.ts | 0 .../ts/{ => src}/app/login.component.ts | 0 .../ts/{ => src}/app/not-found.component.ts | 0 .../app/selective-preloading-strategy.ts | 0 .../_examples/router/ts/{ => src}/index.html | 2 +- public/docs/_examples/router/ts/src/main.ts | 6 + public/docs/_examples/security/ts/app/main.ts | 6 - public/docs/_examples/security/ts/plnkr.json | 1 + .../ts/{ => src}/app/app.component.ts | 0 .../security/ts/{ => src}/app/app.module.ts | 0 .../app/bypass-security.component.html | 0 .../app/bypass-security.component.ts | 0 .../app/inner-html-binding.component.html | 0 .../app/inner-html-binding.component.ts | 0 .../security/ts/{ => src}/index.html | 2 +- public/docs/_examples/security/ts/src/main.ts | 6 + .../server-communication/ts/app/main.ts | 5 - .../server-communication/ts/plnkr.json | 3 +- .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.1.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../app/default-request-options.service.ts | 32 +- .../ts/{ => src}/app/hero-data.ts | 0 .../ts/{ => src}/app/heroes.json | 0 .../app/toh/hero-list.component.html | 0 .../app/toh/hero-list.component.promise.ts | 0 .../{ => src}/app/toh/hero-list.component.ts | 0 .../{ => src}/app/toh/hero.service.promise.ts | 0 .../ts/{ => src}/app/toh/hero.service.ts | 0 .../ts/{ => src}/app/toh/hero.ts | 0 .../app/wiki/wiki-smart.component.ts | 0 .../ts/{ => src}/app/wiki/wiki.component.ts | 0 .../{ => src}/app/wiki/wikipedia.service.1.ts | 0 .../{ => src}/app/wiki/wikipedia.service.ts | 0 .../ts/{ => src}/index.html | 2 +- .../server-communication/ts/src/main.ts | 5 + public/docs/_examples/setup/ts/app/main.ts | 5 - public/docs/_examples/setup/ts/plnkr.json | 3 +- .../setup/ts/quickstart-specs.plnkr.json | 3 +- .../ts/{ => src}/app/app.component.spec.ts | 0 .../setup/ts/{ => src}/app/app.component.ts | 0 .../setup/ts/{ => src}/app/app.module.ts | 0 .../_examples/setup/ts/{ => src}/index.html | 2 +- public/docs/_examples/setup/ts/src/main.ts | 5 + .../setup/ts/{ => src}/quickstart-specs.html | 3 + .../ts/{ => src}/systemjs.config.extras.js | 0 .../setup/ts/systemjs.config.extras.web.js | 11 - .../structural-directives/ts/app/main.ts | 6 - .../structural-directives/ts/plnkr.json | 1 + .../ts/{ => src}/app/app.module.ts | 0 .../{ => src}/app/heavy-loader.component.ts | 0 .../app/structural-directives.component.html | 0 .../app/structural-directives.component.ts | 0 .../ts/{ => src}/app/unless.directive.ts | 0 .../ts/{ => src}/index.html | 2 +- .../structural-directives/ts/src/main.ts | 6 + .../docs/_examples/style-guide/ts/plnkr.json | 3 +- .../ts/{ => src}/01-01/app/app.component.css | 0 .../ts/{ => src}/01-01/app/app.component.ts | 0 .../ts/{ => src}/01-01/app/app.module.ts | 0 .../01-01/app/heroes/hero.component.avoid.ts | 0 .../01-01/app/heroes/heroes.component.ts | 0 .../ts/{ => src}/01-01/app/heroes/index.ts | 0 .../01-01/app/heroes/shared/hero.model.ts | 0 .../01-01/app/heroes/shared/hero.service.ts | 0 .../01-01/app/heroes/shared/index.ts | 0 .../01-01/app/heroes/shared/mock-heroes.ts | 0 .../ts/{ => src}/01-01/app/index.ts | 0 .../style-guide/ts/{ => src}/01-01/main.ts | 0 .../ts/{ => src}/02-05/app/app.component.ts | 0 .../ts/{ => src}/02-05/app/app.module.ts | 0 .../style-guide/ts/{ => src}/02-05/main.ts | 0 .../ts/{ => src}/02-07/app/app.component.ts | 0 .../ts/{ => src}/02-07/app/app.module.ts | 0 .../02-07/app/heroes/hero.component.avoid.ts | 0 .../02-07/app/heroes/hero.component.ts | 0 .../ts/{ => src}/02-07/app/heroes/index.ts | 0 .../ts/{ => src}/02-07/app/index.ts | 0 .../ts/{ => src}/02-07/app/users/index.ts | 0 .../02-07/app/users/users.component.avoid.ts | 0 .../02-07/app/users/users.component.ts | 0 .../ts/{ => src}/02-08/app/app.component.ts | 0 .../ts/{ => src}/02-08/app/app.module.ts | 0 .../ts/{ => src}/02-08/app/index.ts | 0 .../ts/{ => src}/02-08/app/shared/index.ts | 0 .../app/shared/input-highlight.directive.ts | 0 .../app/shared/validate.directive.avoid.ts | 0 .../02-08/app/shared/validate.directive.ts | 0 .../ts/{ => src}/03-01/app/app.component.ts | 0 .../ts/{ => src}/03-01/app/app.module.ts | 0 .../03-01/app/core/exception.service.avoid.ts | 0 .../03-01/app/core/exception.service.ts | 0 .../ts/{ => src}/03-01/app/core/index.ts | 0 .../ts/{ => src}/03-01/app/index.ts | 0 .../ts/{ => src}/03-02/app/app.component.ts | 0 .../ts/{ => src}/03-02/app/app.module.ts | 0 .../{ => src}/03-02/app/core/data.service.ts | 0 .../ts/{ => src}/03-02/app/core/index.ts | 0 .../ts/{ => src}/03-02/app/index.ts | 0 .../ts/{ => src}/03-03/app/app.component.ts | 0 .../ts/{ => src}/03-03/app/app.module.ts | 0 .../app/core/hero-collector.service.avoid.ts | 0 .../03-03/app/core/hero-collector.service.ts | 0 .../03-03/app/core/hero.model.avoid.ts | 0 .../ts/{ => src}/03-03/app/core/hero.model.ts | 0 .../ts/{ => src}/03-03/app/core/index.ts | 0 .../ts/{ => src}/03-03/app/index.ts | 0 .../ts/{ => src}/03-04/app/app.component.ts | 0 .../ts/{ => src}/03-04/app/app.module.ts | 0 .../ts/{ => src}/03-04/app/core/index.ts | 0 .../03-04/app/core/toast.service.avoid.ts | 0 .../{ => src}/03-04/app/core/toast.service.ts | 0 .../ts/{ => src}/03-04/app/index.ts | 0 .../ts/{ => src}/03-06/app/app.component.html | 0 .../ts/{ => src}/03-06/app/app.component.ts | 0 .../ts/{ => src}/03-06/app/app.module.ts | 0 .../03-06/app/core/exception.service.ts | 0 .../ts/{ => src}/03-06/app/core/index.ts | 0 .../{ => src}/03-06/app/core/spinner/index.ts | 0 .../app/core/spinner/spinner.component.ts | 0 .../03-06/app/core/spinner/spinner.service.ts | 0 .../{ => src}/03-06/app/core/toast/index.ts | 0 .../03-06/app/core/toast/toast.component.ts | 0 .../03-06/app/core/toast/toast.service.ts | 0 .../ts/{ => src}/03-06/app/heroes/index.ts | 0 .../03-06/app/heroes/shared/hero.model.ts | 0 .../app/heroes/shared/hero.service.avoid.ts | 0 .../03-06/app/heroes/shared/hero.service.ts | 0 .../03-06/app/heroes/shared/index.ts | 0 .../ts/{ => src}/03-06/app/index.ts | 0 .../03-06/app/shared/toast/toast.component.ts | 0 .../ts/{ => src}/04-08/app/app.component.ts | 0 .../ts/{ => src}/04-08/app/app.module.ts | 0 .../04-08/app/heroes/heroes.component.html | 0 .../04-08/app/heroes/heroes.component.ts | 0 .../ts/{ => src}/04-10/app/app.component.ts | 0 .../ts/{ => src}/04-10/app/app.module.ts | 0 .../04-10/app/heroes/heroes.component.html | 0 .../04-10/app/heroes/heroes.component.ts | 0 .../filter-text/filter-text.component.ts | 0 .../shared/filter-text/filter-text.service.ts | 0 .../04-10/app/shared/init-caps.pipe.ts | 0 .../04-10/app/shared/shared.module.ts | 0 .../ts/{ => src}/04-11/app/app.component.ts | 0 .../ts/{ => src}/04-11/app/app.module.ts | 0 .../{ => src}/04-11/app/core/core.module.ts | 0 .../ts/{ => src}/04-11/app/core/index.ts | 0 .../04-11/app/core/logger.service.ts | 0 .../04-11/app/core/nav/nav.component.css | 0 .../04-11/app/core/nav/nav.component.html | 0 .../04-11/app/core/nav/nav.component.ts | 0 .../app/core/spinner/spinner.component.css | 0 .../app/core/spinner/spinner.component.html | 0 .../app/core/spinner/spinner.component.ts | 0 .../04-11/app/core/spinner/spinner.service.ts | 0 .../04-11/app/heroes/heroes.component.html | 0 .../04-11/app/heroes/heroes.component.ts | 0 .../ts/{ => src}/04-12/app/app.component.ts | 0 .../ts/{ => src}/04-12/app/app.module.ts | 0 .../{ => src}/04-12/app/core/core.module.ts | 0 .../ts/{ => src}/04-12/app/core/index.ts | 0 .../04-12/app/core/logger.service.ts | 0 .../04-12/app/core/module-import-guard.ts | 0 .../04-12/app/core/nav/nav.component.css | 0 .../04-12/app/core/nav/nav.component.html | 0 .../04-12/app/core/nav/nav.component.ts | 0 .../04-12/app/heroes/heroes.component.html | 0 .../04-12/app/heroes/heroes.component.ts | 0 .../ts/{ => src}/05-02/app/app.component.html | 0 .../ts/{ => src}/05-02/app/app.component.ts | 0 .../ts/{ => src}/05-02/app/app.module.ts | 0 .../ts/{ => src}/05-02/app/heroes/index.ts | 0 .../hero-button.component.avoid.ts | 0 .../hero-button/hero-button.component.html | 0 .../hero-button/hero-button.component.ts | 0 .../app/heroes/shared/hero-button/index.ts | 0 .../05-02/app/heroes/shared/index.ts | 0 .../ts/{ => src}/05-02/app/index.ts | 0 .../05-03/app/app.component.avoid.html | 0 .../ts/{ => src}/05-03/app/app.component.html | 0 .../ts/{ => src}/05-03/app/app.component.ts | 0 .../ts/{ => src}/05-03/app/app.module.ts | 0 .../ts/{ => src}/05-03/app/heroes/index.ts | 0 .../hero-button.component.avoid.ts | 0 .../hero-button/hero-button.component.html | 0 .../hero-button/hero-button.component.ts | 0 .../app/heroes/shared/hero-button/index.ts | 0 .../05-03/app/heroes/shared/index.ts | 0 .../ts/{ => src}/05-03/app/index.ts | 0 .../ts/{ => src}/05-04/app/app.component.ts | 0 .../ts/{ => src}/05-04/app/app.module.ts | 0 .../app/heroes/heroes.component.avoid.ts | 0 .../05-04/app/heroes/heroes.component.css | 0 .../05-04/app/heroes/heroes.component.html | 0 .../05-04/app/heroes/heroes.component.ts | 0 .../ts/{ => src}/05-04/app/heroes/index.ts | 0 .../05-04/app/heroes/shared/hero.model.ts | 0 .../05-04/app/heroes/shared/hero.service.ts | 36 +- .../05-04/app/heroes/shared/index.ts | 0 .../ts/{ => src}/05-04/app/index.ts | 0 .../ts/{ => src}/05-12/app/app.component.ts | 0 .../ts/{ => src}/05-12/app/app.module.ts | 0 .../ts/{ => src}/05-12/app/heroes/index.ts | 0 .../hero-button.component.avoid.ts | 0 .../hero-button/hero-button.component.ts | 0 .../app/heroes/shared/hero-button/index.ts | 0 .../05-12/app/heroes/shared/index.ts | 0 .../ts/{ => src}/05-12/app/index.ts | 0 .../05-13/app/app.component.avoid.html | 0 .../ts/{ => src}/05-13/app/app.component.html | 0 .../ts/{ => src}/05-13/app/app.component.ts | 0 .../ts/{ => src}/05-13/app/app.module.ts | 0 .../ts/{ => src}/05-13/app/heroes/index.ts | 0 .../hero-button.component.avoid.ts | 0 .../hero-button/hero-button.component.ts | 0 .../app/heroes/shared/hero-button/index.ts | 0 .../heroes/shared/hero-highlight.directive.ts | 30 +- .../05-13/app/heroes/shared/index.ts | 0 .../ts/{ => src}/05-13/app/index.ts | 0 .../ts/{ => src}/05-14/app/app.component.ts | 0 .../ts/{ => src}/05-14/app/app.module.ts | 0 .../ts/{ => src}/05-14/app/index.ts | 0 .../ts/{ => src}/05-14/app/shared/index.ts | 0 .../{ => src}/05-14/app/shared/toast/index.ts | 0 .../app/shared/toast/toast.component.avoid.ts | 0 .../05-14/app/shared/toast/toast.component.ts | 0 .../ts/{ => src}/05-15/app/app.component.ts | 0 .../ts/{ => src}/05-15/app/app.module.ts | 0 .../hero-list/hero-list.component.avoid.ts | 0 .../heroes/hero-list/hero-list.component.ts | 0 .../05-15/app/heroes/hero-list/index.ts | 0 .../ts/{ => src}/05-15/app/heroes/index.ts | 0 .../05-15/app/heroes/shared/hero.model.ts | 0 .../05-15/app/heroes/shared/hero.service.ts | 0 .../05-15/app/heroes/shared/index.ts | 0 .../ts/{ => src}/05-15/app/index.ts | 0 .../05-16/app/app.component.avoid.html | 0 .../ts/{ => src}/05-16/app/app.component.html | 0 .../ts/{ => src}/05-16/app/app.component.ts | 0 .../ts/{ => src}/05-16/app/app.module.ts | 0 .../05-16/app/heroes/hero.component.avoid.ts | 0 .../05-16/app/heroes/hero.component.ts | 0 .../ts/{ => src}/05-16/app/heroes/index.ts | 0 .../ts/{ => src}/05-16/app/index.ts | 0 .../ts/{ => src}/05-17/app/app.component.ts | 0 .../ts/{ => src}/05-17/app/app.module.ts | 0 .../hero-list/hero-list.component.avoid.ts | 0 .../heroes/hero-list/hero-list.component.ts | 0 .../05-17/app/heroes/hero-list/index.ts | 0 .../05-17/app/heroes/hero/hero.component.ts | 0 .../{ => src}/05-17/app/heroes/hero/index.ts | 0 .../ts/{ => src}/05-17/app/heroes/index.ts | 0 .../05-17/app/heroes/shared/hero.model.ts | 0 .../05-17/app/heroes/shared/index.ts | 0 .../ts/{ => src}/05-17/app/index.ts | 0 .../ts/{ => src}/06-01/app/app.component.html | 0 .../ts/{ => src}/06-01/app/app.component.ts | 0 .../ts/{ => src}/06-01/app/app.module.ts | 0 .../ts/{ => src}/06-01/app/index.ts | 0 .../06-01/app/shared/highlight.directive.ts | 0 .../ts/{ => src}/06-01/app/shared/index.ts | 0 .../ts/{ => src}/06-03/app/app.component.ts | 0 .../ts/{ => src}/06-03/app/app.module.ts | 0 .../ts/{ => src}/06-03/app/index.ts | 0 .../ts/{ => src}/06-03/app/shared/index.ts | 0 .../06-03/app/shared/validator.directive.ts | 0 .../06-03/app/shared/validator2.directive.ts | 0 .../ts/{ => src}/07-01/app/app.component.html | 0 .../ts/{ => src}/07-01/app/app.component.ts | 0 .../ts/{ => src}/07-01/app/app.module.ts | 0 .../ts/{ => src}/07-01/app/heroes/index.ts | 0 .../07-01/app/heroes/shared/hero.model.ts | 0 .../07-01/app/heroes/shared/hero.service.ts | 0 .../07-01/app/heroes/shared/index.ts | 0 .../ts/{ => src}/07-01/app/index.ts | 0 .../ts/{ => src}/07-03/app/app.component.ts | 0 .../ts/{ => src}/07-03/app/app.module.ts | 0 .../heroes/hero-list/hero-list.component.ts | 0 .../07-03/app/heroes/hero-list/index.ts | 0 .../ts/{ => src}/07-03/app/heroes/index.ts | 0 .../07-03/app/heroes/shared/hero.model.ts | 0 .../07-03/app/heroes/shared/hero.service.ts | 0 .../07-03/app/heroes/shared/index.ts | 0 .../ts/{ => src}/07-03/app/index.ts | 0 .../ts/{ => src}/07-04/app/app.component.ts | 0 .../ts/{ => src}/07-04/app/app.module.ts | 0 .../ts/{ => src}/07-04/app/heroes/index.ts | 0 .../heroes/shared/hero-arena.service.avoid.ts | 0 .../app/heroes/shared/hero-arena.service.ts | 0 .../07-04/app/heroes/shared/hero.model.ts | 0 .../07-04/app/heroes/shared/hero.service.ts | 0 .../07-04/app/heroes/shared/index.ts | 0 .../ts/{ => src}/07-04/app/index.ts | 0 .../ts/{ => src}/09-01/app/app.component.ts | 0 .../ts/{ => src}/09-01/app/app.module.ts | 0 .../ts/{ => src}/09-01/app/heroes/index.ts | 0 .../hero-button.component.avoid.ts | 0 .../hero-button/hero-button.component.ts | 0 .../app/heroes/shared/hero-button/index.ts | 0 .../09-01/app/heroes/shared/index.ts | 0 .../ts/{ => src}/09-01/app/index.ts | 0 .../ts/{ => src}/app/app.component.html | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.routes.ts | 0 .../style-guide/ts/{ => src}/app/hero-data.ts | 0 .../style-guide/ts/{ => src}/index.html | 2 +- .../style-guide/ts/{app => src}/main.ts | 60 +-- .../ts/{ => src}/systemjs.custom.js | 0 .../_examples/styleguide/js/{ => src}/app.js | 0 .../styleguide/js/{ => src}/index.html | 0 .../docs/_examples/styleguide/ts/app/main.ts | 5 - .../ts/{ => src}/app/app.component.ts | 0 .../styleguide/ts/{ => src}/app/app.module.ts | 0 .../styleguide/ts/{ => src}/index.html | 2 +- .../docs/_examples/styleguide/ts/src/main.ts | 5 + .../_examples/template-syntax/ts/plnkr.json | 3 +- .../ts/{ => src}/app/app.component.html | 0 .../ts/{ => src}/app/app.component.ts | 0 .../ts/{ => src}/app/app.module.1.ts | 0 .../ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/click.directive.ts | 0 .../ts/{ => src}/app/hero-detail.component.ts | 0 .../template-syntax/ts/{ => src}/app/hero.ts | 0 .../ts/{ => src}/app/sizer.component.ts | 0 .../ts/{ => src}/images/hero.png | Bin .../ts/{ => src}/images/ng-logo.png | Bin .../ts/{ => src}/images/villain.png | Bin .../template-syntax/ts/{ => src}/index.html | 2 +- .../template-syntax/ts/{app => src}/main.ts | 2 +- .../ts/{ => src}/template-syntax.css | 0 public/docs/_examples/testing/ts/.gitignore | 1 + .../_examples/testing/ts/1st-specs.plnkr.json | 1 + .../_examples/testing/ts/app-specs.plnkr.json | 3 +- .../_examples/testing/ts/bag-specs.plnkr.json | 1 + .../docs/_examples/testing/ts/bag.plnkr.json | 1 + .../testing/ts/banner-inline-specs.plnkr.json | 1 + .../testing/ts/banner-specs.plnkr.json | 1 + .../_examples/testing/ts/karma-test-shim.js | 6 +- .../docs/_examples/testing/ts/karma.conf.js | 17 +- public/docs/_examples/testing/ts/plnkr.json | 2 + .../testing/ts/{ => src}/1st-specs.html | 0 .../testing/ts/{ => src}/app-specs.html | 0 .../testing/ts/{ => src}/app/1st.spec.ts | 0 .../ts/{ => src}/app/about.component.spec.ts | 0 .../ts/{ => src}/app/about.component.ts | 0 .../ts/{ => src}/app/app-routing.module.ts | 0 .../ts/{ => src}/app/app.component.html | 0 .../app/app.component.router.spec.ts | 0 .../ts/{ => src}/app/app.component.spec.ts | 0 .../testing/ts/{ => src}/app/app.component.ts | 0 .../testing/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/bag/async-helper.spec.ts | 0 .../app/bag/bag-external-template.html | 0 .../testing/ts/{ => src}/app/bag/bag-main.ts | 0 .../{ => src}/app/bag/bag.no-testbed.spec.ts | 0 .../testing/ts/{ => src}/app/bag/bag.spec.ts | 0 .../testing/ts/{ => src}/app/bag/bag.ts | 0 .../app/banner-inline.component.spec.ts | 0 .../{ => src}/app/banner-inline.component.ts | 0 .../ts/{ => src}/app/banner.component.css | 2 +- .../banner.component.detect-changes.spec.ts | 0 .../ts/{ => src}/app/banner.component.html | 2 +- .../ts/{ => src}/app/banner.component.spec.ts | 0 .../ts/{ => src}/app/banner.component.ts | 0 .../dashboard/dashboard-hero.component.css | 0 .../dashboard/dashboard-hero.component.html | 0 .../dashboard-hero.component.spec.ts | 0 .../app/dashboard/dashboard-hero.component.ts | 0 .../app/dashboard/dashboard.component.css | 0 .../app/dashboard/dashboard.component.html | 0 .../dashboard.component.no-testbed.spec.ts | 0 .../app/dashboard/dashboard.component.spec.ts | 0 .../app/dashboard/dashboard.component.ts | 0 .../app/dashboard/dashboard.module.ts | 0 .../app/hero/hero-detail.component.css | 0 .../app/hero/hero-detail.component.html | 0 .../hero-detail.component.no-testbed.spec.ts | 0 .../app/hero/hero-detail.component.spec.ts | 0 .../app/hero/hero-detail.component.ts | 0 .../{ => src}/app/hero/hero-detail.service.ts | 0 .../app/hero/hero-list.component.css | 0 .../app/hero/hero-list.component.html | 0 .../app/hero/hero-list.component.spec.ts | 0 .../{ => src}/app/hero/hero-list.component.ts | 0 .../{ => src}/app/hero/hero-routing.module.ts | 0 .../ts/{ => src}/app/hero/hero.module.ts | 0 .../ts/{ => src}/app/model/hero.service.ts | 0 .../ts/{ => src}/app/model/hero.spec.ts | 0 .../testing/ts/{ => src}/app/model/hero.ts | 0 .../app/model/http-hero.service.spec.ts | 0 .../{ => src}/app/model/http-hero.service.ts | 0 .../testing/ts/{ => src}/app/model/index.ts | 0 .../ts/{ => src}/app/model/test-heroes.ts | 0 .../app/model/testing/fake-hero.service.ts | 0 .../ts/{ => src}/app/model/testing/index.ts | 0 .../ts/{ => src}/app/model/user.service.ts | 0 .../app/shared/highlight.directive.spec.ts | 0 .../app/shared/highlight.directive.ts | 0 .../ts/{ => src}/app/shared/shared.module.ts | 0 .../app/shared/title-case.pipe.spec.ts | 0 .../{ => src}/app/shared/title-case.pipe.ts | 0 .../app/shared/twain.component.spec.ts | 0 .../twain.component.timer.spec.ts.no-work | 0 .../shared/twain.component.timer.ts.no-work | 0 .../{ => src}/app/shared/twain.component.ts | 0 .../ts/{ => src}/app/shared/twain.service.ts | 0 .../{ => src}/app/welcome.component.spec.ts | 0 .../ts/{ => src}/app/welcome.component.ts | 0 .../testing/ts/{ => src}/bag-specs.html | 0 .../_examples/testing/ts/{ => src}/bag.html | 0 .../ts/{ => src}/banner-inline-specs.html | 0 .../testing/ts/{ => src}/banner-specs.html | 0 .../testing/ts/{ => src}/browser-test-shim.js | 0 .../_examples/testing/ts/{ => src}/index.html | 2 +- .../_examples/testing/ts/{app => src}/main.ts | 2 +- .../ts/{ => src}/systemjs.config.extras.js | 0 .../testing/ts/{ => src}/testing/index.ts | 0 .../{ => src}/testing/jasmine-matchers.d.ts | 0 .../ts/{ => src}/testing/jasmine-matchers.ts | 0 .../ts/{ => src}/testing/router-stubs.ts | 0 .../testing/ts/systemjs.config.extras.web.js | 11 - public/docs/_examples/toh-1/ts/plnkr.json | 1 + .../toh-1/ts/{ => src}/app/app.component.ts | 0 .../toh-1/ts/{ => src}/app/app.module.ts | 0 .../{toh-3/ts => toh-1/ts/src}/index.html | 2 +- .../_examples/toh-1/ts/{app => src}/main.ts | 2 +- public/docs/_examples/toh-2/ts/plnkr.json | 1 + .../toh-2/ts/{ => src}/app/app.component.ts | 0 .../toh-2/ts/{ => src}/app/app.module.ts | 0 .../_examples/toh-2/ts/{ => src}/index.html | 2 +- .../_examples/toh-2/ts/{app => src}/main.ts | 2 +- public/docs/_examples/toh-3/ts/plnkr.json | 1 + .../toh-3/ts/{ => src}/app/app.component.ts | 0 .../toh-3/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/hero-detail.component.ts | 0 .../_examples/toh-3/ts/{ => src}/app/hero.ts | 0 .../{toh-1/ts => toh-3/ts/src}/index.html | 2 +- .../_examples/toh-3/ts/{app => src}/main.ts | 2 +- public/docs/_examples/toh-4/ts/app/main.ts | 4 - public/docs/_examples/toh-4/ts/plnkr.json | 1 + .../toh-4/ts/{ => src}/app/app.component.1.ts | 0 .../toh-4/ts/{ => src}/app/app.component.ts | 0 .../toh-4/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/hero-detail.component.ts | 0 .../toh-4/ts/{ => src}/app/hero.service.1.ts | 0 .../toh-4/ts/{ => src}/app/hero.service.2.ts | 0 .../toh-4/ts/{ => src}/app/hero.service.ts | 0 .../_examples/toh-4/ts/{ => src}/app/hero.ts | 0 .../toh-4/ts/{ => src}/app/mock-heroes.ts | 0 .../_examples/toh-4/ts/{ => src}/index.html | 2 +- .../_examples/toh-4/ts/{app => src}/main.1.ts | 2 +- public/docs/_examples/toh-4/ts/src/main.ts | 4 + public/docs/_examples/toh-5/ts/plnkr.json | 1 + .../ts/{ => src}/app/app-routing.module.ts | 0 .../toh-5/ts/{ => src}/app/app.component.1.ts | 0 .../toh-5/ts/{ => src}/app/app.component.css | 0 .../toh-5/ts/{ => src}/app/app.component.ts | 0 .../toh-5/ts/{ => src}/app/app.module.1.ts | 0 .../toh-5/ts/{ => src}/app/app.module.2.ts | 0 .../toh-5/ts/{ => src}/app/app.module.3.ts | 0 .../toh-5/ts/{ => src}/app/app.module.ts | 0 .../{ => src}/app/dashboard.component.1.html | 0 .../ts/{ => src}/app/dashboard.component.1.ts | 0 .../ts/{ => src}/app/dashboard.component.css | 0 .../ts/{ => src}/app/dashboard.component.html | 0 .../ts/{ => src}/app/dashboard.component.ts | 0 .../{ => src}/app/hero-detail.component.1.ts | 0 .../{ => src}/app/hero-detail.component.css | 0 .../{ => src}/app/hero-detail.component.html | 0 .../ts/{ => src}/app/hero-detail.component.ts | 0 .../toh-5/ts/{ => src}/app/hero.service.ts | 0 .../_examples/toh-5/ts/{ => src}/app/hero.ts | 0 .../ts/{ => src}/app/heroes.component.css | 0 .../ts/{ => src}/app/heroes.component.html | 0 .../ts/{ => src}/app/heroes.component.ts | 0 .../toh-5/ts/{ => src}/app/mock-heroes.ts | 0 .../_examples/toh-5/ts/{ => src}/index.html | 2 +- .../_examples/toh-5/ts/{app => src}/main.ts | 2 +- .../_examples/toh-6/ts/aot/bs-config.json | 5 - public/docs/_examples/toh-6/ts/aot/styles.css | 116 ++++++ public/docs/_examples/toh-6/ts/app/main.ts | 6 - .../_examples/toh-6/ts/bs-config.aot.json | 14 + .../_examples/toh-6/ts/copy-dist-files.js | 2 +- public/docs/_examples/toh-6/ts/plnkr.json | 1 + .../docs/_examples/toh-6/ts/rollup-config.js | 13 +- .../ts/{ => src}/app/app-routing.module.ts | 0 .../toh-6/ts/{ => src}/app/app.component.css | 0 .../toh-6/ts/{ => src}/app/app.component.ts | 0 .../toh-6/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/dashboard.component.css | 0 .../ts/{ => src}/app/dashboard.component.html | 0 .../ts/{ => src}/app/dashboard.component.ts | 0 .../{ => src}/app/hero-detail.component.css | 0 .../{ => src}/app/hero-detail.component.html | 0 .../ts/{ => src}/app/hero-detail.component.ts | 0 .../{ => src}/app/hero-search.component.css | 0 .../{ => src}/app/hero-search.component.html | 0 .../ts/{ => src}/app/hero-search.component.ts | 0 .../ts/{ => src}/app/hero-search.service.ts | 0 .../toh-6/ts/{ => src}/app/hero.service.ts | 0 .../_examples/toh-6/ts/{ => src}/app/hero.ts | 0 .../ts/{ => src}/app/heroes.component.css | 0 .../ts/{ => src}/app/heroes.component.html | 0 .../ts/{ => src}/app/heroes.component.ts | 0 .../{ => src}/app/in-memory-data.service.ts | 0 .../_examples/toh-6/ts/{ => src}/index.html | 2 +- .../toh-6/ts/{app => src}/main-aot.ts | 2 +- public/docs/_examples/toh-6/ts/src/main.ts | 6 + .../docs/_examples/toh-6/ts/tsconfig-aot.json | 4 +- public/docs/_examples/typings.json | 13 - .../app/a-to-ajs-providers/app.module.ts | 0 .../hero-detail.component.ts | 0 .../app/a-to-ajs-providers/heroes.ts | 0 .../app/a-to-ajs-transclusion/app.module.ts | 0 .../container.component.ts | 0 .../hero-detail.component.ts | 0 .../app/ajs-a-hybrid-bootstrap/app.module.ts | 0 .../{ => src}/app/ajs-bootstrap/app.module.ts | 0 .../ts/{ => src}/app/ajs-ng-app/app.module.ts | 0 .../app/ajs-to-a-projection/app.module.ts | 0 .../hero-detail.component.ts | 0 .../ajs-to-a-projection/main.controller.ts | 0 .../app/ajs-to-a-providers/app.module.ts | 0 .../hero-detail.component.ts | 0 .../app/ajs-to-a-providers/heroes.service.ts | 0 .../{ => src}/app/downgrade-io/app.module.ts | 0 .../app/downgrade-io/hero-detail.component.ts | 0 .../app/downgrade-io/main.controller.ts | 0 .../app/downgrade-static/app.module.ts | 0 .../downgrade-static/hero-detail.component.ts | 0 .../ts/{ => src}/app/hero-detail.directive.ts | 0 .../upgrade-module/ts/{ => src}/app/hero.ts | 0 .../ts/{ => src}/app/upgrade-io/app.module.ts | 0 .../app/upgrade-io/container.component.ts | 0 .../app/upgrade-io/hero-detail.component.ts | 0 .../app/upgrade-static/app.module.ts | 0 .../app/upgrade-static/container.component.ts | 0 .../upgrade-static/hero-detail.component.ts | 0 .../{ => src}/index-a-to-ajs-providers.html | 0 .../index-a-to-ajs-transclusion.html | 0 .../index-ajs-a-hybrid-bootstrap.html | 0 .../{ => src}/index-ajs-to-a-projection.html | 0 .../{ => src}/index-ajs-to-a-providers.html | 0 .../ts/{ => src}/index-bootstrap.html | 0 .../ts/{ => src}/index-downgrade-io.html | 0 .../ts/{ => src}/index-downgrade-static.html | 0 .../ts/{ => src}/index-ng-app.html | 0 .../ts/{ => src}/index-upgrade-io.html | 0 .../ts/{ => src}/index-upgrade-static.html | 0 .../ts/example-config.json | 4 + .../ts}/tsconfig.json | 0 .../ts/example-config.json | 2 + .../ts/tsconfig.json | 21 ++ .../ts/example-config.json | 2 + .../upgrade-phonecat-3-final/ts/tsconfig.json | 21 ++ .../docs/_examples/user-input/ts/app/main.ts | 5 - .../docs/_examples/user-input/ts/plnkr.json | 3 +- .../ts/{ => src}/app/app.component.html | 0 .../ts/{ => src}/app/app.component.ts | 0 .../user-input/ts/{ => src}/app/app.module.ts | 0 .../ts/{ => src}/app/click-me.component.ts | 0 .../ts/{ => src}/app/click-me2.component.ts | 0 .../ts/{ => src}/app/keyup.components.ts | 0 .../ts/{ => src}/app/little-tour.component.ts | 0 .../ts/{ => src}/app/loop-back.component.ts | 0 .../user-input/ts/{ => src}/index.html | 2 +- .../docs/_examples/user-input/ts/src/main.ts | 5 + .../ts/{ => src}/user-input-styles.css | 0 .../webpack/ts/config/webpack.common.js | 5 +- .../_examples/webpack/ts/example-config.json | 2 +- public/docs/_includes/_hover-card.jade | 12 + .../_includes/styleguide/_code-examples.jade | 34 +- public/docs/js/latest/guide/forms.jade | 93 ++--- public/docs/js/latest/quickstart.jade | 99 +++-- .../latest/cookbook/ajs-quick-reference.jade | 58 +-- .../docs/ts/latest/cookbook/aot-compiler.jade | 72 ++-- .../cookbook/component-communication.jade | 28 +- .../cookbook/component-relative-paths.jade | 20 +- .../latest/cookbook/dependency-injection.jade | 110 +++--- .../cookbook/dynamic-component-loader.jade | 22 +- .../docs/ts/latest/cookbook/dynamic-form.jade | 24 +- .../ts/latest/cookbook/form-validation.jade | 58 +-- public/docs/ts/latest/cookbook/i18n.jade | 74 ++-- .../docs/ts/latest/cookbook/ngmodule-faq.jade | 6 +- .../latest/cookbook/set-document-title.jade | 10 +- public/docs/ts/latest/cookbook/ts-to-js.jade | 138 +++---- public/docs/ts/latest/glossary.jade | 2 +- public/docs/ts/latest/guide/animations.jade | 32 +- public/docs/ts/latest/guide/appmodule.jade | 10 +- public/docs/ts/latest/guide/architecture.jade | 38 +- .../ts/latest/guide/attribute-directives.jade | 74 ++-- .../docs/ts/latest/guide/browser-support.jade | 2 +- public/docs/ts/latest/guide/change-log.jade | 19 + .../ts/latest/guide/component-styles.jade | 26 +- .../ts/latest/guide/dependency-injection.jade | 124 +++--- public/docs/ts/latest/guide/deployment.jade | 38 +- .../docs/ts/latest/guide/displaying-data.jade | 34 +- public/docs/ts/latest/guide/forms.jade | 86 ++--- .../hierarchical-dependency-injection.jade | 8 +- .../docs/ts/latest/guide/lifecycle-hooks.jade | 28 +- public/docs/ts/latest/guide/ngmodule.jade | 159 ++++---- public/docs/ts/latest/guide/pipes.jade | 44 +-- .../docs/ts/latest/guide/reactive-forms.jade | 140 +++---- public/docs/ts/latest/guide/router.jade | 352 +++++++++--------- public/docs/ts/latest/guide/security.jade | 12 +- .../ts/latest/guide/server-communication.jade | 86 ++--- .../latest/guide/setup-systemjs-anatomy.jade | 4 +- public/docs/ts/latest/guide/setup.jade | 40 +- .../latest/guide/structural-directives.jade | 36 +- public/docs/ts/latest/guide/style-guide.jade | 260 ++++++------- .../docs/ts/latest/guide/template-syntax.jade | 190 +++++----- public/docs/ts/latest/guide/testing.jade | 210 +++++------ .../guide/typescript-configuration.jade | 2 +- public/docs/ts/latest/guide/upgrade.jade | 64 ++-- public/docs/ts/latest/guide/user-input.jade | 28 +- public/docs/ts/latest/quickstart.jade | 4 +- public/docs/ts/latest/tutorial/toh-pt1.jade | 30 +- public/docs/ts/latest/tutorial/toh-pt2.jade | 46 +-- public/docs/ts/latest/tutorial/toh-pt3.jade | 68 ++-- public/docs/ts/latest/tutorial/toh-pt4.jade | 94 ++--- public/docs/ts/latest/tutorial/toh-pt5.jade | 172 ++++----- public/docs/ts/latest/tutorial/toh-pt6.jade | 140 +++---- tools/plunker-builder/builder.js | 16 +- tools/plunker-builder/plunkerBuilder.js | 14 +- 1283 files changed, 4017 insertions(+), 3560 deletions(-) create mode 100644 public/docs/_examples/_boilerplate/bs-config.e2e.json create mode 100644 public/docs/_examples/_boilerplate/bs-config.json create mode 100644 public/docs/_examples/_boilerplate/plnkr.json rename public/docs/_examples/_boilerplate/{ => src}/styles.css (100%) rename public/docs/_examples/_boilerplate/{ => src}/systemjs.config.js (100%) rename public/docs/_examples/_boilerplate/{ => src}/systemjs.config.web.build.js (100%) rename public/docs/_examples/_boilerplate/{ => src}/systemjs.config.web.js (100%) create mode 100644 public/docs/_examples/_boilerplate/src/tsconfig.json rename public/docs/_examples/animations/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-auto.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-basic.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-combined-transitions.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-enter-leave-states.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-enter-leave.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-groups.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-inline-styles.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-multistep.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-timings.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list-twoway.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-list.component.css (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero-team-builder.component.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/app/hero.service.ts (100%) rename public/docs/_examples/animations/ts/{ => src}/index.html (92%) rename public/docs/_examples/animations/ts/{app => src}/main.ts (73%) rename public/docs/_examples/architecture/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/backend.service.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/hero-detail.component.html (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/hero-detail.component.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/hero-list.component.1.html (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/hero-list.component.html (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/hero-list.component.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/hero.service.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/logger.service.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/mini-app.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/sales-tax.component.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/sales-tax.service.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/app/tax-rate.service.ts (100%) rename public/docs/_examples/architecture/ts/{ => src}/index.html (88%) rename public/docs/_examples/{cb-dependency-injection/ts/app => architecture/ts/src}/main.ts (75%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/app.component.1.html (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/app.component.1.ts (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/dummy.module.1.ts (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/highlight.directive.1.ts (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/highlight.directive.2.ts (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/highlight.directive.3.ts (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/app/highlight.directive.ts (100%) rename public/docs/_examples/attribute-directives/ts/{ => src}/index.html (89%) rename public/docs/_examples/attribute-directives/ts/{app => src}/main.ts (75%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/app-routing.module.ts (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/app.component.css (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/app.module.1.ts (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/date.pipe.ts (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/movie-list.component.css (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/movie-list.component.html (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/movie-list.component.ts (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/movie.service.ts (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/app/movie.ts (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/images/hero.png (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/images/ng-logo.png (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/images/villain.png (100%) rename public/docs/_examples/cb-ajs-quick-reference/ts/{ => src}/index.html (90%) rename public/docs/_examples/{architecture/ts/app => cb-ajs-quick-reference/ts/src}/main.ts (75%) rename public/docs/_examples/cb-aot-compiler/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/cb-aot-compiler/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-aot-compiler/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-aot-compiler/ts/{ => src}/index-jit.html (89%) rename public/docs/_examples/cb-aot-compiler/ts/{ => src}/index.html (94%) rename public/docs/_examples/cb-aot-compiler/ts/{app => src}/main-jit.ts (75%) rename public/docs/_examples/cb-aot-compiler/ts/{app => src}/main.ts (70%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/astronaut.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/countdown-parent.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/countdown-timer.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/hero-child.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/hero-parent.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/mission.service.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/missioncontrol.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/name-child.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/name-parent.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/version-child.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/version-parent.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/voter.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/app/votetaker.component.ts (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/demo.css (100%) rename public/docs/_examples/cb-component-communication/ts/{ => src}/index.html (89%) rename public/docs/_examples/{quickstart/ts/app => cb-component-communication/ts/src}/main.ts (74%) rename public/docs/_examples/cb-component-relative-paths/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-component-relative-paths/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-component-relative-paths/ts/{ => src}/app/some.component.css (100%) rename public/docs/_examples/cb-component-relative-paths/ts/{ => src}/app/some.component.html (100%) rename public/docs/_examples/cb-component-relative-paths/ts/{ => src}/app/some.component.ts (100%) rename public/docs/_examples/cb-component-relative-paths/ts/{ => src}/index.html (89%) rename public/docs/_examples/{cb-component-communication/ts/app => cb-component-relative-paths/ts/src}/main.ts (74%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/app-routing.module.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/date-logger.service.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/hero-bio.component.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/hero-bios.component.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/hero-cache.service.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/hero-contact.component.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/hero-data.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/hero-of-the-month.component.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/hero.service.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/highlight.directive.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/logger.service.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/parent-finder.component.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/runners-up.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/sorted-heroes.component.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/user-context.service.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/app/user.service.ts (100%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/index.html (90%) rename public/docs/_examples/{cb-ajs-quick-reference/ts/app => cb-dependency-injection/ts/src}/main.ts (75%) rename public/docs/_examples/cb-dependency-injection/ts/{ => src}/sample.css (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/app/ad-banner.component.ts (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/app/ad-item.ts (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/app/ad.component.ts (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/app/ad.directive.ts (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/app/ad.service.ts (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/app/hero-job-ad.component.ts (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/app/hero-profile.component.ts (100%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/index.html (90%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{app => src}/main.ts (71%) rename public/docs/_examples/cb-dynamic-component-loader/ts/{ => src}/sample.css (100%) delete mode 100644 public/docs/_examples/cb-dynamic-form/ts/app/main.ts rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/dynamic-form-question.component.html (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/dynamic-form-question.component.ts (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/dynamic-form.component.html (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/dynamic-form.component.ts (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/question-base.ts (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/question-control.service.ts (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/question-dropdown.ts (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/question-textbox.ts (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/app/question.service.ts (100%) rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/index.html (90%) create mode 100644 public/docs/_examples/cb-dynamic-form/ts/src/main.ts rename public/docs/_examples/cb-dynamic-form/ts/{ => src}/sample.css (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/reactive/hero-form-reactive.component.html (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/reactive/hero-form-reactive.component.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/reactive/hero-form-reactive.module.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/shared/forbidden-name.directive.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/shared/hero.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/shared/shared.module.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/shared/submitted.component.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/template/hero-form-template.module.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/template/hero-form-template1.component.html (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/template/hero-form-template1.component.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/template/hero-form-template2.component.html (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/app/template/hero-form-template2.component.ts (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/forms.css (100%) rename public/docs/_examples/cb-form-validation/ts/{ => src}/index.html (91%) rename public/docs/_examples/cb-form-validation/ts/{app => src}/main.ts (75%) rename public/docs/_examples/cb-i18n/ts/{ => src}/app/app.component.1.html (100%) rename public/docs/_examples/cb-i18n/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/cb-i18n/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-i18n/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-i18n/ts/{ => src}/app/i18n-providers.ts (100%) rename public/docs/_examples/cb-i18n/ts/{ => src}/index.html (92%) rename public/docs/_examples/cb-i18n/ts/{ => src}/locale/messages.es.xlf (100%) rename public/docs/_examples/cb-i18n/ts/{ => src}/locale/messages.es.xlf.html (100%) rename public/docs/_examples/cb-i18n/ts/{app => src}/main.1.ts (75%) rename public/docs/_examples/cb-i18n/ts/{app => src}/main.ts (68%) rename public/docs/_examples/cb-i18n/ts/{ => src}/systemjs-text-plugin.js (100%) rename public/docs/_examples/cb-set-document-title/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/cb-set-document-title/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/cb-set-document-title/ts/{ => src}/index.html (96%) rename public/docs/_examples/{homepage-tabs/ts/app => cb-set-document-title/ts/src}/main.ts (75%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/.babelrc (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/app.component.es6 (96%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/app.component.html (96%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/app.module.es6 (97%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/confirm.component.es6 (95%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/confirm.component.html (94%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/data.service.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero-di-inject-additional.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero-di-inject.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero-di.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/{ts/app/hero-host-meta.component.ts => js-es6-decorators/src/app/hero-host-meta.component.es6} (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero-host.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero-io.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero-lifecycle.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero-queries.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero-title.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero-title.component.html (96%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/app/hero.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6-decorators/{ => src}/index.html (89%) rename public/docs/_examples/cb-ts-to-js/{js-es6/app => js-es6-decorators/src}/main.es6 (73%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/.babelrc (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/app.component.es6 (95%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/app.component.html (96%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/app.module.es6 (97%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/confirm.component.es6 (94%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/confirm.component.html (94%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/data.service.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero-di-inject-additional.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero-di-inject.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero-di.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero-host.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero-io.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero-lifecycle.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero-queries.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero-title.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero-title.component.html (96%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/app/hero.component.es6 (100%) rename public/docs/_examples/cb-ts-to-js/js-es6/{ => src}/index.html (89%) rename public/docs/_examples/cb-ts-to-js/{js-es6-decorators/app => js-es6/src}/main.es6 (73%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/app.component.html (96%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/app.component.js (95%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/app.module.js (97%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/confirm.component.html (94%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/confirm.component.js (95%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/data.service.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-di-inject-additional.component.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-di-inject.component.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-di.component.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-host.component.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-io-dsl.component.html (97%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-io.component.html (97%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-io.component.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-lifecycle.component.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-queries.component.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-title.component.html (96%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero-title.component.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/app/hero.component.js (100%) rename public/docs/_examples/cb-ts-to-js/js/{ => src}/index.html (97%) rename public/docs/_examples/cb-ts-to-js/js/{app => src}/main.js (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/app.component.html (96%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/app.component.ts (96%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/app.module.ts (97%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/confirm.component.html (94%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/confirm.component.ts (95%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/data.service.ts (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero-di-inject-additional.component.ts (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero-di-inject.component.ts (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero-di.component.ts (100%) rename public/docs/_examples/cb-ts-to-js/{js-es6-decorators/app/hero-host-meta.component.es6 => ts/src/app/hero-host-meta.component.ts} (95%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero-host.component.ts (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero-io.component.ts (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero-lifecycle.component.ts (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero-queries.component.ts (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero-title.component.html (96%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero-title.component.ts (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/app/hero.component.ts (100%) rename public/docs/_examples/cb-ts-to-js/ts/{ => src}/index.html (88%) rename public/docs/_examples/cb-ts-to-js/ts/{app => src}/main.ts (73%) create mode 100644 public/docs/_examples/cli-quickstart/ts/bs-config.cli.json delete mode 100644 public/docs/_examples/component-styles/ts/app/main.ts rename public/docs/_examples/component-styles/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/hero-app-main.component.ts (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/hero-app.component.ts (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/hero-controls.component.ts (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/hero-details-box.css (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/hero-details.component.css (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/hero-details.component.ts (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/hero-team.component.css (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/hero-team.component.ts (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/quest-summary.component.css (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/quest-summary.component.html (100%) rename public/docs/_examples/component-styles/ts/{ => src}/app/quest-summary.component.ts (100%) rename public/docs/_examples/component-styles/ts/{ => src}/index.html (91%) create mode 100644 public/docs/_examples/component-styles/ts/src/main.ts rename public/docs/_examples/dependency-injection/ts/{ => src}/app/app.component.1.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/app.component.2.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/app.config.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/car/car-creations.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/car/car-factory.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/car/car-injector.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/car/car-no-di.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/car/car.component.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/car/car.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/hero-list.component.1.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/hero-list.component.2.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/hero-list.component.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/hero.service.1.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/hero.service.2.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/hero.service.provider.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/hero.service.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/hero.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/heroes.component.1.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/heroes.component.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/heroes/mock-heroes.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/injector.component.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/logger.service.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/providers.component.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/test.component.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/app/user.service.ts (100%) rename public/docs/_examples/dependency-injection/ts/{ => src}/index.html (89%) rename public/docs/_examples/dependency-injection/ts/{app => src}/main.ts (75%) rename public/docs/_examples/deployment/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/deployment/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/deployment/ts/{ => src}/app/crisis-list.component.ts (100%) rename public/docs/_examples/deployment/ts/{ => src}/app/hero-list.component.ts (100%) rename public/docs/_examples/deployment/ts/{ => src}/index.html (90%) rename public/docs/_examples/deployment/ts/{app => src}/main.ts (89%) rename public/docs/_examples/deployment/ts/{ => src}/systemjs.config.server.js (100%) rename public/docs/_examples/displaying-data/ts/{ => src}/app/app-ctor.component.ts (100%) rename public/docs/_examples/displaying-data/ts/{ => src}/app/app.component.1.ts (100%) rename public/docs/_examples/displaying-data/ts/{ => src}/app/app.component.2.ts (100%) rename public/docs/_examples/displaying-data/ts/{ => src}/app/app.component.3.ts (100%) rename public/docs/_examples/displaying-data/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/displaying-data/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/displaying-data/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/displaying-data/ts/{ => src}/index.html (89%) rename public/docs/_examples/{cb-set-document-title/ts/app => displaying-data/ts/src}/main.ts (75%) rename public/docs/_examples/forms/js/{ => src}/app/app.component.js (100%) rename public/docs/_examples/forms/js/{ => src}/app/app.module.js (100%) rename public/docs/_examples/forms/js/{ => src}/app/hero-form.component.html (100%) rename public/docs/_examples/forms/js/{ => src}/app/hero-form.component.js (100%) rename public/docs/_examples/forms/js/{ => src}/app/hero.js (100%) rename public/docs/_examples/forms/js/{ => src}/forms.css (100%) rename public/docs/_examples/forms/js/{ => src}/index.html (97%) rename public/docs/_examples/forms/js/{app => src}/main.js (100%) delete mode 100644 public/docs/_examples/forms/ts/app/main.ts rename public/docs/_examples/forms/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/forms/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/forms/ts/{ => src}/app/hero-form.component.html (100%) rename public/docs/_examples/forms/ts/{ => src}/app/hero-form.component.ts (100%) rename public/docs/_examples/forms/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/forms/ts/{ => src}/forms.css (100%) rename public/docs/_examples/forms/ts/{ => src}/index.html (92%) create mode 100644 public/docs/_examples/forms/ts/src/main.ts delete mode 100644 public/docs/_examples/hierarchical-dependency-injection/ts/app/main.ts rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/app.component.ts (97%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/car.components.ts (95%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/car.services.ts (95%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/hero-tax-return.component.css (96%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/hero-tax-return.component.html (96%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/hero-tax-return.component.ts (96%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/hero-tax-return.service.ts (100%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/heroes-list.component.ts (100%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/heroes.service.ts (100%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/villains-list.component.html (95%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/villains-list.component.ts (96%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/app/villains.service.ts (95%) rename public/docs/_examples/hierarchical-dependency-injection/ts/{ => src}/index.html (88%) create mode 100644 public/docs/_examples/hierarchical-dependency-injection/ts/src/main.ts delete mode 100644 public/docs/_examples/homepage-hello-world/ts/app/main.ts rename public/docs/_examples/homepage-hello-world/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/homepage-hello-world/ts/{ => src}/app/hello_world.html (100%) rename public/docs/_examples/homepage-hello-world/ts/{ => src}/app/hello_world.ts (100%) rename public/docs/_examples/homepage-hello-world/ts/{ => src}/index.1.html (91%) rename public/docs/_examples/homepage-hello-world/ts/{ => src}/index.html (90%) create mode 100644 public/docs/_examples/homepage-hello-world/ts/src/main.ts delete mode 100644 public/docs/_examples/homepage-hello-world/ts/systemjs.config.1.js rename public/docs/_examples/homepage-tabs/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/homepage-tabs/ts/{ => src}/app/di_demo.ts (100%) rename public/docs/_examples/homepage-tabs/ts/{ => src}/app/ui_tabs.ts (100%) rename public/docs/_examples/homepage-tabs/ts/{ => src}/index.1.html (92%) rename public/docs/_examples/homepage-tabs/ts/{ => src}/index.html (91%) rename public/docs/_examples/{displaying-data/ts/app => homepage-tabs/ts/src}/main.ts (75%) delete mode 100644 public/docs/_examples/homepage-tabs/ts/systemjs.config.1.js delete mode 100644 public/docs/_examples/homepage-todo/ts/app/main.ts rename public/docs/_examples/homepage-todo/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/homepage-todo/ts/{ => src}/app/todo.ts (100%) rename public/docs/_examples/homepage-todo/ts/{ => src}/app/todo_app.ts (100%) rename public/docs/_examples/homepage-todo/ts/{ => src}/app/todo_form.ts (100%) rename public/docs/_examples/homepage-todo/ts/{ => src}/app/todo_list.ts (100%) rename public/docs/_examples/homepage-todo/ts/{ => src}/index.1.html (92%) rename public/docs/_examples/homepage-todo/ts/{ => src}/index.html (91%) create mode 100644 public/docs/_examples/homepage-todo/ts/src/main.ts delete mode 100644 public/docs/_examples/homepage-todo/ts/systemjs.config.1.js delete mode 100644 public/docs/_examples/lifecycle-hooks/ts/app/main.ts rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/after-content.component.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/after-view.component.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/counter.component.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/do-check-parent.component.html (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/do-check.component.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/logger.service.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/on-changes-parent.component.html (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/on-changes.component.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/peek-a-boo-parent.component.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/peek-a-boo.component.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/spy.component.html (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/spy.component.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/app/spy.directive.ts (100%) rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/index.html (89%) create mode 100644 public/docs/_examples/lifecycle-hooks/ts/src/main.ts rename public/docs/_examples/lifecycle-hooks/ts/{ => src}/sample.css (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app-routing.module.3.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app-routing.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.component.0.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.component.1.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.component.1b.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.component.2.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.component.3.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.module.0.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.module.1.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.module.1b.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.module.2.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.module.3.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/awesome.pipe.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact-routing.module.3.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact-routing.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact.component.3.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact.component.css (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact.component.html (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact.component.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact.module.2.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact.module.3.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/contact.service.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/contact/highlight.directive.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/core/core.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/core/title.component.html (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/core/title.component.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/core/user.service.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/crisis/crisis-detail.component.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/crisis/crisis-list.component.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/crisis/crisis-routing.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/crisis/crisis.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/crisis/crisis.service.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/hero-detail.component.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/hero-list.component.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/hero-routing.module.3.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/hero-routing.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/hero.component.3.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/hero.component.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/hero.module.3.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/hero.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/hero.service.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/hero/highlight.directive.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/highlight.directive.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/shared/awesome.pipe.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/shared/highlight.directive.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/shared/shared.module.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/title.component.html (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/title.component.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/app/user.service.ts (100%) rename public/docs/_examples/ngmodule/ts/{ => src}/index.0.html (88%) rename public/docs/_examples/ngmodule/ts/{ => src}/index.1.html (88%) rename public/docs/_examples/ngmodule/ts/{ => src}/index.1b.html (88%) rename public/docs/_examples/ngmodule/ts/{ => src}/index.2.html (88%) rename public/docs/_examples/ngmodule/ts/{ => src}/index.3.html (88%) rename public/docs/_examples/ngmodule/ts/{ => src}/index.html (88%) rename public/docs/_examples/ngmodule/ts/{app => src}/main-static.ts (83%) rename public/docs/_examples/ngmodule/ts/{app => src}/main.0.ts (68%) rename public/docs/_examples/ngmodule/ts/{app => src}/main.1.ts (68%) rename public/docs/_examples/ngmodule/ts/{app => src}/main.1b.ts (68%) rename public/docs/_examples/ngmodule/ts/{app => src}/main.2.ts (68%) rename public/docs/_examples/ngmodule/ts/{app => src}/main.3.ts (68%) rename public/docs/_examples/ngmodule/ts/{app => src}/main.ts (83%) delete mode 100644 public/docs/_examples/pipes/ts/app/main.ts rename public/docs/_examples/pipes/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/exponential-strength.pipe.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/fetch-json.pipe.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/flying-heroes-impure.component.html (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/flying-heroes.component.html (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/flying-heroes.component.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/flying-heroes.pipe.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/hero-async-message.component.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/hero-birthday1.component.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/hero-birthday2.component.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/hero-list.component.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/heroes.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/power-boost-calculator.component.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/app/power-booster.component.ts (100%) rename public/docs/_examples/pipes/ts/{ => src}/heroes.json (100%) rename public/docs/_examples/pipes/ts/{ => src}/index.html (88%) create mode 100644 public/docs/_examples/pipes/ts/src/main.ts create mode 100644 public/docs/_examples/quickstart/js/bs-config.1.json delete mode 100644 public/docs/_examples/quickstart/js/spec.js rename public/docs/_examples/quickstart/js/{ => src}/app/app.component.js (100%) rename public/docs/_examples/quickstart/js/{ => src}/app/app.module.js (100%) rename public/docs/_examples/quickstart/js/{ => src}/index.html (97%) rename public/docs/_examples/quickstart/js/{app => src}/main.js (100%) rename public/docs/_examples/quickstart/js/{ => src}/styles.1.css (100%) create mode 100644 public/docs/_examples/quickstart/ts/bs-config.1.json rename public/docs/_examples/quickstart/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/quickstart/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/quickstart/ts/{ => src}/index.html (92%) rename public/docs/_examples/{cb-component-relative-paths/ts/app => quickstart/ts/src}/main.ts (74%) rename public/docs/_examples/quickstart/ts/{ => src}/tsconfig.1.json (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/app.component.1.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/data-model.ts (94%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/demo.component.html (96%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/demo.component.ts (95%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/demo.module.ts (97%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-1.component.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-1.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-2.component.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-2.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-3.component.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-3.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-3a.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-4.component.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-4.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-5.component.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-5.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-6.component.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-6.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-7.component.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-7.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-8.component.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail-8.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail.component.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-detail.component.ts (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-list.component.1.html (96%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-list.component.html (96%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero-list.component.ts (96%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/hero.service.ts (96%) rename public/docs/_examples/reactive-forms/ts/{ => src}/app/main-final.ts (97%) rename public/docs/_examples/reactive-forms/ts/{ => src}/index-final.html (100%) rename public/docs/_examples/reactive-forms/ts/{ => src}/index.html (91%) rename public/docs/_examples/reactive-forms/ts/{app => src}/main.ts (57%) delete mode 100644 public/docs/_examples/router/ts/app/main.ts rename public/docs/_examples/router/ts/{ => src}/app/admin/admin-dashboard.component.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/admin/admin-dashboard.component.2.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/admin/admin-dashboard.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/admin/admin-routing.module.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/admin/admin-routing.module.2.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/admin/admin-routing.module.3.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/admin/admin-routing.module.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/admin/admin.component.ts (100%) mode change 100755 => 100644 rename public/docs/_examples/router/ts/{ => src}/app/admin/admin.module.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/admin/manage-crises.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/admin/manage-heroes.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/animations.ts (96%) rename public/docs/_examples/router/ts/{ => src}/app/app-routing.module.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app-routing.module.2.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app-routing.module.3.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app-routing.module.4.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app-routing.module.5.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app-routing.module.6.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app-routing.module.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.component.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.component.2.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.component.3.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.component.4.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.component.5.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.module.0.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.module.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.module.2.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.module.3.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.module.4.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.module.5.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.module.6.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.module.7.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/auth-guard.service.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/auth-guard.service.2.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/auth-guard.service.3.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/auth-guard.service.4.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/auth-guard.service.ts (100%) mode change 100755 => 100644 rename public/docs/_examples/router/ts/{ => src}/app/auth.service.ts (100%) mode change 100755 => 100644 rename public/docs/_examples/router/ts/{ => src}/app/can-deactivate-guard.service.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/can-deactivate-guard.service.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/compose-message.component.html (95%) rename public/docs/_examples/router/ts/{ => src}/app/compose-message.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-center-home.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-center-routing.module.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-center-routing.module.2.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-center-routing.module.3.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-center-routing.module.4.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-center-routing.module.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-center.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-center.module.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-center.module.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-detail-resolver.service.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-detail.component.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-detail.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-list.component.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis-list.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-center/crisis.service.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/crisis-list.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/dialog.service.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/hero-list.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/heroes/hero-detail.component.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/heroes/hero-detail.component.2.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/heroes/hero-detail.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/heroes/hero-list.component.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/heroes/hero-list.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/heroes/hero.service.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/heroes/heroes-routing.module.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/heroes/heroes.module.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/login-routing.module.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/login.component.1.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/login.component.ts (100%) mode change 100755 => 100644 rename public/docs/_examples/router/ts/{ => src}/app/not-found.component.ts (100%) rename public/docs/_examples/router/ts/{ => src}/app/selective-preloading-strategy.ts (100%) rename public/docs/_examples/router/ts/{ => src}/index.html (96%) create mode 100644 public/docs/_examples/router/ts/src/main.ts delete mode 100644 public/docs/_examples/security/ts/app/main.ts rename public/docs/_examples/security/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/security/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/security/ts/{ => src}/app/bypass-security.component.html (100%) rename public/docs/_examples/security/ts/{ => src}/app/bypass-security.component.ts (100%) rename public/docs/_examples/security/ts/{ => src}/app/inner-html-binding.component.html (100%) rename public/docs/_examples/security/ts/{ => src}/app/inner-html-binding.component.ts (100%) rename public/docs/_examples/security/ts/{ => src}/index.html (89%) create mode 100644 public/docs/_examples/security/ts/src/main.ts delete mode 100644 public/docs/_examples/server-communication/ts/app/main.ts rename public/docs/_examples/server-communication/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/app.module.1.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/default-request-options.service.ts (96%) rename public/docs/_examples/server-communication/ts/{ => src}/app/hero-data.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/heroes.json (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/toh/hero-list.component.html (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/toh/hero-list.component.promise.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/toh/hero-list.component.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/toh/hero.service.promise.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/toh/hero.service.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/toh/hero.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/wiki/wiki-smart.component.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/wiki/wiki.component.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/wiki/wikipedia.service.1.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/app/wiki/wikipedia.service.ts (100%) rename public/docs/_examples/server-communication/ts/{ => src}/index.html (89%) create mode 100644 public/docs/_examples/server-communication/ts/src/main.ts delete mode 100644 public/docs/_examples/setup/ts/app/main.ts rename public/docs/_examples/setup/ts/{ => src}/app/app.component.spec.ts (100%) rename public/docs/_examples/setup/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/setup/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/setup/ts/{ => src}/index.html (90%) create mode 100644 public/docs/_examples/setup/ts/src/main.ts rename public/docs/_examples/setup/ts/{ => src}/quickstart-specs.html (93%) rename public/docs/_examples/setup/ts/{ => src}/systemjs.config.extras.js (100%) delete mode 100644 public/docs/_examples/setup/ts/systemjs.config.extras.web.js delete mode 100644 public/docs/_examples/structural-directives/ts/app/main.ts rename public/docs/_examples/structural-directives/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/structural-directives/ts/{ => src}/app/heavy-loader.component.ts (100%) rename public/docs/_examples/structural-directives/ts/{ => src}/app/structural-directives.component.html (100%) rename public/docs/_examples/structural-directives/ts/{ => src}/app/structural-directives.component.ts (100%) rename public/docs/_examples/structural-directives/ts/{ => src}/app/unless.directive.ts (100%) rename public/docs/_examples/structural-directives/ts/{ => src}/index.html (89%) create mode 100644 public/docs/_examples/structural-directives/ts/src/main.ts rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/app.component.css (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/heroes/hero.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/heroes/heroes.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/heroes/shared/hero.model.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/heroes/shared/hero.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/heroes/shared/mock-heroes.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/01-01/main.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-05/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-05/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-05/main.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-07/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-07/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-07/app/heroes/hero.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-07/app/heroes/hero.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-07/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-07/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-07/app/users/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-07/app/users/users.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-07/app/users/users.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-08/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-08/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-08/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-08/app/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-08/app/shared/input-highlight.directive.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-08/app/shared/validate.directive.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/02-08/app/shared/validate.directive.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-01/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-01/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-01/app/core/exception.service.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-01/app/core/exception.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-01/app/core/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-01/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-02/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-02/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-02/app/core/data.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-02/app/core/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-02/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-03/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-03/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-03/app/core/hero-collector.service.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-03/app/core/hero-collector.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-03/app/core/hero.model.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-03/app/core/hero.model.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-03/app/core/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-03/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-04/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-04/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-04/app/core/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-04/app/core/toast.service.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-04/app/core/toast.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-04/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/app.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/core/exception.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/core/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/core/spinner/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/core/spinner/spinner.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/core/spinner/spinner.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/core/toast/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/core/toast/toast.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/core/toast/toast.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/heroes/shared/hero.model.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/heroes/shared/hero.service.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/heroes/shared/hero.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/03-06/app/shared/toast/toast.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-08/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-08/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-08/app/heroes/heroes.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-08/app/heroes/heroes.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-10/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-10/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-10/app/heroes/heroes.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-10/app/heroes/heroes.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-10/app/shared/filter-text/filter-text.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-10/app/shared/filter-text/filter-text.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-10/app/shared/init-caps.pipe.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-10/app/shared/shared.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/core.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/logger.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/nav/nav.component.css (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/nav/nav.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/nav/nav.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/spinner/spinner.component.css (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/spinner/spinner.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/spinner/spinner.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/core/spinner/spinner.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/heroes/heroes.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-11/app/heroes/heroes.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/core/core.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/core/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/core/logger.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/core/module-import-guard.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/core/nav/nav.component.css (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/core/nav/nav.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/core/nav/nav.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/heroes/heroes.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/04-12/app/heroes/heroes.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/app.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/heroes/shared/hero-button/hero-button.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/heroes/shared/hero-button/hero-button.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/heroes/shared/hero-button/hero-button.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/heroes/shared/hero-button/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-02/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/app.component.avoid.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/app.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/heroes/shared/hero-button/hero-button.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/heroes/shared/hero-button/hero-button.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/heroes/shared/hero-button/hero-button.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/heroes/shared/hero-button/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-03/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/heroes/heroes.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/heroes/heroes.component.css (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/heroes/heroes.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/heroes/heroes.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/heroes/shared/hero.model.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/heroes/shared/hero.service.ts (96%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-04/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-12/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-12/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-12/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-12/app/heroes/shared/hero-button/hero-button.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-12/app/heroes/shared/hero-button/hero-button.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-12/app/heroes/shared/hero-button/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-12/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-12/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/app.component.avoid.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/app.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/heroes/shared/hero-button/hero-button.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/heroes/shared/hero-button/hero-button.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/heroes/shared/hero-button/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/heroes/shared/hero-highlight.directive.ts (96%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-13/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-14/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-14/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-14/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-14/app/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-14/app/shared/toast/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-14/app/shared/toast/toast.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-14/app/shared/toast/toast.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/heroes/hero-list/hero-list.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/heroes/hero-list/hero-list.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/heroes/hero-list/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/heroes/shared/hero.model.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/heroes/shared/hero.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-15/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-16/app/app.component.avoid.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-16/app/app.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-16/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-16/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-16/app/heroes/hero.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-16/app/heroes/hero.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-16/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-16/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/heroes/hero-list/hero-list.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/heroes/hero-list/hero-list.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/heroes/hero-list/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/heroes/hero/hero.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/heroes/hero/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/heroes/shared/hero.model.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/05-17/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-01/app/app.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-01/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-01/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-01/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-01/app/shared/highlight.directive.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-01/app/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-03/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-03/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-03/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-03/app/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-03/app/shared/validator.directive.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/06-03/app/shared/validator2.directive.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-01/app/app.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-01/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-01/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-01/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-01/app/heroes/shared/hero.model.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-01/app/heroes/shared/hero.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-01/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-01/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-03/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-03/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-03/app/heroes/hero-list/hero-list.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-03/app/heroes/hero-list/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-03/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-03/app/heroes/shared/hero.model.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-03/app/heroes/shared/hero.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-03/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-03/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-04/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-04/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-04/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-04/app/heroes/shared/hero-arena.service.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-04/app/heroes/shared/hero-arena.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-04/app/heroes/shared/hero.model.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-04/app/heroes/shared/hero.service.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-04/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/07-04/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/09-01/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/09-01/app/app.module.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/09-01/app/heroes/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/09-01/app/heroes/shared/hero-button/hero-button.component.avoid.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/09-01/app/heroes/shared/hero-button/hero-button.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/09-01/app/heroes/shared/hero-button/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/09-01/app/heroes/shared/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/09-01/app/index.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/style-guide/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/app/app.routes.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/app/hero-data.ts (100%) rename public/docs/_examples/style-guide/ts/{ => src}/index.html (90%) rename public/docs/_examples/style-guide/ts/{app => src}/main.ts (51%) rename public/docs/_examples/style-guide/ts/{ => src}/systemjs.custom.js (100%) rename public/docs/_examples/styleguide/js/{ => src}/app.js (100%) rename public/docs/_examples/styleguide/js/{ => src}/index.html (100%) delete mode 100644 public/docs/_examples/styleguide/ts/app/main.ts rename public/docs/_examples/styleguide/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/styleguide/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/styleguide/ts/{ => src}/index.html (89%) create mode 100644 public/docs/_examples/styleguide/ts/src/main.ts rename public/docs/_examples/template-syntax/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/app/app.module.1.ts (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/app/click.directive.ts (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/app/hero-detail.component.ts (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/app/sizer.component.ts (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/images/hero.png (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/images/ng-logo.png (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/images/villain.png (100%) rename public/docs/_examples/template-syntax/ts/{ => src}/index.html (89%) rename public/docs/_examples/template-syntax/ts/{app => src}/main.ts (74%) rename public/docs/_examples/template-syntax/ts/{ => src}/template-syntax.css (100%) create mode 100644 public/docs/_examples/testing/ts/.gitignore rename public/docs/_examples/testing/ts/{ => src}/1st-specs.html (100%) rename public/docs/_examples/testing/ts/{ => src}/app-specs.html (100%) rename public/docs/_examples/testing/ts/{ => src}/app/1st.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/about.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/about.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/app-routing.module.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/testing/ts/{ => src}/app/app.component.router.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/app.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/bag/async-helper.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/bag/bag-external-template.html (100%) rename public/docs/_examples/testing/ts/{ => src}/app/bag/bag-main.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/bag/bag.no-testbed.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/bag/bag.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/bag/bag.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/banner-inline.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/banner-inline.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/banner.component.css (97%) rename public/docs/_examples/testing/ts/{ => src}/app/banner.component.detect-changes.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/banner.component.html (95%) rename public/docs/_examples/testing/ts/{ => src}/app/banner.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/banner.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard-hero.component.css (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard-hero.component.html (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard-hero.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard-hero.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard.component.css (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard.component.html (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard.component.no-testbed.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/dashboard/dashboard.module.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-detail.component.css (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-detail.component.html (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-detail.component.no-testbed.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-detail.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-detail.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-detail.service.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-list.component.css (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-list.component.html (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-list.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-list.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero-routing.module.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/hero/hero.module.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/hero.service.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/hero.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/hero.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/http-hero.service.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/http-hero.service.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/index.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/test-heroes.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/testing/fake-hero.service.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/testing/index.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/model/user.service.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/highlight.directive.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/highlight.directive.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/shared.module.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/title-case.pipe.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/title-case.pipe.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/twain.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/twain.component.timer.spec.ts.no-work (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/twain.component.timer.ts.no-work (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/twain.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/shared/twain.service.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/welcome.component.spec.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/app/welcome.component.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/bag-specs.html (100%) rename public/docs/_examples/testing/ts/{ => src}/bag.html (100%) rename public/docs/_examples/testing/ts/{ => src}/banner-inline-specs.html (100%) rename public/docs/_examples/testing/ts/{ => src}/banner-specs.html (100%) rename public/docs/_examples/testing/ts/{ => src}/browser-test-shim.js (100%) rename public/docs/_examples/testing/ts/{ => src}/index.html (89%) rename public/docs/_examples/testing/ts/{app => src}/main.ts (72%) rename public/docs/_examples/testing/ts/{ => src}/systemjs.config.extras.js (100%) rename public/docs/_examples/testing/ts/{ => src}/testing/index.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/testing/jasmine-matchers.d.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/testing/jasmine-matchers.ts (100%) rename public/docs/_examples/testing/ts/{ => src}/testing/router-stubs.ts (100%) delete mode 100644 public/docs/_examples/testing/ts/systemjs.config.extras.web.js rename public/docs/_examples/toh-1/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/toh-1/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/{toh-3/ts => toh-1/ts/src}/index.html (88%) rename public/docs/_examples/toh-1/ts/{app => src}/main.ts (77%) rename public/docs/_examples/toh-2/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/toh-2/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/toh-2/ts/{ => src}/index.html (88%) rename public/docs/_examples/toh-2/ts/{app => src}/main.ts (77%) rename public/docs/_examples/toh-3/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/toh-3/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/toh-3/ts/{ => src}/app/hero-detail.component.ts (100%) rename public/docs/_examples/toh-3/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/{toh-1/ts => toh-3/ts/src}/index.html (88%) rename public/docs/_examples/toh-3/ts/{app => src}/main.ts (78%) delete mode 100644 public/docs/_examples/toh-4/ts/app/main.ts rename public/docs/_examples/toh-4/ts/{ => src}/app/app.component.1.ts (100%) rename public/docs/_examples/toh-4/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/toh-4/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/toh-4/ts/{ => src}/app/hero-detail.component.ts (100%) rename public/docs/_examples/toh-4/ts/{ => src}/app/hero.service.1.ts (100%) rename public/docs/_examples/toh-4/ts/{ => src}/app/hero.service.2.ts (100%) rename public/docs/_examples/toh-4/ts/{ => src}/app/hero.service.ts (100%) rename public/docs/_examples/toh-4/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/toh-4/ts/{ => src}/app/mock-heroes.ts (100%) rename public/docs/_examples/toh-4/ts/{ => src}/index.html (88%) rename public/docs/_examples/toh-4/ts/{app => src}/main.1.ts (73%) create mode 100644 public/docs/_examples/toh-4/ts/src/main.ts rename public/docs/_examples/toh-5/ts/{ => src}/app/app-routing.module.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/app.component.1.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/app.component.css (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/app.module.1.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/app.module.2.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/app.module.3.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/dashboard.component.1.html (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/dashboard.component.1.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/dashboard.component.css (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/dashboard.component.html (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/dashboard.component.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/hero-detail.component.1.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/hero-detail.component.css (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/hero-detail.component.html (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/hero-detail.component.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/hero.service.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/heroes.component.css (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/heroes.component.html (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/heroes.component.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/app/mock-heroes.ts (100%) rename public/docs/_examples/toh-5/ts/{ => src}/index.html (91%) rename public/docs/_examples/toh-5/ts/{app => src}/main.ts (78%) delete mode 100644 public/docs/_examples/toh-6/ts/aot/bs-config.json create mode 100644 public/docs/_examples/toh-6/ts/aot/styles.css delete mode 100644 public/docs/_examples/toh-6/ts/app/main.ts create mode 100644 public/docs/_examples/toh-6/ts/bs-config.aot.json rename public/docs/_examples/toh-6/ts/{ => src}/app/app-routing.module.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/app.component.css (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/dashboard.component.css (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/dashboard.component.html (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/dashboard.component.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/hero-detail.component.css (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/hero-detail.component.html (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/hero-detail.component.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/hero-search.component.css (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/hero-search.component.html (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/hero-search.component.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/hero-search.service.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/hero.service.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/heroes.component.css (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/heroes.component.html (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/heroes.component.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/app/in-memory-data.service.ts (100%) rename public/docs/_examples/toh-6/ts/{ => src}/index.html (88%) rename public/docs/_examples/toh-6/ts/{app => src}/main-aot.ts (65%) create mode 100644 public/docs/_examples/toh-6/ts/src/main.ts delete mode 100644 public/docs/_examples/typings.json rename public/docs/_examples/upgrade-module/ts/{ => src}/app/a-to-ajs-providers/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/a-to-ajs-providers/hero-detail.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/a-to-ajs-providers/heroes.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/a-to-ajs-transclusion/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/a-to-ajs-transclusion/container.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/a-to-ajs-transclusion/hero-detail.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/ajs-a-hybrid-bootstrap/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/ajs-bootstrap/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/ajs-ng-app/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/ajs-to-a-projection/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/ajs-to-a-projection/hero-detail.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/ajs-to-a-projection/main.controller.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/ajs-to-a-providers/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/ajs-to-a-providers/hero-detail.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/ajs-to-a-providers/heroes.service.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/downgrade-io/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/downgrade-io/hero-detail.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/downgrade-io/main.controller.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/downgrade-static/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/downgrade-static/hero-detail.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/hero-detail.directive.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/hero.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/upgrade-io/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/upgrade-io/container.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/upgrade-io/hero-detail.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/upgrade-static/app.module.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/upgrade-static/container.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/app/upgrade-static/hero-detail.component.ts (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-a-to-ajs-providers.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-a-to-ajs-transclusion.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-ajs-a-hybrid-bootstrap.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-ajs-to-a-projection.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-ajs-to-a-providers.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-bootstrap.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-downgrade-io.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-downgrade-static.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-ng-app.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-upgrade-io.html (100%) rename public/docs/_examples/upgrade-module/ts/{ => src}/index-upgrade-static.html (100%) rename public/docs/_examples/{_boilerplate => upgrade-phonecat-1-typescript/ts}/tsconfig.json (100%) create mode 100644 public/docs/_examples/upgrade-phonecat-2-hybrid/ts/tsconfig.json create mode 100644 public/docs/_examples/upgrade-phonecat-3-final/ts/tsconfig.json delete mode 100644 public/docs/_examples/user-input/ts/app/main.ts rename public/docs/_examples/user-input/ts/{ => src}/app/app.component.html (100%) rename public/docs/_examples/user-input/ts/{ => src}/app/app.component.ts (100%) rename public/docs/_examples/user-input/ts/{ => src}/app/app.module.ts (100%) rename public/docs/_examples/user-input/ts/{ => src}/app/click-me.component.ts (100%) rename public/docs/_examples/user-input/ts/{ => src}/app/click-me2.component.ts (100%) rename public/docs/_examples/user-input/ts/{ => src}/app/keyup.components.ts (100%) rename public/docs/_examples/user-input/ts/{ => src}/app/little-tour.component.ts (100%) rename public/docs/_examples/user-input/ts/{ => src}/app/loop-back.component.ts (100%) rename public/docs/_examples/user-input/ts/{ => src}/index.html (89%) create mode 100644 public/docs/_examples/user-input/ts/src/main.ts rename public/docs/_examples/user-input/ts/{ => src}/user-input-styles.css (100%) create mode 100644 public/docs/_includes/_hover-card.jade diff --git a/.gitignore b/.gitignore index f94e8f4f3b..c327f2acf5 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,6 @@ eplnkr.html public/docs/*/latest/guide/cheatsheet.json protractor-results.txt link-checker-results.txt -*a2docs.css /dist /public/docs/dart /public/docs/ts/_cache diff --git a/gulpfile.js b/gulpfile.js index de899478ef..04b4bcbe3d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -84,26 +84,23 @@ var _excludeMatchers = _excludePatterns.map(function(excludePattern){ }); var _exampleBoilerplateFiles = [ - 'a2docs.css', + 'src/styles.css', + 'src/systemjs.config.js', + 'src/tsconfig.json', + 'bs-config.json', + 'bs-config.e2e.json', 'package.json', - 'styles.css', - 'systemjs.config.js', - 'tsconfig.json', 'tslint.json' ]; -var _exampleDartWebBoilerPlateFiles = ['a2docs.css', 'styles.css']; - var _exampleUnitTestingBoilerplateFiles = [ - 'browser-test-shim.js', + 'src/browser-test-shim.js', 'karma-test-shim.js', 'karma.conf.js' ]; var _exampleConfigFilename = 'example-config.json'; -var _styleLessName = 'a2docs.less'; - // Gulp flags: // // --lang=[all | ts | js | dart | 'ts|js' | 'ts|js|dart' | ...] @@ -182,21 +179,12 @@ function runE2e() { // fast; skip all setup promise = Promise.resolve(true); } else { - /* - // Not 'fast'; do full setup - var spawnInfo = spawnExt('npm', ['install'], { cwd: EXAMPLES_PATH}); - promise = spawnInfo.promise.then(function() { - copyExampleBoilerplate(); - spawnInfo = spawnExt('npm', ['run', 'webdriver:update'], {cwd: EXAMPLES_PATH}); - return spawnInfo.promise; - }); - */ // Not 'fast'; do full setup gutil.log('runE2e: install _examples stuff'); var spawnInfo = spawnExt('npm', ['install'], { cwd: EXAMPLES_PATH}); promise = spawnInfo.promise + .then(copyExampleBoilerplate) .then(function() { - buildStyles(copyExampleBoilerplate, _.noop); gutil.log('runE2e: update webdriver'); spawnInfo = spawnExt('npm', ['run', 'webdriver:update'], {cwd: EXAMPLES_PATH}); return spawnInfo.promise; @@ -283,8 +271,8 @@ function runE2eTsTests(appDir, outputFile) { } var config = { - build: exampleConfig.build || 'tsc', - run: exampleConfig.run || 'http-server:e2e' + build: exampleConfig.build || 'build', + run: exampleConfig.run || 'serve:e2e' }; var appBuildSpawnInfo = spawnExt('npm', ['run', config.build], { cwd: appDir }); @@ -350,7 +338,7 @@ function runProtractorAoT(appDir, outputFile) { promise = promise.then(() => spawnExt('node', [copyFileCmd], { cwd: appDir }).promise ); } - var aotRunSpawnInfo = spawnExt('npm', ['run', 'http-server:e2e', 'aot', '--', '-s'], { cwd: appDir }); + var aotRunSpawnInfo = spawnExt('npm', ['run', 'serve:aot'], { cwd: appDir }); return runProtractor(promise, appDir, aotRunSpawnInfo, outputFile); } @@ -364,7 +352,7 @@ function runE2eDartTests(appDir, outputFile) { gutil.log('AppDir for Dart e2e: ' + appDir); gutil.log('Deploying from: ' + deployDir); - var appRunSpawnInfo = spawnExt('npm', ['run', 'http-server:e2e', '--', deployDir, '-s'], { cwd: httpLaunchDir }); + var appRunSpawnInfo = spawnExt('npm', ['run', 'serve:e2e', '--', deployDir, '-s'], { cwd: httpLaunchDir }); if (!appRunSpawnInfo.proc.pid) { gutil.log('http-server failed to launch over ' + deployDir); return false; @@ -448,7 +436,7 @@ gulp.task('help', taskListing.withFilters(function(taskName) { })); // requires admin access because it adds symlinks -gulp.task('add-example-boilerplate', function(done) { +gulp.task('add-example-boilerplate', function() { var realPath = path.join(EXAMPLES_PATH, '/node_modules'); var nodeModulesPaths = excludeDartPaths(getNodeModulesPaths(EXAMPLES_PATH)); @@ -457,55 +445,31 @@ gulp.task('add-example-boilerplate', function(done) { fsUtils.addSymlink(realPath, linkPath); }); - return buildStyles(copyExampleBoilerplate, done); + return copyExampleBoilerplate(); }); // copies boilerplate files to locations // where an example app is found gulp.task('_copy-example-boilerplate', function (done) { - return argv.fast ? done() : buildStyles(copyExampleBoilerplate, done); + return argv.fast ? done() : copyExampleBoilerplate(); }); -//Builds Angular Docs CSS file from Bootstrap npm LESS source -//and copies the result to the _examples folder to be included as -//part of the example boilerplate. -function buildStyles(cb, done){ - gulp.src(path.join(STYLES_SOURCE_PATH, _styleLessName)) - .pipe(less()) - .pipe(gulp.dest(BOILERPLATE_PATH)).on('end', function(){ - cb().then(function() { done(); }); - }); -} - // copies boilerplate files to locations // where an example app is found // also copies certain web files (e.g., styles.css) to ~/_examples/**/dart/**/web function copyExampleBoilerplate() { gutil.log('Copying example boilerplate files'); - var sourceFiles = _exampleBoilerplateFiles.map(function(fn) { - return path.join(BOILERPLATE_PATH, fn); - }); var examplePaths = excludeDartPaths(getExamplePaths(EXAMPLES_PATH)); - var dartWebSourceFiles = _exampleDartWebBoilerPlateFiles.map(function(fn){ - return path.join(BOILERPLATE_PATH, fn); - }); - var dartExampleWebPaths = getDartExampleWebPaths(EXAMPLES_PATH); - // Make boilerplate files read-only to avoid that they be edited by mistake. var destFileMode = '444'; - return copyFiles(sourceFiles, examplePaths, destFileMode) - .then(function() { - return copyFiles(dartWebSourceFiles, dartExampleWebPaths, destFileMode); - }) + return copyFiles(_exampleBoilerplateFiles, BOILERPLATE_PATH, examplePaths, destFileMode) // copy the unit test boilerplate .then(function() { - var unittestSourceFiles = - _exampleUnitTestingBoilerplateFiles - .map(function(name) { return path.join(EXAMPLES_TESTING_PATH, name); }); var unittestPaths = getUnitTestingPaths(EXAMPLES_PATH); - return copyFiles(unittestSourceFiles, unittestPaths, destFileMode); + return copyFiles(_exampleUnitTestingBoilerplateFiles, + EXAMPLES_TESTING_PATH, unittestPaths, destFileMode); }) .catch(function(err) { gutil.log(err); @@ -582,9 +546,6 @@ function deleteExampleBoilerPlate() { var unittestPaths = getUnitTestingPaths(EXAMPLES_PATH); return deleteFiles(_exampleBoilerplateFiles, examplePaths) - .then(function() { - return deleteFiles(_exampleDartWebBoilerPlateFiles, dartExampleWebPaths); - }) .then(function() { return deleteFiles(_exampleUnitTestingBoilerplateFiles, unittestPaths); }); @@ -1053,15 +1014,15 @@ function harpJsonSetJade2NgTo(v) { // Copies fileNames into destPaths, setting the mode of the // files at the destination as optional_destFileMode if given. // returns a promise -function copyFiles(fileNames, destPaths, optional_destFileMode) { +function copyFiles(fileNames, originPath, destPaths, optional_destFileMode) { var copy = Q.denodeify(fsExtra.copy); var chmod = Q.denodeify(fsExtra.chmod); var copyPromises = []; destPaths.forEach(function(destPath) { fileNames.forEach(function(fileName) { - var baseName = path.basename(fileName); - var destName = path.join(destPath, baseName); - var p = copy(fileName, destName, { clobber: true}); + var originName = path.join(originPath, fileName); + var destName = path.join(destPath, fileName); + var p = copy(originName, destName, { clobber: true}); if(optional_destFileMode !== undefined) { p = p.then(function () { return chmod(destName, optional_destFileMode); diff --git a/public/_includes/_util-fns.jade b/public/_includes/_util-fns.jade index 0b1e00160d..7a755027c8 100644 --- a/public/_includes/_util-fns.jade +++ b/public/_includes/_util-fns.jade @@ -46,8 +46,8 @@ //- NgModule related - var _AppModuleVsAppComp = 'AppModule' -- var _appModuleTsVsAppCompTs = 'app/app.module.ts' -- var _appModuleTsVsMainTs = 'app/app.module.ts' +- var _appModuleTsVsAppCompTs = 'src/app/app.module.ts' +- var _appModuleTsVsMainTs = 'src/app/app.module.ts' - var _bootstrapModule = 'bootstrapModule' - var _declsVsDirectives = 'declarations' - var _moduleVsComp = 'module' diff --git a/public/docs/_examples/.gitignore b/public/docs/_examples/.gitignore index c1d5403c98..d3e14b4f54 100644 --- a/public/docs/_examples/.gitignore +++ b/public/docs/_examples/.gitignore @@ -1,22 +1,18 @@ -# _exampleBoilerplateFiles -.editorconfig -karma.conf.js -karma-test-shim.js -package.json -*/**/styles.css -systemjs.config.js -*/**/tsconfig.json -tslint.json -wallaby.js +# _boilerplate files +!_boilerplate/* +*/*/src/styles.css +*/*/src/systemjs.config.js +*/*/src/tsconfig.json +*/*/bs-config.e2e.json +*/*/bs-config.json +*/*/package.json +*/*/tslint.json +# example files _test-output +protractor-helpers.js +*/e2e-spec.js **/ts/**/*.js **/js-es6*/**/*.js **/ts-snippets/**/*.js -*.d.ts - -!**/*e2e-spec.js -!systemjs.config.1.js !**/systemjs.config.extras.js -!_boilerplate/* -_boilerplate/a2docs.css diff --git a/public/docs/_examples/_boilerplate/bs-config.e2e.json b/public/docs/_examples/_boilerplate/bs-config.e2e.json new file mode 100644 index 0000000000..24570dbcc9 --- /dev/null +++ b/public/docs/_examples/_boilerplate/bs-config.e2e.json @@ -0,0 +1,14 @@ +{ + "open": false, + "logLevel": "silent", + "port": 8080, + "server": { + "baseDir": "src", + "routes": { + "/node_modules": "node_modules" + }, + "middleware": { + "0": null + } + } +} diff --git a/public/docs/_examples/_boilerplate/bs-config.json b/public/docs/_examples/_boilerplate/bs-config.json new file mode 100644 index 0000000000..4e58595267 --- /dev/null +++ b/public/docs/_examples/_boilerplate/bs-config.json @@ -0,0 +1,8 @@ +{ + "server": { + "baseDir": "src", + "routes": { + "/node_modules": "node_modules" + } + } +} diff --git a/public/docs/_examples/_boilerplate/example-config.json b/public/docs/_examples/_boilerplate/example-config.json index e69de29bb2..ff5403e6ca 100644 --- a/public/docs/_examples/_boilerplate/example-config.json +++ b/public/docs/_examples/_boilerplate/example-config.json @@ -0,0 +1,4 @@ +{ + "build": "build", + "run": "serve" +} diff --git a/public/docs/_examples/_boilerplate/package.json b/public/docs/_examples/_boilerplate/package.json index 1591f89d76..5ac9fa9de2 100644 --- a/public/docs/_examples/_boilerplate/package.json +++ b/public/docs/_examples/_boilerplate/package.json @@ -4,22 +4,32 @@ "private": true, "description": "Example package.json, only contains needed scripts for examples. See _examples/package.json for master package.json.", "scripts": { - "start": "tsc && concurrently \"tsc -w\" \"lite-server\" ", - "e2e": "tsc && concurrently \"http-server\" \"protractor protractor.config.js\"", - "http-server": "tsc && http-server", - "http-server:e2e": "http-server", - "http-server:cli": "http-server dist/", - "lite": "lite-server", - "lite:aot": "lite-server -c aot/bs-config.json", - "test": "tsc && concurrently \"tsc -w\" \"karma start karma.conf.js\"", - "tsc": "tsc", - "tsc:w": "tsc -w", + "build": "tsc -p src/", + "build:watch": "tsc -p src/ -w", + "build:e2e": "tsc -p e2e/", + "serve": "lite-server -c=bs-config.json", + "serve:e2e": "lite-server -c=bs-config.e2e.json", + "prestart": "npm run build", + "start": "concurrently \"npm run build:watch\" \"npm run serve\"", + "pree2e": "webdriver-manager update && npm run build:e2e", + "e2e": "concurrently \"npm run serve:e2e\" \"npm run protractor\" --kill-others --success first", + "protractor": "protractor protractor.config.js", + "pretest": "npm run build", + "test": "concurrently \"npm run build:watch\" \"karma start karma.conf.js\"", + "pretest:once": "npm run build", + "test:once": "karma start karma.conf.js --single-run", + "lint": "tslint ./src/**/*.ts -t verbose", + + "build:upgrade": "tsc", + "serve:upgrade": "http-server", + "build:cli": "ng build --no-progress", + "serve:cli": "http-server dist/", + "build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js", + "serve:aot": "lite-server -c bs-config.aot.json", "start:webpack": "webpack-dev-server --inline --progress --port 8080", "test:webpack": "karma start karma.webpack.conf.js", "build:webpack": "rimraf dist && webpack --config config/webpack.prod.js --bail", - "build:cli": "ng build --no-progress", - "build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js", - "build:babel": "babel app -d app --extensions \".es6\" --source-maps", + "build:babel": "babel src -d src --extensions \".es6\" --source-maps", "copy-dist-files": "node ./copy-dist-files.js", "i18n": "ng-xi18n" }, diff --git a/public/docs/_examples/_boilerplate/plnkr.json b/public/docs/_examples/_boilerplate/plnkr.json new file mode 100644 index 0000000000..5fb55b50ad --- /dev/null +++ b/public/docs/_examples/_boilerplate/plnkr.json @@ -0,0 +1,10 @@ +{ + "description": "QuickStart", + "basePath": "src/", + "files": [ + "app/app.component.ts", + "index.html" + ], + "open": "app/app.component.ts", + "tags": ["quickstart"] +} diff --git a/public/docs/_examples/_boilerplate/styles.css b/public/docs/_examples/_boilerplate/src/styles.css similarity index 100% rename from public/docs/_examples/_boilerplate/styles.css rename to public/docs/_examples/_boilerplate/src/styles.css diff --git a/public/docs/_examples/_boilerplate/systemjs.config.js b/public/docs/_examples/_boilerplate/src/systemjs.config.js similarity index 100% rename from public/docs/_examples/_boilerplate/systemjs.config.js rename to public/docs/_examples/_boilerplate/src/systemjs.config.js diff --git a/public/docs/_examples/_boilerplate/systemjs.config.web.build.js b/public/docs/_examples/_boilerplate/src/systemjs.config.web.build.js similarity index 100% rename from public/docs/_examples/_boilerplate/systemjs.config.web.build.js rename to public/docs/_examples/_boilerplate/src/systemjs.config.web.build.js diff --git a/public/docs/_examples/_boilerplate/systemjs.config.web.js b/public/docs/_examples/_boilerplate/src/systemjs.config.web.js similarity index 100% rename from public/docs/_examples/_boilerplate/systemjs.config.web.js rename to public/docs/_examples/_boilerplate/src/systemjs.config.web.js diff --git a/public/docs/_examples/_boilerplate/src/tsconfig.json b/public/docs/_examples/_boilerplate/src/tsconfig.json new file mode 100644 index 0000000000..05839ec2ff --- /dev/null +++ b/public/docs/_examples/_boilerplate/src/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "lib": [ "es2015", "dom" ], + "noImplicitAny": true, + "suppressImplicitAnyIndexErrors": true, + "typeRoots": [ + "../../../node_modules/@types/" + ] + }, + "compileOnSave": true, + "exclude": [ + "node_modules/*", + "**/*-aot.ts" + ] +} diff --git a/public/docs/_examples/animations/ts/plnkr.json b/public/docs/_examples/animations/ts/plnkr.json index 4fface319e..f047395e7f 100644 --- a/public/docs/_examples/animations/ts/plnkr.json +++ b/public/docs/_examples/animations/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Angular Animations", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/animations/ts/app/app.module.ts b/public/docs/_examples/animations/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/app.module.ts rename to public/docs/_examples/animations/ts/src/app/app.module.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-auto.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-auto.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-auto.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-auto.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-basic.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-basic.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-basic.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-basic.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-combined-transitions.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-combined-transitions.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-combined-transitions.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-combined-transitions.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-enter-leave-states.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave-states.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-enter-leave-states.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-enter-leave-states.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-enter-leave.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-enter-leave.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-enter-leave.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-groups.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-groups.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-groups.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-groups.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-inline-styles.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-inline-styles.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-inline-styles.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-inline-styles.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-multistep.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-multistep.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-multistep.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-multistep.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-timings.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-timings.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-timings.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-timings.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list-twoway.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-twoway.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list-twoway.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-list-twoway.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero-list.component.css b/public/docs/_examples/animations/ts/src/app/hero-list.component.css similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-list.component.css rename to public/docs/_examples/animations/ts/src/app/hero-list.component.css diff --git a/public/docs/_examples/animations/ts/app/hero-team-builder.component.ts b/public/docs/_examples/animations/ts/src/app/hero-team-builder.component.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero-team-builder.component.ts rename to public/docs/_examples/animations/ts/src/app/hero-team-builder.component.ts diff --git a/public/docs/_examples/animations/ts/app/hero.service.ts b/public/docs/_examples/animations/ts/src/app/hero.service.ts similarity index 100% rename from public/docs/_examples/animations/ts/app/hero.service.ts rename to public/docs/_examples/animations/ts/src/app/hero.service.ts diff --git a/public/docs/_examples/animations/ts/index.html b/public/docs/_examples/animations/ts/src/index.html similarity index 92% rename from public/docs/_examples/animations/ts/index.html rename to public/docs/_examples/animations/ts/src/index.html index 1569b37645..6c4a13adb2 100644 --- a/public/docs/_examples/animations/ts/index.html +++ b/public/docs/_examples/animations/ts/src/index.html @@ -18,7 +18,7 @@ diff --git a/public/docs/_examples/animations/ts/app/main.ts b/public/docs/_examples/animations/ts/src/main.ts similarity index 73% rename from public/docs/_examples/animations/ts/app/main.ts rename to public/docs/_examples/animations/ts/src/main.ts index 2470c9595e..f22933ba8e 100644 --- a/public/docs/_examples/animations/ts/app/main.ts +++ b/public/docs/_examples/animations/ts/src/main.ts @@ -1,4 +1,4 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/architecture/ts/plnkr.json b/public/docs/_examples/architecture/ts/plnkr.json index 9a4180a9d4..b2f47131df 100644 --- a/public/docs/_examples/architecture/ts/plnkr.json +++ b/public/docs/_examples/architecture/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Intro to Angular", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js", diff --git a/public/docs/_examples/architecture/ts/app/app.component.ts b/public/docs/_examples/architecture/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/app.component.ts rename to public/docs/_examples/architecture/ts/src/app/app.component.ts diff --git a/public/docs/_examples/architecture/ts/app/app.module.ts b/public/docs/_examples/architecture/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/app.module.ts rename to public/docs/_examples/architecture/ts/src/app/app.module.ts diff --git a/public/docs/_examples/architecture/ts/app/backend.service.ts b/public/docs/_examples/architecture/ts/src/app/backend.service.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/backend.service.ts rename to public/docs/_examples/architecture/ts/src/app/backend.service.ts diff --git a/public/docs/_examples/architecture/ts/app/hero-detail.component.html b/public/docs/_examples/architecture/ts/src/app/hero-detail.component.html similarity index 100% rename from public/docs/_examples/architecture/ts/app/hero-detail.component.html rename to public/docs/_examples/architecture/ts/src/app/hero-detail.component.html diff --git a/public/docs/_examples/architecture/ts/app/hero-detail.component.ts b/public/docs/_examples/architecture/ts/src/app/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/hero-detail.component.ts rename to public/docs/_examples/architecture/ts/src/app/hero-detail.component.ts diff --git a/public/docs/_examples/architecture/ts/app/hero-list.component.1.html b/public/docs/_examples/architecture/ts/src/app/hero-list.component.1.html similarity index 100% rename from public/docs/_examples/architecture/ts/app/hero-list.component.1.html rename to public/docs/_examples/architecture/ts/src/app/hero-list.component.1.html diff --git a/public/docs/_examples/architecture/ts/app/hero-list.component.html b/public/docs/_examples/architecture/ts/src/app/hero-list.component.html similarity index 100% rename from public/docs/_examples/architecture/ts/app/hero-list.component.html rename to public/docs/_examples/architecture/ts/src/app/hero-list.component.html diff --git a/public/docs/_examples/architecture/ts/app/hero-list.component.ts b/public/docs/_examples/architecture/ts/src/app/hero-list.component.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/hero-list.component.ts rename to public/docs/_examples/architecture/ts/src/app/hero-list.component.ts diff --git a/public/docs/_examples/architecture/ts/app/hero.service.ts b/public/docs/_examples/architecture/ts/src/app/hero.service.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/hero.service.ts rename to public/docs/_examples/architecture/ts/src/app/hero.service.ts diff --git a/public/docs/_examples/architecture/ts/app/hero.ts b/public/docs/_examples/architecture/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/hero.ts rename to public/docs/_examples/architecture/ts/src/app/hero.ts diff --git a/public/docs/_examples/architecture/ts/app/logger.service.ts b/public/docs/_examples/architecture/ts/src/app/logger.service.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/logger.service.ts rename to public/docs/_examples/architecture/ts/src/app/logger.service.ts diff --git a/public/docs/_examples/architecture/ts/app/mini-app.ts b/public/docs/_examples/architecture/ts/src/app/mini-app.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/mini-app.ts rename to public/docs/_examples/architecture/ts/src/app/mini-app.ts diff --git a/public/docs/_examples/architecture/ts/app/sales-tax.component.ts b/public/docs/_examples/architecture/ts/src/app/sales-tax.component.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/sales-tax.component.ts rename to public/docs/_examples/architecture/ts/src/app/sales-tax.component.ts diff --git a/public/docs/_examples/architecture/ts/app/sales-tax.service.ts b/public/docs/_examples/architecture/ts/src/app/sales-tax.service.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/sales-tax.service.ts rename to public/docs/_examples/architecture/ts/src/app/sales-tax.service.ts diff --git a/public/docs/_examples/architecture/ts/app/tax-rate.service.ts b/public/docs/_examples/architecture/ts/src/app/tax-rate.service.ts similarity index 100% rename from public/docs/_examples/architecture/ts/app/tax-rate.service.ts rename to public/docs/_examples/architecture/ts/src/app/tax-rate.service.ts diff --git a/public/docs/_examples/architecture/ts/index.html b/public/docs/_examples/architecture/ts/src/index.html similarity index 88% rename from public/docs/_examples/architecture/ts/index.html rename to public/docs/_examples/architecture/ts/src/index.html index 5e9bab78c7..9aadf6e109 100644 --- a/public/docs/_examples/architecture/ts/index.html +++ b/public/docs/_examples/architecture/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/main.ts b/public/docs/_examples/architecture/ts/src/main.ts similarity index 75% rename from public/docs/_examples/cb-dependency-injection/ts/app/main.ts rename to public/docs/_examples/architecture/ts/src/main.ts index 4acf5de663..6b6532d428 100644 --- a/public/docs/_examples/cb-dependency-injection/ts/app/main.ts +++ b/public/docs/_examples/architecture/ts/src/main.ts @@ -1,5 +1,5 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/attribute-directives/ts/plnkr.json b/public/docs/_examples/attribute-directives/ts/plnkr.json index a64cbd2e95..112e1de6f4 100644 --- a/public/docs/_examples/attribute-directives/ts/plnkr.json +++ b/public/docs/_examples/attribute-directives/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Attribute Directive", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js", diff --git a/public/docs/_examples/attribute-directives/ts/app/app.component.1.html b/public/docs/_examples/attribute-directives/ts/src/app/app.component.1.html similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/app.component.1.html rename to public/docs/_examples/attribute-directives/ts/src/app/app.component.1.html diff --git a/public/docs/_examples/attribute-directives/ts/app/app.component.1.ts b/public/docs/_examples/attribute-directives/ts/src/app/app.component.1.ts similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/app.component.1.ts rename to public/docs/_examples/attribute-directives/ts/src/app/app.component.1.ts diff --git a/public/docs/_examples/attribute-directives/ts/app/app.component.html b/public/docs/_examples/attribute-directives/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/app.component.html rename to public/docs/_examples/attribute-directives/ts/src/app/app.component.html diff --git a/public/docs/_examples/attribute-directives/ts/app/app.component.ts b/public/docs/_examples/attribute-directives/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/app.component.ts rename to public/docs/_examples/attribute-directives/ts/src/app/app.component.ts diff --git a/public/docs/_examples/attribute-directives/ts/app/app.module.ts b/public/docs/_examples/attribute-directives/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/app.module.ts rename to public/docs/_examples/attribute-directives/ts/src/app/app.module.ts diff --git a/public/docs/_examples/attribute-directives/ts/app/dummy.module.1.ts b/public/docs/_examples/attribute-directives/ts/src/app/dummy.module.1.ts similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/dummy.module.1.ts rename to public/docs/_examples/attribute-directives/ts/src/app/dummy.module.1.ts diff --git a/public/docs/_examples/attribute-directives/ts/app/highlight.directive.1.ts b/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.1.ts similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/highlight.directive.1.ts rename to public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.1.ts diff --git a/public/docs/_examples/attribute-directives/ts/app/highlight.directive.2.ts b/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.2.ts similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/highlight.directive.2.ts rename to public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.2.ts diff --git a/public/docs/_examples/attribute-directives/ts/app/highlight.directive.3.ts b/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.3.ts similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/highlight.directive.3.ts rename to public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.3.ts diff --git a/public/docs/_examples/attribute-directives/ts/app/highlight.directive.ts b/public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.ts similarity index 100% rename from public/docs/_examples/attribute-directives/ts/app/highlight.directive.ts rename to public/docs/_examples/attribute-directives/ts/src/app/highlight.directive.ts diff --git a/public/docs/_examples/attribute-directives/ts/index.html b/public/docs/_examples/attribute-directives/ts/src/index.html similarity index 89% rename from public/docs/_examples/attribute-directives/ts/index.html rename to public/docs/_examples/attribute-directives/ts/src/index.html index 5276824680..97662437f0 100644 --- a/public/docs/_examples/attribute-directives/ts/index.html +++ b/public/docs/_examples/attribute-directives/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/attribute-directives/ts/app/main.ts b/public/docs/_examples/attribute-directives/ts/src/main.ts similarity index 75% rename from public/docs/_examples/attribute-directives/ts/app/main.ts rename to public/docs/_examples/attribute-directives/ts/src/main.ts index 4acf5de663..6b6532d428 100644 --- a/public/docs/_examples/attribute-directives/ts/app/main.ts +++ b/public/docs/_examples/attribute-directives/ts/src/main.ts @@ -1,5 +1,5 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/plnkr.json b/public/docs/_examples/cb-ajs-quick-reference/ts/plnkr.json index 6b91b367d2..1ff34275f7 100644 --- a/public/docs/_examples/cb-ajs-quick-reference/ts/plnkr.json +++ b/public/docs/_examples/cb-ajs-quick-reference/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "AngularJS to Angular Quick Reference", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js", diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/app-routing.module.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app-routing.module.ts similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/app-routing.module.ts rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app-routing.module.ts diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/app.component.css b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.component.css similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/app.component.css rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.component.css diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/app.component.html b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/app.component.html rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.component.html diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/app.component.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/app.component.ts rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/app.module.1.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.module.1.ts similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/app.module.1.ts rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.module.1.ts diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/app.module.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/app.module.ts rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/date.pipe.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/date.pipe.ts similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/date.pipe.ts rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/date.pipe.ts diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/movie-list.component.css b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.css similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/movie-list.component.css rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.css diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/movie-list.component.html b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.html similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/movie-list.component.html rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.html diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/movie-list.component.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.ts similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/movie-list.component.ts rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.ts diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/movie.service.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie.service.ts similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/movie.service.ts rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie.service.ts diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/movie.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie.ts similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/movie.ts rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie.ts diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/images/hero.png b/public/docs/_examples/cb-ajs-quick-reference/ts/src/images/hero.png similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/images/hero.png rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/images/hero.png diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/images/ng-logo.png b/public/docs/_examples/cb-ajs-quick-reference/ts/src/images/ng-logo.png similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/images/ng-logo.png rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/images/ng-logo.png diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/images/villain.png b/public/docs/_examples/cb-ajs-quick-reference/ts/src/images/villain.png similarity index 100% rename from public/docs/_examples/cb-ajs-quick-reference/ts/images/villain.png rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/images/villain.png diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/index.html b/public/docs/_examples/cb-ajs-quick-reference/ts/src/index.html similarity index 90% rename from public/docs/_examples/cb-ajs-quick-reference/ts/index.html rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/index.html index 8d65d69361..829f080ae3 100644 --- a/public/docs/_examples/cb-ajs-quick-reference/ts/index.html +++ b/public/docs/_examples/cb-ajs-quick-reference/ts/src/index.html @@ -17,7 +17,7 @@ diff --git a/public/docs/_examples/architecture/ts/app/main.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/main.ts similarity index 75% rename from public/docs/_examples/architecture/ts/app/main.ts rename to public/docs/_examples/cb-ajs-quick-reference/ts/src/main.ts index 4acf5de663..6b6532d428 100644 --- a/public/docs/_examples/architecture/ts/app/main.ts +++ b/public/docs/_examples/cb-ajs-quick-reference/ts/src/main.ts @@ -1,5 +1,5 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-aot-compiler/ts/example-config.json b/public/docs/_examples/cb-aot-compiler/ts/example-config.json index 1ef73390ce..473b80a572 100644 --- a/public/docs/_examples/cb-aot-compiler/ts/example-config.json +++ b/public/docs/_examples/cb-aot-compiler/ts/example-config.json @@ -1,4 +1,3 @@ { - "build": "build:aot", - "run": "http-server:e2e" -} \ No newline at end of file + "build": "build:aot" +} diff --git a/public/docs/_examples/cb-aot-compiler/ts/rollup-config.js b/public/docs/_examples/cb-aot-compiler/ts/rollup-config.js index bfb02c2c41..0c9088fe54 100644 --- a/public/docs/_examples/cb-aot-compiler/ts/rollup-config.js +++ b/public/docs/_examples/cb-aot-compiler/ts/rollup-config.js @@ -6,8 +6,8 @@ import uglify from 'rollup-plugin-uglify' // #docregion config export default { - entry: 'app/main.js', - dest: 'dist/build.js', // output a single application bundle + entry: 'src/main.js', + dest: 'src/build.js', // output a single application bundle sourceMap: false, format: 'iife', onwarn: function(warning) { diff --git a/public/docs/_examples/cb-aot-compiler/ts/app/app.component.html b/public/docs/_examples/cb-aot-compiler/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/cb-aot-compiler/ts/app/app.component.html rename to public/docs/_examples/cb-aot-compiler/ts/src/app/app.component.html diff --git a/public/docs/_examples/cb-aot-compiler/ts/app/app.component.ts b/public/docs/_examples/cb-aot-compiler/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-aot-compiler/ts/app/app.component.ts rename to public/docs/_examples/cb-aot-compiler/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-aot-compiler/ts/app/app.module.ts b/public/docs/_examples/cb-aot-compiler/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-aot-compiler/ts/app/app.module.ts rename to public/docs/_examples/cb-aot-compiler/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-aot-compiler/ts/index-jit.html b/public/docs/_examples/cb-aot-compiler/ts/src/index-jit.html similarity index 89% rename from public/docs/_examples/cb-aot-compiler/ts/index-jit.html rename to public/docs/_examples/cb-aot-compiler/ts/src/index-jit.html index d11f1d972e..713a04970e 100644 --- a/public/docs/_examples/cb-aot-compiler/ts/index-jit.html +++ b/public/docs/_examples/cb-aot-compiler/ts/src/index-jit.html @@ -14,7 +14,7 @@ diff --git a/public/docs/_examples/cb-aot-compiler/ts/index.html b/public/docs/_examples/cb-aot-compiler/ts/src/index.html similarity index 94% rename from public/docs/_examples/cb-aot-compiler/ts/index.html rename to public/docs/_examples/cb-aot-compiler/ts/src/index.html index e1f6e27f30..9016f3cbe1 100644 --- a/public/docs/_examples/cb-aot-compiler/ts/index.html +++ b/public/docs/_examples/cb-aot-compiler/ts/src/index.html @@ -18,6 +18,6 @@ Loading... - + diff --git a/public/docs/_examples/cb-aot-compiler/ts/app/main-jit.ts b/public/docs/_examples/cb-aot-compiler/ts/src/main-jit.ts similarity index 75% rename from public/docs/_examples/cb-aot-compiler/ts/app/main-jit.ts rename to public/docs/_examples/cb-aot-compiler/ts/src/main-jit.ts index c9ea625647..88e2c16ed5 100644 --- a/public/docs/_examples/cb-aot-compiler/ts/app/main-jit.ts +++ b/public/docs/_examples/cb-aot-compiler/ts/src/main-jit.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; console.log('Running JIT compiled'); platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-aot-compiler/ts/app/main.ts b/public/docs/_examples/cb-aot-compiler/ts/src/main.ts similarity index 70% rename from public/docs/_examples/cb-aot-compiler/ts/app/main.ts rename to public/docs/_examples/cb-aot-compiler/ts/src/main.ts index 7df1f6bf8f..4446bc07d1 100644 --- a/public/docs/_examples/cb-aot-compiler/ts/app/main.ts +++ b/public/docs/_examples/cb-aot-compiler/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowser } from '@angular/platform-browser'; -import { AppModuleNgFactory } from '../aot/app/app.module.ngfactory'; +import { AppModuleNgFactory } from '../aot/src/app/app.module.ngfactory'; console.log('Running AOT compiled'); platformBrowser().bootstrapModuleFactory(AppModuleNgFactory); diff --git a/public/docs/_examples/cb-aot-compiler/ts/tsconfig-aot.json b/public/docs/_examples/cb-aot-compiler/ts/tsconfig-aot.json index 58aaaf181b..d0a3d00ad4 100644 --- a/public/docs/_examples/cb-aot-compiler/ts/tsconfig-aot.json +++ b/public/docs/_examples/cb-aot-compiler/ts/tsconfig-aot.json @@ -12,8 +12,8 @@ }, "files": [ - "app/app.module.ts", - "app/main.ts" + "src/app/app.module.ts", + "src/main.ts" ], "angularCompilerOptions": { diff --git a/public/docs/_examples/cb-component-communication/ts/plnkr.json b/public/docs/_examples/cb-component-communication/ts/plnkr.json index 3c83b2d0f9..03bd55cd1a 100644 --- a/public/docs/_examples/cb-component-communication/ts/plnkr.json +++ b/public/docs/_examples/cb-component-communication/ts/plnkr.json @@ -1,8 +1,9 @@ { "description": "Component Communication Cookbook samples", + "basePath": "src/", "files":[ - "!**/*.d.ts", + "!**/*.d.ts", "!**/*.js" ], "tags":["cookbook", "component"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/cb-component-communication/ts/app/app.component.html b/public/docs/_examples/cb-component-communication/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/app.component.html rename to public/docs/_examples/cb-component-communication/ts/src/app/app.component.html diff --git a/public/docs/_examples/cb-component-communication/ts/app/app.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/app.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/app.module.ts b/public/docs/_examples/cb-component-communication/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/app.module.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/astronaut.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/astronaut.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/astronaut.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/astronaut.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/countdown-parent.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/countdown-parent.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/countdown-parent.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/countdown-parent.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/countdown-timer.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/countdown-timer.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/countdown-timer.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/countdown-timer.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/hero-child.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/hero-child.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/hero-child.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/hero-child.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/hero-parent.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/hero-parent.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/hero-parent.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/hero-parent.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/hero.ts b/public/docs/_examples/cb-component-communication/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/hero.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/hero.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/mission.service.ts b/public/docs/_examples/cb-component-communication/ts/src/app/mission.service.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/mission.service.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/mission.service.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/missioncontrol.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/missioncontrol.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/missioncontrol.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/missioncontrol.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/name-child.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/name-child.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/name-child.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/name-child.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/name-parent.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/name-parent.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/name-parent.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/name-parent.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/version-child.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/version-child.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/version-child.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/version-child.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/version-parent.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/version-parent.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/version-parent.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/version-parent.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/voter.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/voter.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/voter.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/voter.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/app/votetaker.component.ts b/public/docs/_examples/cb-component-communication/ts/src/app/votetaker.component.ts similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/app/votetaker.component.ts rename to public/docs/_examples/cb-component-communication/ts/src/app/votetaker.component.ts diff --git a/public/docs/_examples/cb-component-communication/ts/demo.css b/public/docs/_examples/cb-component-communication/ts/src/demo.css similarity index 100% rename from public/docs/_examples/cb-component-communication/ts/demo.css rename to public/docs/_examples/cb-component-communication/ts/src/demo.css diff --git a/public/docs/_examples/cb-component-communication/ts/index.html b/public/docs/_examples/cb-component-communication/ts/src/index.html similarity index 89% rename from public/docs/_examples/cb-component-communication/ts/index.html rename to public/docs/_examples/cb-component-communication/ts/src/index.html index c08152d3f7..64c8a3430f 100644 --- a/public/docs/_examples/cb-component-communication/ts/index.html +++ b/public/docs/_examples/cb-component-communication/ts/src/index.html @@ -18,7 +18,7 @@ diff --git a/public/docs/_examples/quickstart/ts/app/main.ts b/public/docs/_examples/cb-component-communication/ts/src/main.ts similarity index 74% rename from public/docs/_examples/quickstart/ts/app/main.ts rename to public/docs/_examples/cb-component-communication/ts/src/main.ts index 6af7a5b2ae..311c44b76d 100644 --- a/public/docs/_examples/quickstart/ts/app/main.ts +++ b/public/docs/_examples/cb-component-communication/ts/src/main.ts @@ -1,5 +1,5 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-component-relative-paths/ts/plnkr.json b/public/docs/_examples/cb-component-relative-paths/ts/plnkr.json index a4c33bbde3..21002e1d2f 100644 --- a/public/docs/_examples/cb-component-relative-paths/ts/plnkr.json +++ b/public/docs/_examples/cb-component-relative-paths/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Module-relative Paths", + "basePath": "src/", "files": [ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/cb-component-relative-paths/ts/app/app.component.ts b/public/docs/_examples/cb-component-relative-paths/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-component-relative-paths/ts/app/app.component.ts rename to public/docs/_examples/cb-component-relative-paths/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-component-relative-paths/ts/app/app.module.ts b/public/docs/_examples/cb-component-relative-paths/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-component-relative-paths/ts/app/app.module.ts rename to public/docs/_examples/cb-component-relative-paths/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-component-relative-paths/ts/app/some.component.css b/public/docs/_examples/cb-component-relative-paths/ts/src/app/some.component.css similarity index 100% rename from public/docs/_examples/cb-component-relative-paths/ts/app/some.component.css rename to public/docs/_examples/cb-component-relative-paths/ts/src/app/some.component.css diff --git a/public/docs/_examples/cb-component-relative-paths/ts/app/some.component.html b/public/docs/_examples/cb-component-relative-paths/ts/src/app/some.component.html similarity index 100% rename from public/docs/_examples/cb-component-relative-paths/ts/app/some.component.html rename to public/docs/_examples/cb-component-relative-paths/ts/src/app/some.component.html diff --git a/public/docs/_examples/cb-component-relative-paths/ts/app/some.component.ts b/public/docs/_examples/cb-component-relative-paths/ts/src/app/some.component.ts similarity index 100% rename from public/docs/_examples/cb-component-relative-paths/ts/app/some.component.ts rename to public/docs/_examples/cb-component-relative-paths/ts/src/app/some.component.ts diff --git a/public/docs/_examples/cb-component-relative-paths/ts/index.html b/public/docs/_examples/cb-component-relative-paths/ts/src/index.html similarity index 89% rename from public/docs/_examples/cb-component-relative-paths/ts/index.html rename to public/docs/_examples/cb-component-relative-paths/ts/src/index.html index 0ad9130727..e951f9f016 100644 --- a/public/docs/_examples/cb-component-relative-paths/ts/index.html +++ b/public/docs/_examples/cb-component-relative-paths/ts/src/index.html @@ -21,7 +21,7 @@ diff --git a/public/docs/_examples/cb-component-communication/ts/app/main.ts b/public/docs/_examples/cb-component-relative-paths/ts/src/main.ts similarity index 74% rename from public/docs/_examples/cb-component-communication/ts/app/main.ts rename to public/docs/_examples/cb-component-relative-paths/ts/src/main.ts index 6af7a5b2ae..311c44b76d 100644 --- a/public/docs/_examples/cb-component-communication/ts/app/main.ts +++ b/public/docs/_examples/cb-component-relative-paths/ts/src/main.ts @@ -1,5 +1,5 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-dependency-injection/ts/plnkr.json b/public/docs/_examples/cb-dependency-injection/ts/plnkr.json index d20b01cf1d..ff0aedca01 100644 --- a/public/docs/_examples/cb-dependency-injection/ts/plnkr.json +++ b/public/docs/_examples/cb-dependency-injection/ts/plnkr.json @@ -1,9 +1,10 @@ { "description": "Dependency Injection", + "basePath": "src/", "files":[ - "!**/*.d.ts", + "!**/*.d.ts", "!**/*.js", "!**/*.[1].*" ], "tags":["cookbook"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/app-routing.module.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/app-routing.module.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/app-routing.module.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/app-routing.module.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/app.component.html b/public/docs/_examples/cb-dependency-injection/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/app.component.html rename to public/docs/_examples/cb-dependency-injection/ts/src/app/app.component.html diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/app.component.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/app.component.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/app.module.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/app.module.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/date-logger.service.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/date-logger.service.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/date-logger.service.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/date-logger.service.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/hero-bio.component.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/hero-bio.component.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/hero-bio.component.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/hero-bio.component.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/hero-bios.component.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/hero-bios.component.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/hero-bios.component.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/hero-bios.component.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/hero-cache.service.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/hero-cache.service.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/hero-cache.service.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/hero-cache.service.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/hero-contact.component.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/hero-contact.component.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/hero-contact.component.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/hero-contact.component.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/hero-data.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/hero-data.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/hero-data.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/hero-data.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/hero-of-the-month.component.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/hero-of-the-month.component.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/hero.service.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/hero.service.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/hero.service.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/hero.service.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/hero.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/hero.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/hero.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/highlight.directive.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/highlight.directive.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/highlight.directive.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/highlight.directive.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/logger.service.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/logger.service.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/logger.service.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/logger.service.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/parent-finder.component.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/parent-finder.component.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/parent-finder.component.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/parent-finder.component.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/runners-up.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/runners-up.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/runners-up.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/runners-up.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/sorted-heroes.component.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/sorted-heroes.component.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/sorted-heroes.component.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/sorted-heroes.component.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/user-context.service.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/user-context.service.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/user-context.service.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/user-context.service.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/user.service.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/user.service.ts similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/app/user.service.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/app/user.service.ts diff --git a/public/docs/_examples/cb-dependency-injection/ts/index.html b/public/docs/_examples/cb-dependency-injection/ts/src/index.html similarity index 90% rename from public/docs/_examples/cb-dependency-injection/ts/index.html rename to public/docs/_examples/cb-dependency-injection/ts/src/index.html index 4bd68d49f4..0308c72155 100644 --- a/public/docs/_examples/cb-dependency-injection/ts/index.html +++ b/public/docs/_examples/cb-dependency-injection/ts/src/index.html @@ -18,7 +18,7 @@ diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/app/main.ts b/public/docs/_examples/cb-dependency-injection/ts/src/main.ts similarity index 75% rename from public/docs/_examples/cb-ajs-quick-reference/ts/app/main.ts rename to public/docs/_examples/cb-dependency-injection/ts/src/main.ts index 4acf5de663..6b6532d428 100644 --- a/public/docs/_examples/cb-ajs-quick-reference/ts/app/main.ts +++ b/public/docs/_examples/cb-dependency-injection/ts/src/main.ts @@ -1,5 +1,5 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-dependency-injection/ts/sample.css b/public/docs/_examples/cb-dependency-injection/ts/src/sample.css similarity index 100% rename from public/docs/_examples/cb-dependency-injection/ts/sample.css rename to public/docs/_examples/cb-dependency-injection/ts/src/sample.css diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/ad-banner.component.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad-banner.component.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/ad-banner.component.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad-banner.component.ts diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/ad-item.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad-item.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/ad-item.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad-item.ts diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/ad.component.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad.component.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/ad.component.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad.component.ts diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/ad.directive.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad.directive.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/ad.directive.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad.directive.ts diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/ad.service.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad.service.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/ad.service.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/app/ad.service.ts diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/app.component.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/app.component.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/app.module.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/app.module.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/hero-job-ad.component.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/app/hero-job-ad.component.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/hero-job-ad.component.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/app/hero-job-ad.component.ts diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/hero-profile.component.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/app/hero-profile.component.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/hero-profile.component.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/app/hero-profile.component.ts diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/index.html b/public/docs/_examples/cb-dynamic-component-loader/ts/src/index.html similarity index 90% rename from public/docs/_examples/cb-dynamic-component-loader/ts/index.html rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/index.html index 45529915c2..9239d91d9a 100644 --- a/public/docs/_examples/cb-dynamic-component-loader/ts/index.html +++ b/public/docs/_examples/cb-dynamic-component-loader/ts/src/index.html @@ -7,7 +7,7 @@ - + @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/app/main.ts b/public/docs/_examples/cb-dynamic-component-loader/ts/src/main.ts similarity index 71% rename from public/docs/_examples/cb-dynamic-component-loader/ts/app/main.ts rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/main.ts index bc69d2bd33..53d16fa43a 100644 --- a/public/docs/_examples/cb-dynamic-component-loader/ts/app/main.ts +++ b/public/docs/_examples/cb-dynamic-component-loader/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-dynamic-component-loader/ts/sample.css b/public/docs/_examples/cb-dynamic-component-loader/ts/src/sample.css similarity index 100% rename from public/docs/_examples/cb-dynamic-component-loader/ts/sample.css rename to public/docs/_examples/cb-dynamic-component-loader/ts/src/sample.css diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/main.ts b/public/docs/_examples/cb-dynamic-form/ts/app/main.ts deleted file mode 100644 index 4acf5de663..0000000000 --- a/public/docs/_examples/cb-dynamic-form/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-dynamic-form/ts/plnkr.json b/public/docs/_examples/cb-dynamic-form/ts/plnkr.json index faa498f46f..1f50b4a992 100644 --- a/public/docs/_examples/cb-dynamic-form/ts/plnkr.json +++ b/public/docs/_examples/cb-dynamic-form/ts/plnkr.json @@ -1,7 +1,8 @@ { "description": "Dynamic Form", + "basePath": "src/", "files":[ - "!**/*.d.ts", + "!**/*.d.ts", "!**/*.js", "!**/*.[1].*" ], diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/app.component.ts b/public/docs/_examples/cb-dynamic-form/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/app.component.ts rename to public/docs/_examples/cb-dynamic-form/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/app.module.ts b/public/docs/_examples/cb-dynamic-form/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/app.module.ts rename to public/docs/_examples/cb-dynamic-form/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form-question.component.html b/public/docs/_examples/cb-dynamic-form/ts/src/app/dynamic-form-question.component.html similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form-question.component.html rename to public/docs/_examples/cb-dynamic-form/ts/src/app/dynamic-form-question.component.html diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form-question.component.ts b/public/docs/_examples/cb-dynamic-form/ts/src/app/dynamic-form-question.component.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form-question.component.ts rename to public/docs/_examples/cb-dynamic-form/ts/src/app/dynamic-form-question.component.ts diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form.component.html b/public/docs/_examples/cb-dynamic-form/ts/src/app/dynamic-form.component.html similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form.component.html rename to public/docs/_examples/cb-dynamic-form/ts/src/app/dynamic-form.component.html diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form.component.ts b/public/docs/_examples/cb-dynamic-form/ts/src/app/dynamic-form.component.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/dynamic-form.component.ts rename to public/docs/_examples/cb-dynamic-form/ts/src/app/dynamic-form.component.ts diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/question-base.ts b/public/docs/_examples/cb-dynamic-form/ts/src/app/question-base.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/question-base.ts rename to public/docs/_examples/cb-dynamic-form/ts/src/app/question-base.ts diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/question-control.service.ts b/public/docs/_examples/cb-dynamic-form/ts/src/app/question-control.service.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/question-control.service.ts rename to public/docs/_examples/cb-dynamic-form/ts/src/app/question-control.service.ts diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/question-dropdown.ts b/public/docs/_examples/cb-dynamic-form/ts/src/app/question-dropdown.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/question-dropdown.ts rename to public/docs/_examples/cb-dynamic-form/ts/src/app/question-dropdown.ts diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/question-textbox.ts b/public/docs/_examples/cb-dynamic-form/ts/src/app/question-textbox.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/question-textbox.ts rename to public/docs/_examples/cb-dynamic-form/ts/src/app/question-textbox.ts diff --git a/public/docs/_examples/cb-dynamic-form/ts/app/question.service.ts b/public/docs/_examples/cb-dynamic-form/ts/src/app/question.service.ts similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/app/question.service.ts rename to public/docs/_examples/cb-dynamic-form/ts/src/app/question.service.ts diff --git a/public/docs/_examples/cb-dynamic-form/ts/index.html b/public/docs/_examples/cb-dynamic-form/ts/src/index.html similarity index 90% rename from public/docs/_examples/cb-dynamic-form/ts/index.html rename to public/docs/_examples/cb-dynamic-form/ts/src/index.html index f3a527c698..01963f71e2 100644 --- a/public/docs/_examples/cb-dynamic-form/ts/index.html +++ b/public/docs/_examples/cb-dynamic-form/ts/src/index.html @@ -18,7 +18,7 @@ diff --git a/public/docs/_examples/cb-dynamic-form/ts/src/main.ts b/public/docs/_examples/cb-dynamic-form/ts/src/main.ts new file mode 100644 index 0000000000..6b6532d428 --- /dev/null +++ b/public/docs/_examples/cb-dynamic-form/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-dynamic-form/ts/sample.css b/public/docs/_examples/cb-dynamic-form/ts/src/sample.css similarity index 100% rename from public/docs/_examples/cb-dynamic-form/ts/sample.css rename to public/docs/_examples/cb-dynamic-form/ts/src/sample.css diff --git a/public/docs/_examples/cb-form-validation/ts/plnkr.json b/public/docs/_examples/cb-form-validation/ts/plnkr.json index aa676ad767..c5656d77f7 100644 --- a/public/docs/_examples/cb-form-validation/ts/plnkr.json +++ b/public/docs/_examples/cb-form-validation/ts/plnkr.json @@ -1,7 +1,8 @@ { "description": "Validation", + "basePath": "src/", "files":[ - "!**/*.d.ts", + "!**/*.d.ts", "!**/*.js" ] -} \ No newline at end of file +} diff --git a/public/docs/_examples/cb-form-validation/ts/app/app.component.ts b/public/docs/_examples/cb-form-validation/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/app.component.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/app.module.ts b/public/docs/_examples/cb-form-validation/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/app.module.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/reactive/hero-form-reactive.component.html b/public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.html similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/reactive/hero-form-reactive.component.html rename to public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.html diff --git a/public/docs/_examples/cb-form-validation/ts/app/reactive/hero-form-reactive.component.ts b/public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/reactive/hero-form-reactive.component.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/reactive/hero-form-reactive.module.ts b/public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.module.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/reactive/hero-form-reactive.module.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.module.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/shared/forbidden-name.directive.ts b/public/docs/_examples/cb-form-validation/ts/src/app/shared/forbidden-name.directive.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/shared/forbidden-name.directive.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/shared/forbidden-name.directive.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/shared/hero.ts b/public/docs/_examples/cb-form-validation/ts/src/app/shared/hero.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/shared/hero.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/shared/hero.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/shared/shared.module.ts b/public/docs/_examples/cb-form-validation/ts/src/app/shared/shared.module.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/shared/shared.module.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/shared/shared.module.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/shared/submitted.component.ts b/public/docs/_examples/cb-form-validation/ts/src/app/shared/submitted.component.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/shared/submitted.component.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/shared/submitted.component.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template.module.ts b/public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template.module.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template.module.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template.module.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template1.component.html b/public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template1.component.html similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template1.component.html rename to public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template1.component.html diff --git a/public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template1.component.ts b/public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template1.component.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template1.component.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template1.component.ts diff --git a/public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template2.component.html b/public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template2.component.html similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template2.component.html rename to public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template2.component.html diff --git a/public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template2.component.ts b/public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template2.component.ts similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/app/template/hero-form-template2.component.ts rename to public/docs/_examples/cb-form-validation/ts/src/app/template/hero-form-template2.component.ts diff --git a/public/docs/_examples/cb-form-validation/ts/forms.css b/public/docs/_examples/cb-form-validation/ts/src/forms.css similarity index 100% rename from public/docs/_examples/cb-form-validation/ts/forms.css rename to public/docs/_examples/cb-form-validation/ts/src/forms.css diff --git a/public/docs/_examples/cb-form-validation/ts/index.html b/public/docs/_examples/cb-form-validation/ts/src/index.html similarity index 91% rename from public/docs/_examples/cb-form-validation/ts/index.html rename to public/docs/_examples/cb-form-validation/ts/src/index.html index 93c5c14f18..e7201508d7 100644 --- a/public/docs/_examples/cb-form-validation/ts/index.html +++ b/public/docs/_examples/cb-form-validation/ts/src/index.html @@ -18,7 +18,7 @@ diff --git a/public/docs/_examples/cb-form-validation/ts/app/main.ts b/public/docs/_examples/cb-form-validation/ts/src/main.ts similarity index 75% rename from public/docs/_examples/cb-form-validation/ts/app/main.ts rename to public/docs/_examples/cb-form-validation/ts/src/main.ts index 961a226688..f332d1d245 100644 --- a/public/docs/_examples/cb-form-validation/ts/app/main.ts +++ b/public/docs/_examples/cb-form-validation/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-i18n/ts/.gitignore b/public/docs/_examples/cb-i18n/ts/.gitignore index 0aa8a6416f..d38bb50aa9 100644 --- a/public/docs/_examples/cb-i18n/ts/.gitignore +++ b/public/docs/_examples/cb-i18n/ts/.gitignore @@ -3,3 +3,4 @@ dist !app/tsconfig.json !rollup.js +!src/systemjs-text-plugin.js diff --git a/public/docs/_examples/cb-i18n/ts/plnkr.json b/public/docs/_examples/cb-i18n/ts/plnkr.json index db48ff5c51..e2cbd40afe 100644 --- a/public/docs/_examples/cb-i18n/ts/plnkr.json +++ b/public/docs/_examples/cb-i18n/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "i18n", + "basePath": "src/", "files": [ "app/**/*.css", "app/**/*.html", diff --git a/public/docs/_examples/cb-i18n/ts/app/app.component.1.html b/public/docs/_examples/cb-i18n/ts/src/app/app.component.1.html similarity index 100% rename from public/docs/_examples/cb-i18n/ts/app/app.component.1.html rename to public/docs/_examples/cb-i18n/ts/src/app/app.component.1.html diff --git a/public/docs/_examples/cb-i18n/ts/app/app.component.html b/public/docs/_examples/cb-i18n/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/cb-i18n/ts/app/app.component.html rename to public/docs/_examples/cb-i18n/ts/src/app/app.component.html diff --git a/public/docs/_examples/cb-i18n/ts/app/app.component.ts b/public/docs/_examples/cb-i18n/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-i18n/ts/app/app.component.ts rename to public/docs/_examples/cb-i18n/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-i18n/ts/app/app.module.ts b/public/docs/_examples/cb-i18n/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-i18n/ts/app/app.module.ts rename to public/docs/_examples/cb-i18n/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-i18n/ts/app/i18n-providers.ts b/public/docs/_examples/cb-i18n/ts/src/app/i18n-providers.ts similarity index 100% rename from public/docs/_examples/cb-i18n/ts/app/i18n-providers.ts rename to public/docs/_examples/cb-i18n/ts/src/app/i18n-providers.ts diff --git a/public/docs/_examples/cb-i18n/ts/index.html b/public/docs/_examples/cb-i18n/ts/src/index.html similarity index 92% rename from public/docs/_examples/cb-i18n/ts/index.html rename to public/docs/_examples/cb-i18n/ts/src/index.html index 51fd5c175d..ce90cd24c4 100644 --- a/public/docs/_examples/cb-i18n/ts/index.html +++ b/public/docs/_examples/cb-i18n/ts/src/index.html @@ -28,7 +28,7 @@ }); // Launch the app - System.import('app').catch(function(err){ console.error(err); }); + System.import('main.js').catch(function(err){ console.error(err); }); diff --git a/public/docs/_examples/cb-i18n/ts/locale/messages.es.xlf b/public/docs/_examples/cb-i18n/ts/src/locale/messages.es.xlf similarity index 100% rename from public/docs/_examples/cb-i18n/ts/locale/messages.es.xlf rename to public/docs/_examples/cb-i18n/ts/src/locale/messages.es.xlf diff --git a/public/docs/_examples/cb-i18n/ts/locale/messages.es.xlf.html b/public/docs/_examples/cb-i18n/ts/src/locale/messages.es.xlf.html similarity index 100% rename from public/docs/_examples/cb-i18n/ts/locale/messages.es.xlf.html rename to public/docs/_examples/cb-i18n/ts/src/locale/messages.es.xlf.html diff --git a/public/docs/_examples/cb-i18n/ts/app/main.1.ts b/public/docs/_examples/cb-i18n/ts/src/main.1.ts similarity index 75% rename from public/docs/_examples/cb-i18n/ts/app/main.1.ts rename to public/docs/_examples/cb-i18n/ts/src/main.1.ts index 961a226688..f332d1d245 100644 --- a/public/docs/_examples/cb-i18n/ts/app/main.1.ts +++ b/public/docs/_examples/cb-i18n/ts/src/main.1.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-i18n/ts/app/main.ts b/public/docs/_examples/cb-i18n/ts/src/main.ts similarity index 68% rename from public/docs/_examples/cb-i18n/ts/app/main.ts rename to public/docs/_examples/cb-i18n/ts/src/main.ts index 79d5fa0b48..894cecfb10 100644 --- a/public/docs/_examples/cb-i18n/ts/app/main.ts +++ b/public/docs/_examples/cb-i18n/ts/src/main.ts @@ -1,8 +1,8 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { getTranslationProviders } from './i18n-providers'; +import { getTranslationProviders } from './app/i18n-providers'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; getTranslationProviders().then(providers => { const options = { providers }; diff --git a/public/docs/_examples/cb-i18n/ts/systemjs-text-plugin.js b/public/docs/_examples/cb-i18n/ts/src/systemjs-text-plugin.js similarity index 100% rename from public/docs/_examples/cb-i18n/ts/systemjs-text-plugin.js rename to public/docs/_examples/cb-i18n/ts/src/systemjs-text-plugin.js diff --git a/public/docs/_examples/cb-set-document-title/ts/plnkr.json b/public/docs/_examples/cb-set-document-title/ts/plnkr.json index 1863d49471..020d5a1db2 100644 --- a/public/docs/_examples/cb-set-document-title/ts/plnkr.json +++ b/public/docs/_examples/cb-set-document-title/ts/plnkr.json @@ -1,7 +1,8 @@ { "description": "Set The Document Title In Angular", + "basePath": "src/", "files": [ - "!**/*.d.ts", + "!**/*.d.ts", "!**/*.js", "!**/*.[1].*" ], diff --git a/public/docs/_examples/cb-set-document-title/ts/app/app.component.ts b/public/docs/_examples/cb-set-document-title/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/cb-set-document-title/ts/app/app.component.ts rename to public/docs/_examples/cb-set-document-title/ts/src/app/app.component.ts diff --git a/public/docs/_examples/cb-set-document-title/ts/app/app.module.ts b/public/docs/_examples/cb-set-document-title/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/cb-set-document-title/ts/app/app.module.ts rename to public/docs/_examples/cb-set-document-title/ts/src/app/app.module.ts diff --git a/public/docs/_examples/cb-set-document-title/ts/index.html b/public/docs/_examples/cb-set-document-title/ts/src/index.html similarity index 96% rename from public/docs/_examples/cb-set-document-title/ts/index.html rename to public/docs/_examples/cb-set-document-title/ts/src/index.html index 042216311a..6b00948530 100644 --- a/public/docs/_examples/cb-set-document-title/ts/index.html +++ b/public/docs/_examples/cb-set-document-title/ts/src/index.html @@ -22,7 +22,7 @@ diff --git a/public/docs/_examples/homepage-tabs/ts/app/main.ts b/public/docs/_examples/cb-set-document-title/ts/src/main.ts similarity index 75% rename from public/docs/_examples/homepage-tabs/ts/app/main.ts rename to public/docs/_examples/cb-set-document-title/ts/src/main.ts index 961a226688..f332d1d245 100644 --- a/public/docs/_examples/homepage-tabs/ts/app/main.ts +++ b/public/docs/_examples/cb-set-document-title/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/example-config.json b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/example-config.json index 391bd1a766..81f31aaf0d 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/example-config.json +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/example-config.json @@ -1,4 +1,3 @@ { - "build": "build:babel", - "run": "http-server:e2e" -} \ No newline at end of file + "build": "build:babel" +} diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/plnkr.json b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/plnkr.json index 5c7a5acd44..447fc5f605 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/plnkr.json +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/plnkr.json @@ -1,5 +1,6 @@ { "description": "TypeScript to JavaScript", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/.babelrc b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/.babelrc similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/.babelrc rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/.babelrc diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/app.component.es6 similarity index 96% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/app.component.es6 index 6a16666aa8..8e65fff539 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.component.es6 +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/app.component.es6 @@ -1,15 +1,15 @@ -import { Component } from '@angular/core'; - -@Component({ - moduleId: module.id, - selector: 'my-app', - templateUrl: './app.component.html', - styles: [ - // See hero-di-inject-additional.component - 'hero-host, hero-host-meta { border: 1px dashed black; display: block; padding: 4px;}', - '.heading {font-style: italic}' - ] -}) -export class AppComponent { - title = 'ES6 JavaScript with Decorators'; -} +import { Component } from '@angular/core'; + +@Component({ + moduleId: module.id, + selector: 'my-app', + templateUrl: './app.component.html', + styles: [ + // See hero-di-inject-additional.component + 'hero-host, hero-host-meta { border: 1px dashed black; display: block; padding: 4px;}', + '.heading {font-style: italic}' + ] +}) +export class AppComponent { + title = 'ES6 JavaScript with Decorators'; +} diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.component.html b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/app.component.html similarity index 96% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.component.html rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/app.component.html index 7f1efd31a0..995645073a 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.component.html +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/app.component.html @@ -1,31 +1,31 @@ - -

{{title}}

-Classes and Class Metadata
-Input and Output Decorators
-Dependency Injection
-Host Metadata
-View and Child Metadata
- -
-

Classes and Class Metadata

- - - -
-

Input and Output Metadata

- - -
-

Dependency Injection

- - - - -
-

Host Metadata

- - - -
-

View and Child Metadata

- + +

{{title}}

+Classes and Class Metadata
+Input and Output Decorators
+Dependency Injection
+Host Metadata
+View and Child Metadata
+ +
+

Classes and Class Metadata

+ + + +
+

Input and Output Metadata

+ + +
+

Dependency Injection

+ + + + +
+

Host Metadata

+ + + +
+

View and Child Metadata

+ diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.module.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/app.module.es6 similarity index 97% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.module.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/app.module.es6 index bea55777ef..9c248a7ad3 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/app.module.es6 +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/app.module.es6 @@ -1,55 +1,55 @@ -import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; - -import { AppComponent } from './app.component'; -import { ConfirmComponent } from './confirm.component'; -// #docregion appimport -import { HeroComponent } from './hero.component'; -// #enddocregion appimport -import { HeroComponent as HeroDIComponent } from './hero-di.component'; -import { HeroComponent as HeroDIInjectComponent } from './hero-di-inject.component'; -import { HeroComponent as HeroDIInjectAdditionalComponent } from './hero-di-inject-additional.component'; -import { HeroHostComponent } from './hero-host.component'; -import { HeroHostMetaComponent } from './hero-host-meta.component'; -import { HeroIOComponent } from './hero-io.component'; -import { HeroComponent as HeroLifecycleComponent } from './hero-lifecycle.component'; -import { HeroQueriesComponent, ViewChildComponent, ContentChildComponent } from './hero-queries.component'; -import { HeroTitleComponent } from './hero-title.component'; - -import { DataService } from './data.service'; - -@NgModule({ - imports: [ - BrowserModule - ], - declarations: [ - AppComponent, - ConfirmComponent, - HeroComponent, - HeroDIComponent, - HeroDIInjectComponent, - HeroDIInjectAdditionalComponent, - HeroHostComponent, HeroHostMetaComponent, - HeroIOComponent, - HeroLifecycleComponent, - HeroQueriesComponent, ViewChildComponent, ContentChildComponent, - HeroTitleComponent - ], - providers: [ - DataService, - { provide: 'heroName', useValue: 'Windstorm' } - ], - bootstrap: [ AppComponent ], - - // schemas: [ NO_ERRORS_SCHEMA ] // helpful for debugging -}) -export class AppModule { } - -/* tslint:disable no-unused-variable */ -// #docregion ng2import -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { - LocationStrategy, - HashLocationStrategy -} from '@angular/common'; -// #enddocregion ng2import +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; + +import { AppComponent } from './app.component'; +import { ConfirmComponent } from './confirm.component'; +// #docregion appimport +import { HeroComponent } from './hero.component'; +// #enddocregion appimport +import { HeroComponent as HeroDIComponent } from './hero-di.component'; +import { HeroComponent as HeroDIInjectComponent } from './hero-di-inject.component'; +import { HeroComponent as HeroDIInjectAdditionalComponent } from './hero-di-inject-additional.component'; +import { HeroHostComponent } from './hero-host.component'; +import { HeroHostMetaComponent } from './hero-host-meta.component'; +import { HeroIOComponent } from './hero-io.component'; +import { HeroComponent as HeroLifecycleComponent } from './hero-lifecycle.component'; +import { HeroQueriesComponent, ViewChildComponent, ContentChildComponent } from './hero-queries.component'; +import { HeroTitleComponent } from './hero-title.component'; + +import { DataService } from './data.service'; + +@NgModule({ + imports: [ + BrowserModule + ], + declarations: [ + AppComponent, + ConfirmComponent, + HeroComponent, + HeroDIComponent, + HeroDIInjectComponent, + HeroDIInjectAdditionalComponent, + HeroHostComponent, HeroHostMetaComponent, + HeroIOComponent, + HeroLifecycleComponent, + HeroQueriesComponent, ViewChildComponent, ContentChildComponent, + HeroTitleComponent + ], + providers: [ + DataService, + { provide: 'heroName', useValue: 'Windstorm' } + ], + bootstrap: [ AppComponent ], + + // schemas: [ NO_ERRORS_SCHEMA ] // helpful for debugging +}) +export class AppModule { } + +/* tslint:disable no-unused-variable */ +// #docregion ng2import +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { + LocationStrategy, + HashLocationStrategy +} from '@angular/common'; +// #enddocregion ng2import diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/confirm.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/confirm.component.es6 similarity index 95% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/confirm.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/confirm.component.es6 index ee9ee6f884..c9be28c44c 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/confirm.component.es6 +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/confirm.component.es6 @@ -1,22 +1,22 @@ -import { Component, EventEmitter, Input, Output } from '@angular/core'; - -// #docregion -@Component({ - moduleId: module.id, - selector: 'app-confirm', - templateUrl: './confirm.component.html' -}) -export class ConfirmComponent { - @Input() okMsg = ''; - @Input('cancelMsg') notOkMsg = ''; - @Output() ok = new EventEmitter(); - @Output('cancel') notOk = new EventEmitter(); - - onOkClick() { - this.ok.emit(true); - } - onNotOkClick() { - this.notOk.emit(true); - } -} -// #enddocregion +import { Component, EventEmitter, Input, Output } from '@angular/core'; + +// #docregion +@Component({ + moduleId: module.id, + selector: 'app-confirm', + templateUrl: './confirm.component.html' +}) +export class ConfirmComponent { + @Input() okMsg = ''; + @Input('cancelMsg') notOkMsg = ''; + @Output() ok = new EventEmitter(); + @Output('cancel') notOk = new EventEmitter(); + + onOkClick() { + this.ok.emit(true); + } + onNotOkClick() { + this.notOk.emit(true); + } +} +// #enddocregion diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/confirm.component.html b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/confirm.component.html similarity index 94% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/confirm.component.html rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/confirm.component.html index 917bd1696f..45275d218a 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/confirm.component.html +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/confirm.component.html @@ -1,6 +1,6 @@ - - + + diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/data.service.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/data.service.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/data.service.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/data.service.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-di-inject-additional.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-di-inject-additional.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-di-inject-additional.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-di-inject-additional.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-di-inject.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-di-inject.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-di-inject.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-di-inject.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-di.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-di.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-di.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-di.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-host-meta.component.ts b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-host-meta.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-host-meta.component.ts rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-host-meta.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-host.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-host.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-host.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-host.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-io.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-io.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-io.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-io.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-lifecycle.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-lifecycle.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-lifecycle.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-lifecycle.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-queries.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-queries.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-queries.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-queries.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-title.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-title.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-title.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-title.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-title.component.html b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-title.component.html similarity index 96% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-title.component.html rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-title.component.html index 0e93122d5c..164683cb7c 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-title.component.html +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero-title.component.html @@ -1,4 +1,4 @@ - -

{{titlePrefix}} {{title}}

- -

{{ msg }}

+ +

{{titlePrefix}} {{title}}

+ +

{{ msg }}

diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/app/hero.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/index.html b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/index.html similarity index 89% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/index.html rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/index.html index d2bef7c903..2a94db38cc 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/index.html +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/main.es6 b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/main.es6 similarity index 73% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/main.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/main.es6 index 2470c9595e..f22933ba8e 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/app/main.es6 +++ b/public/docs/_examples/cb-ts-to-js/js-es6-decorators/src/main.es6 @@ -1,4 +1,4 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/example-config.json b/public/docs/_examples/cb-ts-to-js/js-es6/example-config.json index 391bd1a766..81f31aaf0d 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/example-config.json +++ b/public/docs/_examples/cb-ts-to-js/js-es6/example-config.json @@ -1,4 +1,3 @@ { - "build": "build:babel", - "run": "http-server:e2e" -} \ No newline at end of file + "build": "build:babel" +} diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/plnkr.json b/public/docs/_examples/cb-ts-to-js/js-es6/plnkr.json index 5c7a5acd44..447fc5f605 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/plnkr.json +++ b/public/docs/_examples/cb-ts-to-js/js-es6/plnkr.json @@ -1,5 +1,6 @@ { "description": "TypeScript to JavaScript", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/.babelrc b/public/docs/_examples/cb-ts-to-js/js-es6/src/.babelrc similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/.babelrc rename to public/docs/_examples/cb-ts-to-js/js-es6/src/.babelrc diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/app.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/app.component.es6 similarity index 95% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/app.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/app.component.es6 index e8fd92620b..3084439b2a 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/app/app.component.es6 +++ b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/app.component.es6 @@ -1,20 +1,20 @@ -import { Component } from '@angular/core'; - -export class AppComponent { - constructor() { - this.title = 'Plain ES6 JavaScript'; - } -} - -AppComponent.annotations = [ - new Component({ - moduleId: module.id, - selector: 'my-app', - templateUrl: './app.component.html', - styles: [ - // See hero-di-inject-additional.component - 'hero-host { border: 1px dashed black; display: block; padding: 4px;}', - '.heading {font-style: italic}' - ] - }) -]; +import { Component } from '@angular/core'; + +export class AppComponent { + constructor() { + this.title = 'Plain ES6 JavaScript'; + } +} + +AppComponent.annotations = [ + new Component({ + moduleId: module.id, + selector: 'my-app', + templateUrl: './app.component.html', + styles: [ + // See hero-di-inject-additional.component + 'hero-host { border: 1px dashed black; display: block; padding: 4px;}', + '.heading {font-style: italic}' + ] + }) +]; diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/app.component.html b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/app.component.html similarity index 96% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/app.component.html rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/app.component.html index 8fbe65ade6..52b9b4580e 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/app/app.component.html +++ b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/app.component.html @@ -1,30 +1,30 @@ - -

{{title}}

-Classes and Class Metadata
-Input and Output Metadata
-Dependency Injection
-Host Metadata
-View and Child Metadata
- -
-

Classes and Class Metadata

- - - -
-

Input and Output Metadata

- - -
-

Dependency Injection

- - - - -
-

Host Metadata

- - -
-

View and Child Metadata

- + +

{{title}}

+Classes and Class Metadata
+Input and Output Metadata
+Dependency Injection
+Host Metadata
+View and Child Metadata
+ +
+

Classes and Class Metadata

+ + + +
+

Input and Output Metadata

+ + +
+

Dependency Injection

+ + + + +
+

Host Metadata

+ + +
+

View and Child Metadata

+ diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/app.module.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/app.module.es6 similarity index 97% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/app.module.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/app.module.es6 index e8c7a8f9c8..f31141e78f 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/app/app.module.es6 +++ b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/app.module.es6 @@ -1,56 +1,56 @@ -import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; - -import { AppComponent } from './app.component'; -import { ConfirmComponent } from './confirm.component'; -// #docregion appimport -import { HeroComponent } from './hero.component'; - -// #enddocregion appimport -import { HeroComponent as HeroDIComponent } from './hero-di.component'; -import { HeroComponent as HeroDIInjectComponent } from './hero-di-inject.component'; -import { HeroComponent as HeroDIInjectAdditionalComponent } from './hero-di-inject-additional.component'; -import { HeroHostComponent } from './hero-host.component'; -import { HeroIOComponent } from './hero-io.component'; -import { HeroComponent as HeroLifecycleComponent } from './hero-lifecycle.component'; -import { HeroQueriesComponent, ViewChildComponent, ContentChildComponent } from './hero-queries.component'; -import { HeroTitleComponent } from './hero-title.component'; - -import { DataService } from './data.service'; - -export class AppModule { } - -AppModule.annotations = [ - new NgModule({ - imports: [ BrowserModule], - declarations: [ - AppComponent, - ConfirmComponent, - HeroComponent, - HeroDIComponent, - HeroDIInjectComponent, - HeroDIInjectAdditionalComponent, - HeroHostComponent, - HeroIOComponent, - HeroLifecycleComponent, - HeroQueriesComponent, ViewChildComponent, ContentChildComponent, - HeroTitleComponent - ], - providers: [ - DataService, - { provide: 'heroName', useValue: 'Windstorm' } - ], - bootstrap: [ AppComponent ], - - // schemas: [ NO_ERRORS_SCHEMA ] // helpful for debugging - }) -] - -/* tslint:disable no-unused-variable */ -// #docregion ng2import -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { - LocationStrategy, - HashLocationStrategy -} from '@angular/common'; -// #enddocregion ng2import +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; + +import { AppComponent } from './app.component'; +import { ConfirmComponent } from './confirm.component'; +// #docregion appimport +import { HeroComponent } from './hero.component'; + +// #enddocregion appimport +import { HeroComponent as HeroDIComponent } from './hero-di.component'; +import { HeroComponent as HeroDIInjectComponent } from './hero-di-inject.component'; +import { HeroComponent as HeroDIInjectAdditionalComponent } from './hero-di-inject-additional.component'; +import { HeroHostComponent } from './hero-host.component'; +import { HeroIOComponent } from './hero-io.component'; +import { HeroComponent as HeroLifecycleComponent } from './hero-lifecycle.component'; +import { HeroQueriesComponent, ViewChildComponent, ContentChildComponent } from './hero-queries.component'; +import { HeroTitleComponent } from './hero-title.component'; + +import { DataService } from './data.service'; + +export class AppModule { } + +AppModule.annotations = [ + new NgModule({ + imports: [ BrowserModule], + declarations: [ + AppComponent, + ConfirmComponent, + HeroComponent, + HeroDIComponent, + HeroDIInjectComponent, + HeroDIInjectAdditionalComponent, + HeroHostComponent, + HeroIOComponent, + HeroLifecycleComponent, + HeroQueriesComponent, ViewChildComponent, ContentChildComponent, + HeroTitleComponent + ], + providers: [ + DataService, + { provide: 'heroName', useValue: 'Windstorm' } + ], + bootstrap: [ AppComponent ], + + // schemas: [ NO_ERRORS_SCHEMA ] // helpful for debugging + }) +] + +/* tslint:disable no-unused-variable */ +// #docregion ng2import +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { + LocationStrategy, + HashLocationStrategy +} from '@angular/common'; +// #enddocregion ng2import diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/confirm.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/confirm.component.es6 similarity index 94% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/confirm.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/confirm.component.es6 index 20c3288766..3e72036952 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/app/confirm.component.es6 +++ b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/confirm.component.es6 @@ -1,32 +1,32 @@ -import { Component, EventEmitter } from '@angular/core'; - -// #docregion -export class ConfirmComponent { - constructor(){ - this.ok = new EventEmitter(); - this.notOk = new EventEmitter(); - } - onOkClick() { - this.ok.emit(true); - } - onNotOkClick() { - this.notOk.emit(true); - } -} - -ConfirmComponent.annotations = [ - new Component({ - moduleId: module.id, - selector: 'app-confirm', - templateUrl: './confirm.component.html', - inputs: [ - 'okMsg', - 'notOkMsg: cancelMsg' - ], - outputs: [ - 'ok', - 'notOk: cancel' - ] - }) -]; -// #enddocregion +import { Component, EventEmitter } from '@angular/core'; + +// #docregion +export class ConfirmComponent { + constructor(){ + this.ok = new EventEmitter(); + this.notOk = new EventEmitter(); + } + onOkClick() { + this.ok.emit(true); + } + onNotOkClick() { + this.notOk.emit(true); + } +} + +ConfirmComponent.annotations = [ + new Component({ + moduleId: module.id, + selector: 'app-confirm', + templateUrl: './confirm.component.html', + inputs: [ + 'okMsg', + 'notOkMsg: cancelMsg' + ], + outputs: [ + 'ok', + 'notOk: cancel' + ] + }) +]; +// #enddocregion diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/confirm.component.html b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/confirm.component.html similarity index 94% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/confirm.component.html rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/confirm.component.html index 917bd1696f..45275d218a 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/app/confirm.component.html +++ b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/confirm.component.html @@ -1,6 +1,6 @@ - - + + diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/data.service.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/data.service.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/data.service.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/data.service.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-di-inject-additional.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-di-inject-additional.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero-di-inject-additional.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-di-inject-additional.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-di-inject.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-di-inject.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero-di-inject.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-di-inject.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-di.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-di.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero-di.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-di.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-host.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-host.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero-host.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-host.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-io.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-io.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero-io.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-io.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-lifecycle.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-lifecycle.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero-lifecycle.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-lifecycle.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-queries.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-queries.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero-queries.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-queries.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-title.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-title.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero-title.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-title.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-title.component.html b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-title.component.html similarity index 96% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero-title.component.html rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-title.component.html index 0e93122d5c..164683cb7c 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero-title.component.html +++ b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-title.component.html @@ -1,4 +1,4 @@ - -

{{titlePrefix}} {{title}}

- -

{{ msg }}

+ +

{{titlePrefix}} {{title}}

+ +

{{ msg }}

diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/app/hero.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero.component.es6 similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js-es6/app/hero.component.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero.component.es6 diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/index.html b/public/docs/_examples/cb-ts-to-js/js-es6/src/index.html similarity index 89% rename from public/docs/_examples/cb-ts-to-js/js-es6/index.html rename to public/docs/_examples/cb-ts-to-js/js-es6/src/index.html index d2bef7c903..2a94db38cc 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/index.html +++ b/public/docs/_examples/cb-ts-to-js/js-es6/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/main.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/main.es6 similarity index 73% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/main.es6 rename to public/docs/_examples/cb-ts-to-js/js-es6/src/main.es6 index 2470c9595e..f22933ba8e 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/main.es6 +++ b/public/docs/_examples/cb-ts-to-js/js-es6/src/main.es6 @@ -1,4 +1,4 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cb-ts-to-js/js/plnkr.json b/public/docs/_examples/cb-ts-to-js/js/plnkr.json index 729230c2d1..5e1eb188be 100644 --- a/public/docs/_examples/cb-ts-to-js/js/plnkr.json +++ b/public/docs/_examples/cb-ts-to-js/js/plnkr.json @@ -1,5 +1,6 @@ { "description": "TypeScript to JavaScript", + "basePath": "src/", "files":[ "!**/karma*.*" ], diff --git a/public/docs/_examples/cb-ts-to-js/js/app/app.component.html b/public/docs/_examples/cb-ts-to-js/js/src/app/app.component.html similarity index 96% rename from public/docs/_examples/cb-ts-to-js/js/app/app.component.html rename to public/docs/_examples/cb-ts-to-js/js/src/app/app.component.html index 6681d60672..4ca26f2657 100644 --- a/public/docs/_examples/cb-ts-to-js/js/app/app.component.html +++ b/public/docs/_examples/cb-ts-to-js/js/src/app/app.component.html @@ -1,47 +1,47 @@ - -

{{title}}

-Classes and Class Metadata
-Interfaces
-Input and Output Metadata
-Dependency Injection
-Host Metadata
-View and Child Metadata
- -
-

Classes and Class Metadata

- -

Classes and Class Metadata (DSL)

- - -
-

Interfaces

- -

Interfaces (DSL)

- - -
-

Input and Output Metadata

- -

Input and Output Metadata (DSL)

- - -
-

Dependency Injection

- - - - -

Dependency Injection (DSL)

- - - - -
-

Host Metadata

- -

Host Metadata (DSL)

- - -
-

View and Child Metadata (DSL)

- + +

{{title}}

+Classes and Class Metadata
+Interfaces
+Input and Output Metadata
+Dependency Injection
+Host Metadata
+View and Child Metadata
+ +
+

Classes and Class Metadata

+ +

Classes and Class Metadata (DSL)

+ + +
+

Interfaces

+ +

Interfaces (DSL)

+ + +
+

Input and Output Metadata

+ +

Input and Output Metadata (DSL)

+ + +
+

Dependency Injection

+ + + + +

Dependency Injection (DSL)

+ + + + +
+

Host Metadata

+ +

Host Metadata (DSL)

+ + +
+

View and Child Metadata (DSL)

+ diff --git a/public/docs/_examples/cb-ts-to-js/js/app/app.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/app.component.js similarity index 95% rename from public/docs/_examples/cb-ts-to-js/js/app/app.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/app.component.js index 9e8c5da535..b6d1ec29b0 100644 --- a/public/docs/_examples/cb-ts-to-js/js/app/app.component.js +++ b/public/docs/_examples/cb-ts-to-js/js/src/app/app.component.js @@ -1,20 +1,20 @@ -(function(app) { - -app.AppComponent = AppComponent; -function AppComponent() { - this.title = 'ES5 JavaScript'; -} - -AppComponent.annotations = [ - new ng.core.Component({ - selector: 'my-app', - templateUrl: 'app/app.component.html', - styles: [ - // See hero-di-inject-additional.component - 'hero-host, hero-host-dsl { border: 1px dashed black; display: block; padding: 4px;}', - '.heading {font-style: italic}' - ] - }) -]; - -})(window.app = window.app || {}); +(function(app) { + +app.AppComponent = AppComponent; +function AppComponent() { + this.title = 'ES5 JavaScript'; +} + +AppComponent.annotations = [ + new ng.core.Component({ + selector: 'my-app', + templateUrl: 'app/app.component.html', + styles: [ + // See hero-di-inject-additional.component + 'hero-host, hero-host-dsl { border: 1px dashed black; display: block; padding: 4px;}', + '.heading {font-style: italic}' + ] + }) +]; + +})(window.app = window.app || {}); diff --git a/public/docs/_examples/cb-ts-to-js/js/app/app.module.js b/public/docs/_examples/cb-ts-to-js/js/src/app/app.module.js similarity index 97% rename from public/docs/_examples/cb-ts-to-js/js/app/app.module.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/app.module.js index 3791fe16da..fc2300a89b 100644 --- a/public/docs/_examples/cb-ts-to-js/js/app/app.module.js +++ b/public/docs/_examples/cb-ts-to-js/js/src/app/app.module.js @@ -1,46 +1,46 @@ -(function(app) { - -app.AppModule = AppModule; -function AppModule() { } - -AppModule.annotations = [ - new ng.core.NgModule({ - imports: [ ng.platformBrowser.BrowserModule ], - declarations: [ - app.AppComponent, - app.ConfirmComponent, app.ConfirmDslComponent, - app.HeroComponent, app.HeroDslComponent, - app.HeroDIComponent, app.HeroDIDslComponent, - app.HeroDIInjectComponent, app.HeroDIInjectDslComponent, - app.HeroDIInjectAdditionalComponent, app.HeroDIInjectAdditionalDslComponent, - app.HeroHostComponent, app.HeroHostDslComponent, - app.HeroIOComponent, app.HeroIODslComponent, - app.HeroLifecycleComponent, app.HeroLifecycleDslComponent, - app.heroQueries.HeroQueriesComponent, app.heroQueries.ViewChildComponent, app.heroQueries.ContentChildComponent, - app.HeroTitleComponent, app.HeroTitleDslComponent - ], - providers: [ - app.DataService, - { provide: 'heroName', useValue: 'Windstorm' } - ], - bootstrap: [ app.AppComponent ], - - // schemas: [ ng.core.NO_ERRORS_SCHEMA ] // helpful for debugging! - }) -] - -})(window.app = window.app || {}); - - -///// For documentation only ///// -(function () { - // #docregion appimport - var HeroComponent = app.HeroComponent; - // #enddocregion appimport - - // #docregion ng2import - var platformBrowserDynamic = ng.platformBrowserDynamic.platformBrowserDynamic; - var LocationStrategy = ng.common.LocationStrategy; - var HashLocationStrategy = ng.common.HashLocationStrategy; - // #enddocregion ng2import -}) +(function(app) { + +app.AppModule = AppModule; +function AppModule() { } + +AppModule.annotations = [ + new ng.core.NgModule({ + imports: [ ng.platformBrowser.BrowserModule ], + declarations: [ + app.AppComponent, + app.ConfirmComponent, app.ConfirmDslComponent, + app.HeroComponent, app.HeroDslComponent, + app.HeroDIComponent, app.HeroDIDslComponent, + app.HeroDIInjectComponent, app.HeroDIInjectDslComponent, + app.HeroDIInjectAdditionalComponent, app.HeroDIInjectAdditionalDslComponent, + app.HeroHostComponent, app.HeroHostDslComponent, + app.HeroIOComponent, app.HeroIODslComponent, + app.HeroLifecycleComponent, app.HeroLifecycleDslComponent, + app.heroQueries.HeroQueriesComponent, app.heroQueries.ViewChildComponent, app.heroQueries.ContentChildComponent, + app.HeroTitleComponent, app.HeroTitleDslComponent + ], + providers: [ + app.DataService, + { provide: 'heroName', useValue: 'Windstorm' } + ], + bootstrap: [ app.AppComponent ], + + // schemas: [ ng.core.NO_ERRORS_SCHEMA ] // helpful for debugging! + }) +] + +})(window.app = window.app || {}); + + +///// For documentation only ///// +(function () { + // #docregion appimport + var HeroComponent = app.HeroComponent; + // #enddocregion appimport + + // #docregion ng2import + var platformBrowserDynamic = ng.platformBrowserDynamic.platformBrowserDynamic; + var LocationStrategy = ng.common.LocationStrategy; + var HashLocationStrategy = ng.common.HashLocationStrategy; + // #enddocregion ng2import +}) diff --git a/public/docs/_examples/cb-ts-to-js/js/app/confirm.component.html b/public/docs/_examples/cb-ts-to-js/js/src/app/confirm.component.html similarity index 94% rename from public/docs/_examples/cb-ts-to-js/js/app/confirm.component.html rename to public/docs/_examples/cb-ts-to-js/js/src/app/confirm.component.html index 917bd1696f..45275d218a 100644 --- a/public/docs/_examples/cb-ts-to-js/js/app/confirm.component.html +++ b/public/docs/_examples/cb-ts-to-js/js/src/app/confirm.component.html @@ -1,6 +1,6 @@ - - + + diff --git a/public/docs/_examples/cb-ts-to-js/js/app/confirm.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/confirm.component.js similarity index 95% rename from public/docs/_examples/cb-ts-to-js/js/app/confirm.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/confirm.component.js index 2cac6b032b..b76d3f54aa 100644 --- a/public/docs/_examples/cb-ts-to-js/js/app/confirm.component.js +++ b/public/docs/_examples/cb-ts-to-js/js/src/app/confirm.component.js @@ -1,75 +1,75 @@ -(function(app) { - - // #docregion - app.ConfirmComponent = ConfirmComponent; - - ConfirmComponent.annotations = [ - new ng.core.Component({ - selector: 'app-confirm', - templateUrl: 'app/confirm.component.html', - inputs: [ - 'okMsg', - 'notOkMsg: cancelMsg' - ], - outputs: [ - 'ok', - 'notOk: cancel' - ] - }) - ]; - - function ConfirmComponent() { - this.ok = new ng.core.EventEmitter(); - this.notOk = new ng.core.EventEmitter(); - } - - ConfirmComponent.prototype.onOkClick = function() { - this.ok.emit(true); - } - - ConfirmComponent.prototype.onNotOkClick = function() { - this.notOk.emit(true); - } - // #enddocregion - -})(window.app = window.app || {}); - -/////// DSL version //////// - -(function(app) { - - var old = app.ConfirmComponent; - - // #docregion dsl - app.ConfirmComponent = ng.core.Component({ - selector: 'app-confirm-dsl', - templateUrl: 'app/confirm.component.html', - inputs: [ - 'okMsg', - 'notOkMsg: cancelMsg' - ], - outputs: [ - 'ok', - 'notOk: cancel' - ] - }) - .Class({ - constructor: function ConfirmComponent() { - this.ok = new ng.core.EventEmitter(); - this.notOk = new ng.core.EventEmitter(); - }, - - onOkClick: function() { - this.ok.emit(true); - }, - - onNotOkClick: function() { - this.notOk.emit(true); - } - }); - // #enddocregion dsl - - app.ConfirmDslComponent = app.ConfirmComponent; - app.ConfirmComponent = old; - -})(window.app = window.app || {}); +(function(app) { + + // #docregion + app.ConfirmComponent = ConfirmComponent; + + ConfirmComponent.annotations = [ + new ng.core.Component({ + selector: 'app-confirm', + templateUrl: 'app/confirm.component.html', + inputs: [ + 'okMsg', + 'notOkMsg: cancelMsg' + ], + outputs: [ + 'ok', + 'notOk: cancel' + ] + }) + ]; + + function ConfirmComponent() { + this.ok = new ng.core.EventEmitter(); + this.notOk = new ng.core.EventEmitter(); + } + + ConfirmComponent.prototype.onOkClick = function() { + this.ok.emit(true); + } + + ConfirmComponent.prototype.onNotOkClick = function() { + this.notOk.emit(true); + } + // #enddocregion + +})(window.app = window.app || {}); + +/////// DSL version //////// + +(function(app) { + + var old = app.ConfirmComponent; + + // #docregion dsl + app.ConfirmComponent = ng.core.Component({ + selector: 'app-confirm-dsl', + templateUrl: 'app/confirm.component.html', + inputs: [ + 'okMsg', + 'notOkMsg: cancelMsg' + ], + outputs: [ + 'ok', + 'notOk: cancel' + ] + }) + .Class({ + constructor: function ConfirmComponent() { + this.ok = new ng.core.EventEmitter(); + this.notOk = new ng.core.EventEmitter(); + }, + + onOkClick: function() { + this.ok.emit(true); + }, + + onNotOkClick: function() { + this.notOk.emit(true); + } + }); + // #enddocregion dsl + + app.ConfirmDslComponent = app.ConfirmComponent; + app.ConfirmComponent = old; + +})(window.app = window.app || {}); diff --git a/public/docs/_examples/cb-ts-to-js/js/app/data.service.js b/public/docs/_examples/cb-ts-to-js/js/src/app/data.service.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/data.service.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/data.service.js diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-di-inject-additional.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-di-inject-additional.component.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-di-inject-additional.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-di-inject-additional.component.js diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-di-inject.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-di-inject.component.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-di-inject.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-di-inject.component.js diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-di.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-di.component.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-di.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-di.component.js diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-host.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-host.component.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-host.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-host.component.js diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-io-dsl.component.html b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-io-dsl.component.html similarity index 97% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-io-dsl.component.html rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-io-dsl.component.html index 48c491be35..c8023ccb45 100644 --- a/public/docs/_examples/cb-ts-to-js/js/app/hero-io-dsl.component.html +++ b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-io-dsl.component.html @@ -1,7 +1,7 @@ - - -OK clicked -Cancel clicked + + +OK clicked +Cancel clicked diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-io.component.html b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-io.component.html similarity index 97% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-io.component.html rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-io.component.html index e6eae2e804..215ddccf92 100644 --- a/public/docs/_examples/cb-ts-to-js/js/app/hero-io.component.html +++ b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-io.component.html @@ -1,7 +1,7 @@ - - -OK clicked -Cancel clicked + + +OK clicked +Cancel clicked diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-io.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-io.component.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-io.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-io.component.js diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-lifecycle.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-lifecycle.component.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-lifecycle.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-lifecycle.component.js diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-queries.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-queries.component.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-queries.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-queries.component.js diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-title.component.html b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-title.component.html similarity index 96% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-title.component.html rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-title.component.html index 0e93122d5c..164683cb7c 100644 --- a/public/docs/_examples/cb-ts-to-js/js/app/hero-title.component.html +++ b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-title.component.html @@ -1,4 +1,4 @@ - -

{{titlePrefix}} {{title}}

- -

{{ msg }}

+ +

{{titlePrefix}} {{title}}

+ +

{{ msg }}

diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-title.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/hero-title.component.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/hero-title.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero-title.component.js diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero.component.js b/public/docs/_examples/cb-ts-to-js/js/src/app/hero.component.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/hero.component.js rename to public/docs/_examples/cb-ts-to-js/js/src/app/hero.component.js diff --git a/public/docs/_examples/cb-ts-to-js/js/index.html b/public/docs/_examples/cb-ts-to-js/js/src/index.html similarity index 97% rename from public/docs/_examples/cb-ts-to-js/js/index.html rename to public/docs/_examples/cb-ts-to-js/js/src/index.html index 91b475df7e..00338aa55a 100644 --- a/public/docs/_examples/cb-ts-to-js/js/index.html +++ b/public/docs/_examples/cb-ts-to-js/js/src/index.html @@ -33,7 +33,7 @@ - + diff --git a/public/docs/_examples/cb-ts-to-js/js/app/main.js b/public/docs/_examples/cb-ts-to-js/js/src/main.js similarity index 100% rename from public/docs/_examples/cb-ts-to-js/js/app/main.js rename to public/docs/_examples/cb-ts-to-js/js/src/main.js diff --git a/public/docs/_examples/cb-ts-to-js/ts/plnkr.json b/public/docs/_examples/cb-ts-to-js/ts/plnkr.json index 5c7a5acd44..447fc5f605 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/plnkr.json +++ b/public/docs/_examples/cb-ts-to-js/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "TypeScript to JavaScript", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/app.component.html b/public/docs/_examples/cb-ts-to-js/ts/src/app/app.component.html similarity index 96% rename from public/docs/_examples/cb-ts-to-js/ts/app/app.component.html rename to public/docs/_examples/cb-ts-to-js/ts/src/app/app.component.html index 7f1efd31a0..995645073a 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/app/app.component.html +++ b/public/docs/_examples/cb-ts-to-js/ts/src/app/app.component.html @@ -1,31 +1,31 @@ - -

{{title}}

-Classes and Class Metadata
-Input and Output Decorators
-Dependency Injection
-Host Metadata
-View and Child Metadata
- -
-

Classes and Class Metadata

- - - -
-

Input and Output Metadata

- - -
-

Dependency Injection

- - - - -
-

Host Metadata

- - - -
-

View and Child Metadata

- + +

{{title}}

+Classes and Class Metadata
+Input and Output Decorators
+Dependency Injection
+Host Metadata
+View and Child Metadata
+ +
+

Classes and Class Metadata

+ + + +
+

Input and Output Metadata

+ + +
+

Dependency Injection

+ + + + +
+

Host Metadata

+ + + +
+

View and Child Metadata

+ diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/app.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/app.component.ts similarity index 96% rename from public/docs/_examples/cb-ts-to-js/ts/app/app.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/app.component.ts index 8c33f6e994..8e7afad0df 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/app/app.component.ts +++ b/public/docs/_examples/cb-ts-to-js/ts/src/app/app.component.ts @@ -1,15 +1,15 @@ -import { Component } from '@angular/core'; - -@Component({ - moduleId: module.id, - selector: 'my-app', - templateUrl: './app.component.html', - styles: [ - // See hero-di-inject-additional.component - 'hero-host, hero-host-meta { border: 1px dashed black; display: block; padding: 4px;}', - '.heading {font-style: italic}' - ] -}) -export class AppComponent { - title = 'TypeScript'; -} +import { Component } from '@angular/core'; + +@Component({ + moduleId: module.id, + selector: 'my-app', + templateUrl: './app.component.html', + styles: [ + // See hero-di-inject-additional.component + 'hero-host, hero-host-meta { border: 1px dashed black; display: block; padding: 4px;}', + '.heading {font-style: italic}' + ] +}) +export class AppComponent { + title = 'TypeScript'; +} diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/app.module.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/app.module.ts similarity index 97% rename from public/docs/_examples/cb-ts-to-js/ts/app/app.module.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/app.module.ts index 8aafe9c9bb..992c3c3514 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/app/app.module.ts +++ b/public/docs/_examples/cb-ts-to-js/ts/src/app/app.module.ts @@ -1,56 +1,56 @@ -/* tslint:disable-next-line:no-unused-variable */ -import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; - -import { AppComponent } from './app.component'; -import { ConfirmComponent } from './confirm.component'; -// #docregion appimport -import { HeroComponent } from './hero.component'; -// #enddocregion appimport -import { HeroComponent as HeroDIComponent } from './hero-di.component'; -import { HeroComponent as HeroDIInjectComponent } from './hero-di-inject.component'; -import { HeroComponent as HeroDIInjectAdditionalComponent } from './hero-di-inject-additional.component'; -import { HeroHostComponent } from './hero-host.component'; -import { HeroHostMetaComponent } from './hero-host-meta.component'; -import { HeroIOComponent } from './hero-io.component'; -import { HeroComponent as HeroLifecycleComponent } from './hero-lifecycle.component'; -import { HeroQueriesComponent, ViewChildComponent, ContentChildComponent } from './hero-queries.component'; -import { HeroTitleComponent } from './hero-title.component'; - -import { DataService } from './data.service'; - -@NgModule({ - imports: [ - BrowserModule - ], - declarations: [ - AppComponent, - ConfirmComponent, - HeroComponent, - HeroDIComponent, - HeroDIInjectComponent, - HeroDIInjectAdditionalComponent, - HeroHostComponent, HeroHostMetaComponent, - HeroIOComponent, - HeroLifecycleComponent, - HeroQueriesComponent, ViewChildComponent, ContentChildComponent, - HeroTitleComponent - ], - providers: [ - DataService, - { provide: 'heroName', useValue: 'Windstorm' } - ], - bootstrap: [ AppComponent ], - - // schemas: [ NO_ERRORS_SCHEMA ] // helpful for debugging! -}) -export class AppModule { } - -/* tslint:disable no-unused-variable */ -// #docregion ng2import -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { - LocationStrategy, - HashLocationStrategy -} from '@angular/common'; -// #enddocregion ng2import +/* tslint:disable-next-line:no-unused-variable */ +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; + +import { AppComponent } from './app.component'; +import { ConfirmComponent } from './confirm.component'; +// #docregion appimport +import { HeroComponent } from './hero.component'; +// #enddocregion appimport +import { HeroComponent as HeroDIComponent } from './hero-di.component'; +import { HeroComponent as HeroDIInjectComponent } from './hero-di-inject.component'; +import { HeroComponent as HeroDIInjectAdditionalComponent } from './hero-di-inject-additional.component'; +import { HeroHostComponent } from './hero-host.component'; +import { HeroHostMetaComponent } from './hero-host-meta.component'; +import { HeroIOComponent } from './hero-io.component'; +import { HeroComponent as HeroLifecycleComponent } from './hero-lifecycle.component'; +import { HeroQueriesComponent, ViewChildComponent, ContentChildComponent } from './hero-queries.component'; +import { HeroTitleComponent } from './hero-title.component'; + +import { DataService } from './data.service'; + +@NgModule({ + imports: [ + BrowserModule + ], + declarations: [ + AppComponent, + ConfirmComponent, + HeroComponent, + HeroDIComponent, + HeroDIInjectComponent, + HeroDIInjectAdditionalComponent, + HeroHostComponent, HeroHostMetaComponent, + HeroIOComponent, + HeroLifecycleComponent, + HeroQueriesComponent, ViewChildComponent, ContentChildComponent, + HeroTitleComponent + ], + providers: [ + DataService, + { provide: 'heroName', useValue: 'Windstorm' } + ], + bootstrap: [ AppComponent ], + + // schemas: [ NO_ERRORS_SCHEMA ] // helpful for debugging! +}) +export class AppModule { } + +/* tslint:disable no-unused-variable */ +// #docregion ng2import +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { + LocationStrategy, + HashLocationStrategy +} from '@angular/common'; +// #enddocregion ng2import diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/confirm.component.html b/public/docs/_examples/cb-ts-to-js/ts/src/app/confirm.component.html similarity index 94% rename from public/docs/_examples/cb-ts-to-js/ts/app/confirm.component.html rename to public/docs/_examples/cb-ts-to-js/ts/src/app/confirm.component.html index 917bd1696f..45275d218a 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/app/confirm.component.html +++ b/public/docs/_examples/cb-ts-to-js/ts/src/app/confirm.component.html @@ -1,6 +1,6 @@ - - + + diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/confirm.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/confirm.component.ts similarity index 95% rename from public/docs/_examples/cb-ts-to-js/ts/app/confirm.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/confirm.component.ts index ee9ee6f884..c9be28c44c 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/app/confirm.component.ts +++ b/public/docs/_examples/cb-ts-to-js/ts/src/app/confirm.component.ts @@ -1,22 +1,22 @@ -import { Component, EventEmitter, Input, Output } from '@angular/core'; - -// #docregion -@Component({ - moduleId: module.id, - selector: 'app-confirm', - templateUrl: './confirm.component.html' -}) -export class ConfirmComponent { - @Input() okMsg = ''; - @Input('cancelMsg') notOkMsg = ''; - @Output() ok = new EventEmitter(); - @Output('cancel') notOk = new EventEmitter(); - - onOkClick() { - this.ok.emit(true); - } - onNotOkClick() { - this.notOk.emit(true); - } -} -// #enddocregion +import { Component, EventEmitter, Input, Output } from '@angular/core'; + +// #docregion +@Component({ + moduleId: module.id, + selector: 'app-confirm', + templateUrl: './confirm.component.html' +}) +export class ConfirmComponent { + @Input() okMsg = ''; + @Input('cancelMsg') notOkMsg = ''; + @Output() ok = new EventEmitter(); + @Output('cancel') notOk = new EventEmitter(); + + onOkClick() { + this.ok.emit(true); + } + onNotOkClick() { + this.notOk.emit(true); + } +} +// #enddocregion diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/data.service.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/data.service.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/data.service.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/data.service.ts diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-di-inject-additional.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-di-inject-additional.component.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-di-inject-additional.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-di-inject-additional.component.ts diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-di-inject.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-di-inject.component.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-di-inject.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-di-inject.component.ts diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-di.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-di.component.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-di.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-di.component.ts diff --git a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-host-meta.component.es6 b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-host-meta.component.ts similarity index 95% rename from public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-host-meta.component.es6 rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-host-meta.component.ts index 25dbe1c21a..fefe4a5470 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6-decorators/app/hero-host-meta.component.es6 +++ b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-host-meta.component.ts @@ -1,44 +1,44 @@ -import { Component } from '@angular/core'; - -// #docregion -@Component({ - selector: 'hero-host-meta', - template: ` -

Hero Host in Metadata

-
Heading clicks: {{clicks}}
- `, - host: { - // HostBindings to the element - '[title]': 'title', - '[class.heading]': 'headingClass', - - // HostListeners on the entire element - '(click)': 'clicked()', - '(mouseenter)': 'enter($event)', - '(mouseleave)': 'leave($event)' - }, - // Styles within (but excluding) the element - styles: ['.active {background-color: coral;}'] -}) -export class HeroHostMetaComponent { - title = 'Hero Host in Metadata Tooltip'; - headingClass = true; - - active = false; - clicks = 0; - - clicked() { - this.clicks += 1; - } - - enter(event: Event) { - this.active = true; - this.headingClass = false; - } - - leave(event: Event) { - this.active = false; - this.headingClass = true; - } -} -// #enddocregion +import { Component } from '@angular/core'; + +// #docregion +@Component({ + selector: 'hero-host-meta', + template: ` +

Hero Host in Metadata

+
Heading clicks: {{clicks}}
+ `, + host: { + // HostBindings to the element + '[title]': 'title', + '[class.heading]': 'headingClass', + + // HostListeners on the entire element + '(click)': 'clicked()', + '(mouseenter)': 'enter($event)', + '(mouseleave)': 'leave($event)' + }, + // Styles within (but excluding) the element + styles: ['.active {background-color: coral;}'] +}) +export class HeroHostMetaComponent { + title = 'Hero Host in Metadata Tooltip'; + headingClass = true; + + active = false; + clicks = 0; + + clicked() { + this.clicks += 1; + } + + enter(event: Event) { + this.active = true; + this.headingClass = false; + } + + leave(event: Event) { + this.active = false; + this.headingClass = true; + } +} +// #enddocregion diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-host.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-host.component.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-host.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-host.component.ts diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-io.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-io.component.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-io.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-io.component.ts diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-lifecycle.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-lifecycle.component.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-lifecycle.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-lifecycle.component.ts diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-queries.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-queries.component.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-queries.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-queries.component.ts diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-title.component.html b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-title.component.html similarity index 96% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-title.component.html rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-title.component.html index 0e93122d5c..164683cb7c 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/app/hero-title.component.html +++ b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-title.component.html @@ -1,4 +1,4 @@ - -

{{titlePrefix}} {{title}}

- -

{{ msg }}

+ +

{{titlePrefix}} {{title}}

+ +

{{ msg }}

diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-title.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero-title.component.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero-title.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero-title.component.ts diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero.component.ts b/public/docs/_examples/cb-ts-to-js/ts/src/app/hero.component.ts similarity index 100% rename from public/docs/_examples/cb-ts-to-js/ts/app/hero.component.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/app/hero.component.ts diff --git a/public/docs/_examples/cb-ts-to-js/ts/index.html b/public/docs/_examples/cb-ts-to-js/ts/src/index.html similarity index 88% rename from public/docs/_examples/cb-ts-to-js/ts/index.html rename to public/docs/_examples/cb-ts-to-js/ts/src/index.html index 0013b162e5..d9ad1f7aef 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/index.html +++ b/public/docs/_examples/cb-ts-to-js/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/main.ts b/public/docs/_examples/cb-ts-to-js/ts/src/main.ts similarity index 73% rename from public/docs/_examples/cb-ts-to-js/ts/app/main.ts rename to public/docs/_examples/cb-ts-to-js/ts/src/main.ts index 7cc80b5964..f22933ba8e 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/app/main.ts +++ b/public/docs/_examples/cb-ts-to-js/ts/src/main.ts @@ -1,4 +1,4 @@ -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/cli-quickstart/ts/bs-config.cli.json b/public/docs/_examples/cli-quickstart/ts/bs-config.cli.json new file mode 100644 index 0000000000..ac61d35f83 --- /dev/null +++ b/public/docs/_examples/cli-quickstart/ts/bs-config.cli.json @@ -0,0 +1,11 @@ +{ + "open": false, + "logLevel": "silent", + "port": 8080, + "server": { + "baseDir": "dist", + "middleware": { + "0": null + } + } +} diff --git a/public/docs/_examples/cli-quickstart/ts/example-config.json b/public/docs/_examples/cli-quickstart/ts/example-config.json index 528f7bd081..313764c3c6 100644 --- a/public/docs/_examples/cli-quickstart/ts/example-config.json +++ b/public/docs/_examples/cli-quickstart/ts/example-config.json @@ -1,4 +1,4 @@ { "build": "build:cli", - "run": "http-server:cli" + "run": "serve:cli" } diff --git a/public/docs/_examples/cli-quickstart/ts/src/styles.css b/public/docs/_examples/cli-quickstart/ts/src/styles.css index 90d4ee0072..d81835d0cd 100644 --- a/public/docs/_examples/cli-quickstart/ts/src/styles.css +++ b/public/docs/_examples/cli-quickstart/ts/src/styles.css @@ -1 +1,116 @@ -/* You can add global styles to this file, and also import other style files */ +/* #docregion , quickstart, toh */ +/* Master Styles */ +h1 { + color: #369; + font-family: Arial, Helvetica, sans-serif; + font-size: 250%; +} +h2, h3 { + color: #444; + font-family: Arial, Helvetica, sans-serif; + font-weight: lighter; +} +body { + margin: 2em; +} +/* #enddocregion quickstart */ +body, input[text], button { + color: #888; + font-family: Cambria, Georgia; +} +/* #enddocregion toh */ +a { + cursor: pointer; + cursor: hand; +} +button { + font-family: Arial; + background-color: #eee; + border: none; + padding: 5px 10px; + border-radius: 4px; + cursor: pointer; + cursor: hand; +} +button:hover { + background-color: #cfd8dc; +} +button:disabled { + background-color: #eee; + color: #aaa; + cursor: auto; +} + +/* Navigation link styles */ +nav a { + padding: 5px 10px; + text-decoration: none; + margin-right: 10px; + margin-top: 10px; + display: inline-block; + background-color: #eee; + border-radius: 4px; +} +nav a:visited, a:link { + color: #607D8B; +} +nav a:hover { + color: #039be5; + background-color: #CFD8DC; +} +nav a.active { + color: #039be5; +} + +/* items class */ +.items { + margin: 0 0 2em 0; + list-style-type: none; + padding: 0; + width: 24em; +} +.items li { + cursor: pointer; + position: relative; + left: 0; + background-color: #EEE; + margin: .5em; + padding: .3em 0; + height: 1.6em; + border-radius: 4px; +} +.items li:hover { + color: #607D8B; + background-color: #DDD; + left: .1em; +} +.items li.selected { + background-color: #CFD8DC; + color: white; +} +.items li.selected:hover { + background-color: #BBD8DC; +} +.items .text { + position: relative; + top: -3px; +} +.items .badge { + display: inline-block; + font-size: small; + color: white; + padding: 0.8em 0.7em 0 0.7em; + background-color: #607D8B; + line-height: 1em; + position: relative; + left: -1px; + top: -4px; + height: 1.8em; + margin-right: .8em; + border-radius: 4px 0 0 4px; +} +/* #docregion toh */ +/* everywhere else */ +* { + font-family: Arial, Helvetica, sans-serif; +} diff --git a/public/docs/_examples/cli-quickstart/ts/src/tsconfig.json b/public/docs/_examples/cli-quickstart/ts/src/tsconfig.json index 1cf713a384..05839ec2ff 100644 --- a/public/docs/_examples/cli-quickstart/ts/src/tsconfig.json +++ b/public/docs/_examples/cli-quickstart/ts/src/tsconfig.json @@ -1,18 +1,21 @@ { "compilerOptions": { - "baseUrl": "", - "declaration": false, + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "lib": ["es6", "dom"], - "mapRoot": "./", - "module": "es6", - "moduleResolution": "node", - "outDir": "../dist/out-tsc", - "sourceMap": true, - "target": "es5", + "lib": [ "es2015", "dom" ], + "noImplicitAny": true, + "suppressImplicitAnyIndexErrors": true, "typeRoots": [ - "../node_modules/@types" + "../../../node_modules/@types/" ] - } + }, + "compileOnSave": true, + "exclude": [ + "node_modules/*", + "**/*-aot.ts" + ] } diff --git a/public/docs/_examples/component-styles/ts/app/main.ts b/public/docs/_examples/component-styles/ts/app/main.ts deleted file mode 100644 index 4acf5de663..0000000000 --- a/public/docs/_examples/component-styles/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/component-styles/ts/plnkr.json b/public/docs/_examples/component-styles/ts/plnkr.json index fb313556fc..e045ebcb38 100644 --- a/public/docs/_examples/component-styles/ts/plnkr.json +++ b/public/docs/_examples/component-styles/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Component Styles", + "basePath": "src/", "files": [ "!**/*.d.ts", "!**/*.js", diff --git a/public/docs/_examples/component-styles/ts/app/app.module.ts b/public/docs/_examples/component-styles/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/component-styles/ts/app/app.module.ts rename to public/docs/_examples/component-styles/ts/src/app/app.module.ts diff --git a/public/docs/_examples/component-styles/ts/app/hero-app-main.component.ts b/public/docs/_examples/component-styles/ts/src/app/hero-app-main.component.ts similarity index 100% rename from public/docs/_examples/component-styles/ts/app/hero-app-main.component.ts rename to public/docs/_examples/component-styles/ts/src/app/hero-app-main.component.ts diff --git a/public/docs/_examples/component-styles/ts/app/hero-app.component.ts b/public/docs/_examples/component-styles/ts/src/app/hero-app.component.ts similarity index 100% rename from public/docs/_examples/component-styles/ts/app/hero-app.component.ts rename to public/docs/_examples/component-styles/ts/src/app/hero-app.component.ts diff --git a/public/docs/_examples/component-styles/ts/app/hero-controls.component.ts b/public/docs/_examples/component-styles/ts/src/app/hero-controls.component.ts similarity index 100% rename from public/docs/_examples/component-styles/ts/app/hero-controls.component.ts rename to public/docs/_examples/component-styles/ts/src/app/hero-controls.component.ts diff --git a/public/docs/_examples/component-styles/ts/app/hero-details-box.css b/public/docs/_examples/component-styles/ts/src/app/hero-details-box.css similarity index 100% rename from public/docs/_examples/component-styles/ts/app/hero-details-box.css rename to public/docs/_examples/component-styles/ts/src/app/hero-details-box.css diff --git a/public/docs/_examples/component-styles/ts/app/hero-details.component.css b/public/docs/_examples/component-styles/ts/src/app/hero-details.component.css similarity index 100% rename from public/docs/_examples/component-styles/ts/app/hero-details.component.css rename to public/docs/_examples/component-styles/ts/src/app/hero-details.component.css diff --git a/public/docs/_examples/component-styles/ts/app/hero-details.component.ts b/public/docs/_examples/component-styles/ts/src/app/hero-details.component.ts similarity index 100% rename from public/docs/_examples/component-styles/ts/app/hero-details.component.ts rename to public/docs/_examples/component-styles/ts/src/app/hero-details.component.ts diff --git a/public/docs/_examples/component-styles/ts/app/hero-team.component.css b/public/docs/_examples/component-styles/ts/src/app/hero-team.component.css similarity index 100% rename from public/docs/_examples/component-styles/ts/app/hero-team.component.css rename to public/docs/_examples/component-styles/ts/src/app/hero-team.component.css diff --git a/public/docs/_examples/component-styles/ts/app/hero-team.component.ts b/public/docs/_examples/component-styles/ts/src/app/hero-team.component.ts similarity index 100% rename from public/docs/_examples/component-styles/ts/app/hero-team.component.ts rename to public/docs/_examples/component-styles/ts/src/app/hero-team.component.ts diff --git a/public/docs/_examples/component-styles/ts/app/hero.ts b/public/docs/_examples/component-styles/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/component-styles/ts/app/hero.ts rename to public/docs/_examples/component-styles/ts/src/app/hero.ts diff --git a/public/docs/_examples/component-styles/ts/app/quest-summary.component.css b/public/docs/_examples/component-styles/ts/src/app/quest-summary.component.css similarity index 100% rename from public/docs/_examples/component-styles/ts/app/quest-summary.component.css rename to public/docs/_examples/component-styles/ts/src/app/quest-summary.component.css diff --git a/public/docs/_examples/component-styles/ts/app/quest-summary.component.html b/public/docs/_examples/component-styles/ts/src/app/quest-summary.component.html similarity index 100% rename from public/docs/_examples/component-styles/ts/app/quest-summary.component.html rename to public/docs/_examples/component-styles/ts/src/app/quest-summary.component.html diff --git a/public/docs/_examples/component-styles/ts/app/quest-summary.component.ts b/public/docs/_examples/component-styles/ts/src/app/quest-summary.component.ts similarity index 100% rename from public/docs/_examples/component-styles/ts/app/quest-summary.component.ts rename to public/docs/_examples/component-styles/ts/src/app/quest-summary.component.ts diff --git a/public/docs/_examples/component-styles/ts/index.html b/public/docs/_examples/component-styles/ts/src/index.html similarity index 91% rename from public/docs/_examples/component-styles/ts/index.html rename to public/docs/_examples/component-styles/ts/src/index.html index 1e1d396969..6e9dc51b32 100644 --- a/public/docs/_examples/component-styles/ts/index.html +++ b/public/docs/_examples/component-styles/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/component-styles/ts/src/main.ts b/public/docs/_examples/component-styles/ts/src/main.ts new file mode 100644 index 0000000000..6b6532d428 --- /dev/null +++ b/public/docs/_examples/component-styles/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/dependency-injection/ts/plnkr.json b/public/docs/_examples/dependency-injection/ts/plnkr.json index dff3dc4110..e8d1ab24b2 100644 --- a/public/docs/_examples/dependency-injection/ts/plnkr.json +++ b/public/docs/_examples/dependency-injection/ts/plnkr.json @@ -1,9 +1,10 @@ { "description": "Dependency Injection", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js", "!**/*.[1,2].*" ], "tags": ["dependency", "di"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/dependency-injection/ts/app/app.component.1.ts b/public/docs/_examples/dependency-injection/ts/src/app/app.component.1.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/app.component.1.ts rename to public/docs/_examples/dependency-injection/ts/src/app/app.component.1.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/app.component.2.ts b/public/docs/_examples/dependency-injection/ts/src/app/app.component.2.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/app.component.2.ts rename to public/docs/_examples/dependency-injection/ts/src/app/app.component.2.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/app.component.ts b/public/docs/_examples/dependency-injection/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/app.component.ts rename to public/docs/_examples/dependency-injection/ts/src/app/app.component.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/app.config.ts b/public/docs/_examples/dependency-injection/ts/src/app/app.config.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/app.config.ts rename to public/docs/_examples/dependency-injection/ts/src/app/app.config.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/app.module.ts b/public/docs/_examples/dependency-injection/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/app.module.ts rename to public/docs/_examples/dependency-injection/ts/src/app/app.module.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/car/car-creations.ts b/public/docs/_examples/dependency-injection/ts/src/app/car/car-creations.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/car/car-creations.ts rename to public/docs/_examples/dependency-injection/ts/src/app/car/car-creations.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/car/car-factory.ts b/public/docs/_examples/dependency-injection/ts/src/app/car/car-factory.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/car/car-factory.ts rename to public/docs/_examples/dependency-injection/ts/src/app/car/car-factory.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/car/car-injector.ts b/public/docs/_examples/dependency-injection/ts/src/app/car/car-injector.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/car/car-injector.ts rename to public/docs/_examples/dependency-injection/ts/src/app/car/car-injector.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/car/car-no-di.ts b/public/docs/_examples/dependency-injection/ts/src/app/car/car-no-di.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/car/car-no-di.ts rename to public/docs/_examples/dependency-injection/ts/src/app/car/car-no-di.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/car/car.component.ts b/public/docs/_examples/dependency-injection/ts/src/app/car/car.component.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/car/car.component.ts rename to public/docs/_examples/dependency-injection/ts/src/app/car/car.component.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/car/car.ts b/public/docs/_examples/dependency-injection/ts/src/app/car/car.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/car/car.ts rename to public/docs/_examples/dependency-injection/ts/src/app/car/car.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/hero-list.component.1.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/hero-list.component.1.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/hero-list.component.1.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/hero-list.component.1.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/hero-list.component.2.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/hero-list.component.2.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/hero-list.component.2.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/hero-list.component.2.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/hero-list.component.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/hero-list.component.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/hero-list.component.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/hero-list.component.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.1.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.service.1.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.1.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.service.1.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.2.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.service.2.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.2.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.service.2.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.provider.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.service.provider.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.provider.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.service.provider.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.service.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/hero.service.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.service.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/hero.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/hero.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/hero.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/heroes.component.1.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/heroes.component.1.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/heroes.component.1.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/heroes.component.1.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/heroes.component.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/heroes.component.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/heroes.component.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/heroes.component.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/heroes/mock-heroes.ts b/public/docs/_examples/dependency-injection/ts/src/app/heroes/mock-heroes.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/heroes/mock-heroes.ts rename to public/docs/_examples/dependency-injection/ts/src/app/heroes/mock-heroes.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/injector.component.ts b/public/docs/_examples/dependency-injection/ts/src/app/injector.component.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/injector.component.ts rename to public/docs/_examples/dependency-injection/ts/src/app/injector.component.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/logger.service.ts b/public/docs/_examples/dependency-injection/ts/src/app/logger.service.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/logger.service.ts rename to public/docs/_examples/dependency-injection/ts/src/app/logger.service.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/providers.component.ts b/public/docs/_examples/dependency-injection/ts/src/app/providers.component.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/providers.component.ts rename to public/docs/_examples/dependency-injection/ts/src/app/providers.component.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/test.component.ts b/public/docs/_examples/dependency-injection/ts/src/app/test.component.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/test.component.ts rename to public/docs/_examples/dependency-injection/ts/src/app/test.component.ts diff --git a/public/docs/_examples/dependency-injection/ts/app/user.service.ts b/public/docs/_examples/dependency-injection/ts/src/app/user.service.ts similarity index 100% rename from public/docs/_examples/dependency-injection/ts/app/user.service.ts rename to public/docs/_examples/dependency-injection/ts/src/app/user.service.ts diff --git a/public/docs/_examples/dependency-injection/ts/index.html b/public/docs/_examples/dependency-injection/ts/src/index.html similarity index 89% rename from public/docs/_examples/dependency-injection/ts/index.html rename to public/docs/_examples/dependency-injection/ts/src/index.html index 48cd93c973..87a9d7e694 100644 --- a/public/docs/_examples/dependency-injection/ts/index.html +++ b/public/docs/_examples/dependency-injection/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/dependency-injection/ts/app/main.ts b/public/docs/_examples/dependency-injection/ts/src/main.ts similarity index 75% rename from public/docs/_examples/dependency-injection/ts/app/main.ts rename to public/docs/_examples/dependency-injection/ts/src/main.ts index 0b0458c3b8..1a1d481719 100644 --- a/public/docs/_examples/dependency-injection/ts/app/main.ts +++ b/public/docs/_examples/dependency-injection/ts/src/main.ts @@ -1,5 +1,5 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; // #docregion bootstrap platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/deployment/ts/app/app.component.ts b/public/docs/_examples/deployment/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/deployment/ts/app/app.component.ts rename to public/docs/_examples/deployment/ts/src/app/app.component.ts diff --git a/public/docs/_examples/deployment/ts/app/app.module.ts b/public/docs/_examples/deployment/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/deployment/ts/app/app.module.ts rename to public/docs/_examples/deployment/ts/src/app/app.module.ts diff --git a/public/docs/_examples/deployment/ts/app/crisis-list.component.ts b/public/docs/_examples/deployment/ts/src/app/crisis-list.component.ts similarity index 100% rename from public/docs/_examples/deployment/ts/app/crisis-list.component.ts rename to public/docs/_examples/deployment/ts/src/app/crisis-list.component.ts diff --git a/public/docs/_examples/deployment/ts/app/hero-list.component.ts b/public/docs/_examples/deployment/ts/src/app/hero-list.component.ts similarity index 100% rename from public/docs/_examples/deployment/ts/app/hero-list.component.ts rename to public/docs/_examples/deployment/ts/src/app/hero-list.component.ts diff --git a/public/docs/_examples/deployment/ts/index.html b/public/docs/_examples/deployment/ts/src/index.html similarity index 90% rename from public/docs/_examples/deployment/ts/index.html rename to public/docs/_examples/deployment/ts/src/index.html index e6d7be7544..ba6ba3dea6 100644 --- a/public/docs/_examples/deployment/ts/index.html +++ b/public/docs/_examples/deployment/ts/src/index.html @@ -1,38 +1,38 @@ - - - - - - - - - Simple Deployment - - - - - - - - - - - - - - - - - - - - - - - loading... - - - + + + + + + + + + Simple Deployment + + + + + + + + + + + + + + + + + + + + + + + loading... + + + diff --git a/public/docs/_examples/deployment/ts/app/main.ts b/public/docs/_examples/deployment/ts/src/main.ts similarity index 89% rename from public/docs/_examples/deployment/ts/app/main.ts rename to public/docs/_examples/deployment/ts/src/main.ts index f7c5326318..6f82bbc745 100644 --- a/public/docs/_examples/deployment/ts/app/main.ts +++ b/public/docs/_examples/deployment/ts/src/main.ts @@ -1,7 +1,7 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; // #docregion enableProdMode import { enableProdMode } from '@angular/core'; diff --git a/public/docs/_examples/deployment/ts/systemjs.config.server.js b/public/docs/_examples/deployment/ts/src/systemjs.config.server.js similarity index 100% rename from public/docs/_examples/deployment/ts/systemjs.config.server.js rename to public/docs/_examples/deployment/ts/src/systemjs.config.server.js diff --git a/public/docs/_examples/displaying-data/ts/plnkr.json b/public/docs/_examples/displaying-data/ts/plnkr.json index ee037aec0b..b4572f0fb6 100644 --- a/public/docs/_examples/displaying-data/ts/plnkr.json +++ b/public/docs/_examples/displaying-data/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Displaying Data", + "basePath": "src/", "files": [ "!**/*.d.ts", "!**/*.js", @@ -7,4 +8,4 @@ "!**/*.[1,2,3].*" ], "tags": ["Template"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/displaying-data/ts/app/app-ctor.component.ts b/public/docs/_examples/displaying-data/ts/src/app/app-ctor.component.ts similarity index 100% rename from public/docs/_examples/displaying-data/ts/app/app-ctor.component.ts rename to public/docs/_examples/displaying-data/ts/src/app/app-ctor.component.ts diff --git a/public/docs/_examples/displaying-data/ts/app/app.component.1.ts b/public/docs/_examples/displaying-data/ts/src/app/app.component.1.ts similarity index 100% rename from public/docs/_examples/displaying-data/ts/app/app.component.1.ts rename to public/docs/_examples/displaying-data/ts/src/app/app.component.1.ts diff --git a/public/docs/_examples/displaying-data/ts/app/app.component.2.ts b/public/docs/_examples/displaying-data/ts/src/app/app.component.2.ts similarity index 100% rename from public/docs/_examples/displaying-data/ts/app/app.component.2.ts rename to public/docs/_examples/displaying-data/ts/src/app/app.component.2.ts diff --git a/public/docs/_examples/displaying-data/ts/app/app.component.3.ts b/public/docs/_examples/displaying-data/ts/src/app/app.component.3.ts similarity index 100% rename from public/docs/_examples/displaying-data/ts/app/app.component.3.ts rename to public/docs/_examples/displaying-data/ts/src/app/app.component.3.ts diff --git a/public/docs/_examples/displaying-data/ts/app/app.component.ts b/public/docs/_examples/displaying-data/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/displaying-data/ts/app/app.component.ts rename to public/docs/_examples/displaying-data/ts/src/app/app.component.ts diff --git a/public/docs/_examples/displaying-data/ts/app/app.module.ts b/public/docs/_examples/displaying-data/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/displaying-data/ts/app/app.module.ts rename to public/docs/_examples/displaying-data/ts/src/app/app.module.ts diff --git a/public/docs/_examples/displaying-data/ts/app/hero.ts b/public/docs/_examples/displaying-data/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/displaying-data/ts/app/hero.ts rename to public/docs/_examples/displaying-data/ts/src/app/hero.ts diff --git a/public/docs/_examples/displaying-data/ts/index.html b/public/docs/_examples/displaying-data/ts/src/index.html similarity index 89% rename from public/docs/_examples/displaying-data/ts/index.html rename to public/docs/_examples/displaying-data/ts/src/index.html index 4cca8d70db..ddcbade46b 100644 --- a/public/docs/_examples/displaying-data/ts/index.html +++ b/public/docs/_examples/displaying-data/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/cb-set-document-title/ts/app/main.ts b/public/docs/_examples/displaying-data/ts/src/main.ts similarity index 75% rename from public/docs/_examples/cb-set-document-title/ts/app/main.ts rename to public/docs/_examples/displaying-data/ts/src/main.ts index 961a226688..f332d1d245 100644 --- a/public/docs/_examples/cb-set-document-title/ts/app/main.ts +++ b/public/docs/_examples/displaying-data/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/forms/js/plnkr.json b/public/docs/_examples/forms/js/plnkr.json index 0105283bd3..946cbb88f6 100644 --- a/public/docs/_examples/forms/js/plnkr.json +++ b/public/docs/_examples/forms/js/plnkr.json @@ -1,4 +1,5 @@ { "description": "Forms", + "basePath": "src/", "files":["app/**/*.js", "**/*.html", "**/*.css"] } diff --git a/public/docs/_examples/forms/js/app/app.component.js b/public/docs/_examples/forms/js/src/app/app.component.js similarity index 100% rename from public/docs/_examples/forms/js/app/app.component.js rename to public/docs/_examples/forms/js/src/app/app.component.js diff --git a/public/docs/_examples/forms/js/app/app.module.js b/public/docs/_examples/forms/js/src/app/app.module.js similarity index 100% rename from public/docs/_examples/forms/js/app/app.module.js rename to public/docs/_examples/forms/js/src/app/app.module.js diff --git a/public/docs/_examples/forms/js/app/hero-form.component.html b/public/docs/_examples/forms/js/src/app/hero-form.component.html similarity index 100% rename from public/docs/_examples/forms/js/app/hero-form.component.html rename to public/docs/_examples/forms/js/src/app/hero-form.component.html diff --git a/public/docs/_examples/forms/js/app/hero-form.component.js b/public/docs/_examples/forms/js/src/app/hero-form.component.js similarity index 100% rename from public/docs/_examples/forms/js/app/hero-form.component.js rename to public/docs/_examples/forms/js/src/app/hero-form.component.js diff --git a/public/docs/_examples/forms/js/app/hero.js b/public/docs/_examples/forms/js/src/app/hero.js similarity index 100% rename from public/docs/_examples/forms/js/app/hero.js rename to public/docs/_examples/forms/js/src/app/hero.js diff --git a/public/docs/_examples/forms/js/forms.css b/public/docs/_examples/forms/js/src/forms.css similarity index 100% rename from public/docs/_examples/forms/js/forms.css rename to public/docs/_examples/forms/js/src/forms.css diff --git a/public/docs/_examples/forms/js/index.html b/public/docs/_examples/forms/js/src/index.html similarity index 97% rename from public/docs/_examples/forms/js/index.html rename to public/docs/_examples/forms/js/src/index.html index 91d7f60a58..9715d2476e 100644 --- a/public/docs/_examples/forms/js/index.html +++ b/public/docs/_examples/forms/js/src/index.html @@ -36,7 +36,7 @@ - + diff --git a/public/docs/_examples/forms/js/app/main.js b/public/docs/_examples/forms/js/src/main.js similarity index 100% rename from public/docs/_examples/forms/js/app/main.js rename to public/docs/_examples/forms/js/src/main.js diff --git a/public/docs/_examples/forms/ts/app/main.ts b/public/docs/_examples/forms/ts/app/main.ts deleted file mode 100644 index 4acf5de663..0000000000 --- a/public/docs/_examples/forms/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/forms/ts/plnkr.json b/public/docs/_examples/forms/ts/plnkr.json index 60063d7d2c..3f0abbfc3d 100644 --- a/public/docs/_examples/forms/ts/plnkr.json +++ b/public/docs/_examples/forms/ts/plnkr.json @@ -1,7 +1,8 @@ { "description": "Forms", + "basePath": "src/", "files":[ - "!**/*.d.ts", + "!**/*.d.ts", "!**/*.js" ] -} \ No newline at end of file +} diff --git a/public/docs/_examples/forms/ts/app/app.component.ts b/public/docs/_examples/forms/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/forms/ts/app/app.component.ts rename to public/docs/_examples/forms/ts/src/app/app.component.ts diff --git a/public/docs/_examples/forms/ts/app/app.module.ts b/public/docs/_examples/forms/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/forms/ts/app/app.module.ts rename to public/docs/_examples/forms/ts/src/app/app.module.ts diff --git a/public/docs/_examples/forms/ts/app/hero-form.component.html b/public/docs/_examples/forms/ts/src/app/hero-form.component.html similarity index 100% rename from public/docs/_examples/forms/ts/app/hero-form.component.html rename to public/docs/_examples/forms/ts/src/app/hero-form.component.html diff --git a/public/docs/_examples/forms/ts/app/hero-form.component.ts b/public/docs/_examples/forms/ts/src/app/hero-form.component.ts similarity index 100% rename from public/docs/_examples/forms/ts/app/hero-form.component.ts rename to public/docs/_examples/forms/ts/src/app/hero-form.component.ts diff --git a/public/docs/_examples/forms/ts/app/hero.ts b/public/docs/_examples/forms/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/forms/ts/app/hero.ts rename to public/docs/_examples/forms/ts/src/app/hero.ts diff --git a/public/docs/_examples/forms/ts/forms.css b/public/docs/_examples/forms/ts/src/forms.css similarity index 100% rename from public/docs/_examples/forms/ts/forms.css rename to public/docs/_examples/forms/ts/src/forms.css diff --git a/public/docs/_examples/forms/ts/index.html b/public/docs/_examples/forms/ts/src/index.html similarity index 92% rename from public/docs/_examples/forms/ts/index.html rename to public/docs/_examples/forms/ts/src/index.html index 38010d27d9..032888ca3e 100644 --- a/public/docs/_examples/forms/ts/index.html +++ b/public/docs/_examples/forms/ts/src/index.html @@ -24,7 +24,7 @@ diff --git a/public/docs/_examples/forms/ts/src/main.ts b/public/docs/_examples/forms/ts/src/main.ts new file mode 100644 index 0000000000..6b6532d428 --- /dev/null +++ b/public/docs/_examples/forms/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/main.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/app/main.ts deleted file mode 100644 index 4acf5de663..0000000000 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/plnkr.json b/public/docs/_examples/hierarchical-dependency-injection/ts/plnkr.json index bbeff4a5c3..ca92b93b06 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/plnkr.json +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Hierachical Dependency Injection", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/app.component.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/app.component.ts similarity index 97% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/app.component.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/app.component.ts index a58b684434..34b5dd0a5a 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/app.component.ts +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/app.component.ts @@ -1,21 +1,21 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'my-app', - template: ` - - - - -

Hierarchical Dependency Injection

- - - - - ` -}) -export class AppComponent { - showCars = true; - showHeroes = true; - showVillains = true; -} +import { Component } from '@angular/core'; + +@Component({ + selector: 'my-app', + template: ` + + + + +

Hierarchical Dependency Injection

+ + + + + ` +}) +export class AppComponent { + showCars = true; + showHeroes = true; + showVillains = true; +} diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/app.module.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/app.module.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/app.module.ts diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/car.components.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/car.components.ts similarity index 95% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/car.components.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/car.components.ts index 2ae18954ad..5b4df19696 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/car.components.ts +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/car.components.ts @@ -1,74 +1,74 @@ -import { Component } from '@angular/core'; - -import { - CarService, CarService2, CarService3, - EngineService, EngineService2, TiresService -} from './car.services'; - -////////// CCarComponent //////////// -@Component({ - selector: 'c-car', - template: `
C: {{description}}
`, - providers: [ - { provide: CarService, useClass: CarService3 } - ] -}) -export class CCarComponent { - description: string; - constructor(carService: CarService) { - this.description = `${carService.getCar().description} (${carService.name})`; - } -} - -////////// BCarComponent //////////// -@Component({ - selector: 'b-car', - template: ` -
B: {{description}}
- - `, - providers: [ - { provide: CarService, useClass: CarService2 }, - { provide: EngineService, useClass: EngineService2 } - ] -}) -export class BCarComponent { - description: string; - constructor(carService: CarService) { - this.description = `${carService.getCar().description} (${carService.name})`; - } -} - -////////// ACarComponent //////////// -@Component({ - selector: 'a-car', - template: ` -
A: {{description}}
- ` -}) -export class ACarComponent { - description: string; - constructor(carService: CarService) { - this.description = `${carService.getCar().description} (${carService.name})`; - } -} -////////// CarsComponent //////////// -@Component({ - selector: 'my-cars', - template: ` -

Cars

- ` -}) -export class CarsComponent { } - -//////////////// - -export const carComponents = [ - CarsComponent, - ACarComponent, BCarComponent, CCarComponent -]; - -// generic car-related services -export const carServices = [ - CarService, EngineService, TiresService -]; +import { Component } from '@angular/core'; + +import { + CarService, CarService2, CarService3, + EngineService, EngineService2, TiresService +} from './car.services'; + +////////// CCarComponent //////////// +@Component({ + selector: 'c-car', + template: `
C: {{description}}
`, + providers: [ + { provide: CarService, useClass: CarService3 } + ] +}) +export class CCarComponent { + description: string; + constructor(carService: CarService) { + this.description = `${carService.getCar().description} (${carService.name})`; + } +} + +////////// BCarComponent //////////// +@Component({ + selector: 'b-car', + template: ` +
B: {{description}}
+ + `, + providers: [ + { provide: CarService, useClass: CarService2 }, + { provide: EngineService, useClass: EngineService2 } + ] +}) +export class BCarComponent { + description: string; + constructor(carService: CarService) { + this.description = `${carService.getCar().description} (${carService.name})`; + } +} + +////////// ACarComponent //////////// +@Component({ + selector: 'a-car', + template: ` +
A: {{description}}
+ ` +}) +export class ACarComponent { + description: string; + constructor(carService: CarService) { + this.description = `${carService.getCar().description} (${carService.name})`; + } +} +////////// CarsComponent //////////// +@Component({ + selector: 'my-cars', + template: ` +

Cars

+ ` +}) +export class CarsComponent { } + +//////////////// + +export const carComponents = [ + CarsComponent, + ACarComponent, BCarComponent, CCarComponent +]; + +// generic car-related services +export const carServices = [ + CarService, EngineService, TiresService +]; diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/car.services.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/car.services.ts similarity index 95% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/car.services.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/car.services.ts index 5851b1e595..03c79270b0 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/car.services.ts +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/car.services.ts @@ -1,95 +1,95 @@ -import { Injectable } from '@angular/core'; - -/// Model /// -export class Car { - name = 'Avocado Motors'; - constructor(public engine: Engine, public tires: Tires) { } - - get description() { - return `${this.name} car with ` + - `${this.engine.cylinders} cylinders and ${this.tires.make} tires.`; - } -} - -export class Engine { - cylinders = 4; -} - -export class Tires { - make = 'Flintstone'; - model = 'Square'; -} - -//// Engine services /// -@Injectable() -export class EngineService { - id = 'E1'; - getEngine() { return new Engine(); } -} - -@Injectable() -export class EngineService2 { - id = 'E2'; - getEngine() { - const eng = new Engine(); - eng.cylinders = 8; - return eng; - } -} - -//// Tire services /// -@Injectable() -export class TiresService { - id = 'T1'; - getTires() { return new Tires(); } -} - -/// Car Services /// -@Injectable() -export class CarService { - id = 'C1'; - constructor( - protected engineService: EngineService, - protected tiresService: TiresService) { } - - getCar() { - return new Car( - this.engineService.getEngine(), - this.tiresService.getTires()); - } - - get name() { - return `${this.id}-${this.engineService.id}-${this.tiresService.id}`; - } -} - -@Injectable() -export class CarService2 extends CarService { - id = 'C2'; - constructor( - protected engineService: EngineService, - protected tiresService: TiresService) { - super(engineService, tiresService); - } - getCar() { - const car = super.getCar(); - car.name = 'BamBam Motors, BroVan 2000'; - return car; - } -} - -@Injectable() -export class CarService3 extends CarService2 { - id = 'C3'; - constructor( - protected engineService: EngineService, - protected tiresService: TiresService) { - super(engineService, tiresService); - } - getCar() { - const car = super.getCar(); - car.name = 'Chizzamm Motors, Calico UltraMax Supreme'; - return car; - } -} - +import { Injectable } from '@angular/core'; + +/// Model /// +export class Car { + name = 'Avocado Motors'; + constructor(public engine: Engine, public tires: Tires) { } + + get description() { + return `${this.name} car with ` + + `${this.engine.cylinders} cylinders and ${this.tires.make} tires.`; + } +} + +export class Engine { + cylinders = 4; +} + +export class Tires { + make = 'Flintstone'; + model = 'Square'; +} + +//// Engine services /// +@Injectable() +export class EngineService { + id = 'E1'; + getEngine() { return new Engine(); } +} + +@Injectable() +export class EngineService2 { + id = 'E2'; + getEngine() { + const eng = new Engine(); + eng.cylinders = 8; + return eng; + } +} + +//// Tire services /// +@Injectable() +export class TiresService { + id = 'T1'; + getTires() { return new Tires(); } +} + +/// Car Services /// +@Injectable() +export class CarService { + id = 'C1'; + constructor( + protected engineService: EngineService, + protected tiresService: TiresService) { } + + getCar() { + return new Car( + this.engineService.getEngine(), + this.tiresService.getTires()); + } + + get name() { + return `${this.id}-${this.engineService.id}-${this.tiresService.id}`; + } +} + +@Injectable() +export class CarService2 extends CarService { + id = 'C2'; + constructor( + protected engineService: EngineService, + protected tiresService: TiresService) { + super(engineService, tiresService); + } + getCar() { + const car = super.getCar(); + car.name = 'BamBam Motors, BroVan 2000'; + return car; + } +} + +@Injectable() +export class CarService3 extends CarService2 { + id = 'C3'; + constructor( + protected engineService: EngineService, + protected tiresService: TiresService) { + super(engineService, tiresService); + } + getCar() { + const car = super.getCar(); + car.name = 'Chizzamm Motors, Calico UltraMax Supreme'; + return car; + } +} + diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.component.css b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.component.css similarity index 96% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.component.css rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.component.css index 9df776e228..1d29a1d168 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.component.css +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.component.css @@ -1,22 +1,22 @@ -.tax-return { border: thin dashed green; margin: 1em; padding: 1em; width: 18em; position: relative } -#name { font-weight: bold;} -#tid { float: right; } -input { font-size: 100%; padding-left: 2px; width: 6em; } -input.num { text-align: right; padding-left: 0; padding-right: 4px; width: 4em;} -fieldset { border: 0 none;} - -.msg { - color: white; - font-size: 150%; - position: absolute; - /*opacity: 0.3;*/ - left: 2px; - top: 3em; - width: 98%; - background-color: green; - text-align: center; -} -.msg.canceled { - color: white; - background-color: red; -} +.tax-return { border: thin dashed green; margin: 1em; padding: 1em; width: 18em; position: relative } +#name { font-weight: bold;} +#tid { float: right; } +input { font-size: 100%; padding-left: 2px; width: 6em; } +input.num { text-align: right; padding-left: 0; padding-right: 4px; width: 4em;} +fieldset { border: 0 none;} + +.msg { + color: white; + font-size: 150%; + position: absolute; + /*opacity: 0.3;*/ + left: 2px; + top: 3em; + width: 98%; + background-color: green; + text-align: center; +} +.msg.canceled { + color: white; + background-color: red; +} diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.component.html b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.component.html similarity index 96% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.component.html rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.component.html index dbed6c7f5b..ebf2dcbaaa 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.component.html +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.component.html @@ -1,20 +1,20 @@ -
-
{{message}}
-
- {{taxReturn.name}} - -
-
- -
-
- -
-
- - - -
-
+
+
{{message}}
+
+ {{taxReturn.name}} + +
+
+ +
+
+ +
+
+ + + +
+
diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.component.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.component.ts similarity index 96% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.component.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.component.ts index 42e813f69b..78d0f97763 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.component.ts +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.component.ts @@ -1,44 +1,44 @@ -// #docregion -import { Component, EventEmitter, Input, Output } from '@angular/core'; -import { HeroTaxReturn } from './hero'; -import { HeroTaxReturnService } from './hero-tax-return.service'; - -@Component({ - moduleId: module.id, - selector: 'hero-tax-return', - templateUrl: './hero-tax-return.component.html', - styleUrls: [ './hero-tax-return.component.css' ], - // #docregion providers - providers: [ HeroTaxReturnService ] - // #enddocregion providers -}) -export class HeroTaxReturnComponent { - message = ''; - @Output() close = new EventEmitter(); - @Input() - get taxReturn(): HeroTaxReturn { - return this.heroTaxReturnService.taxReturn; - } - set taxReturn (htr: HeroTaxReturn) { - this.heroTaxReturnService.taxReturn = htr; - } - - constructor(private heroTaxReturnService: HeroTaxReturnService ) { } - - onCanceled() { - this.flashMessage('Canceled'); - this.heroTaxReturnService.restoreTaxReturn(); - }; - - onClose() { this.close.emit(); }; - - onSaved() { - this.flashMessage('Saved'); - this.heroTaxReturnService.saveTaxReturn(); - } - - flashMessage(msg: string) { - this.message = msg; - setTimeout(() => this.message = '', 500); - } -} +// #docregion +import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { HeroTaxReturn } from './hero'; +import { HeroTaxReturnService } from './hero-tax-return.service'; + +@Component({ + moduleId: module.id, + selector: 'hero-tax-return', + templateUrl: './hero-tax-return.component.html', + styleUrls: [ './hero-tax-return.component.css' ], + // #docregion providers + providers: [ HeroTaxReturnService ] + // #enddocregion providers +}) +export class HeroTaxReturnComponent { + message = ''; + @Output() close = new EventEmitter(); + @Input() + get taxReturn(): HeroTaxReturn { + return this.heroTaxReturnService.taxReturn; + } + set taxReturn (htr: HeroTaxReturn) { + this.heroTaxReturnService.taxReturn = htr; + } + + constructor(private heroTaxReturnService: HeroTaxReturnService ) { } + + onCanceled() { + this.flashMessage('Canceled'); + this.heroTaxReturnService.restoreTaxReturn(); + }; + + onClose() { this.close.emit(); }; + + onSaved() { + this.flashMessage('Saved'); + this.heroTaxReturnService.saveTaxReturn(); + } + + flashMessage(msg: string) { + this.message = msg; + setTimeout(() => this.message = '', 500); + } +} diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.service.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.service.ts similarity index 100% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/hero-tax-return.service.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero-tax-return.service.ts diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/hero.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/hero.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/hero.ts diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/heroes-list.component.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/heroes-list.component.ts similarity index 100% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/heroes-list.component.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/heroes-list.component.ts diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/heroes.service.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/heroes.service.ts similarity index 100% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/heroes.service.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/heroes.service.ts diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/villains-list.component.html b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/villains-list.component.html similarity index 95% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/villains-list.component.html rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/villains-list.component.html index 955a58078e..4d1fb55482 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/villains-list.component.html +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/villains-list.component.html @@ -1,6 +1,6 @@ -
-

Villains

-
    -
  • {{villain.name}}
  • -
-
+
+

Villains

+
    +
  • {{villain.name}}
  • +
+
diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/villains-list.component.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/villains-list.component.ts similarity index 96% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/villains-list.component.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/villains-list.component.ts index dcdbb9d0be..105aaca14f 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/villains-list.component.ts +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/villains-list.component.ts @@ -1,21 +1,21 @@ -// #docregion -import { Component } from '@angular/core'; -import { Observable } from 'rxjs/Observable'; - -import { Villain, VillainsService } from './villains.service'; - -// #docregion metadata -@Component({ - moduleId: module.id, - selector: 'villains-list', - templateUrl: './villains-list.component.html', - providers: [ VillainsService ] -}) -// #enddocregion metadata -export class VillainsListComponent { - villaines: Observable; - - constructor(private villainesService: VillainsService) { - this.villaines = villainesService.getVillains(); - } -} +// #docregion +import { Component } from '@angular/core'; +import { Observable } from 'rxjs/Observable'; + +import { Villain, VillainsService } from './villains.service'; + +// #docregion metadata +@Component({ + moduleId: module.id, + selector: 'villains-list', + templateUrl: './villains-list.component.html', + providers: [ VillainsService ] +}) +// #enddocregion metadata +export class VillainsListComponent { + villaines: Observable; + + constructor(private villainesService: VillainsService) { + this.villaines = villainesService.getVillains(); + } +} diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/app/villains.service.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/villains.service.ts similarity index 95% rename from public/docs/_examples/hierarchical-dependency-injection/ts/app/villains.service.ts rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/app/villains.service.ts index f839bf24c1..3d480c20af 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/app/villains.service.ts +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/app/villains.service.ts @@ -1,17 +1,17 @@ -import { Injectable } from '@angular/core'; - -import { of } from 'rxjs/observable/of'; - -export interface Villain { id: number; name: string; } - -@Injectable() -export class VillainsService { - villains: Villain[] = [ - { id: 1, name: 'Dr. Evil'}, - { id: 2, name: 'Moriarty'} - ]; - - getVillains() { - return of(this.villains); - } -} +import { Injectable } from '@angular/core'; + +import { of } from 'rxjs/observable/of'; + +export interface Villain { id: number; name: string; } + +@Injectable() +export class VillainsService { + villains: Villain[] = [ + { id: 1, name: 'Dr. Evil'}, + { id: 2, name: 'Moriarty'} + ]; + + getVillains() { + return of(this.villains); + } +} diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/index.html b/public/docs/_examples/hierarchical-dependency-injection/ts/src/index.html similarity index 88% rename from public/docs/_examples/hierarchical-dependency-injection/ts/index.html rename to public/docs/_examples/hierarchical-dependency-injection/ts/src/index.html index 32f1ab3ef0..0ea32679e6 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/ts/index.html +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/hierarchical-dependency-injection/ts/src/main.ts b/public/docs/_examples/hierarchical-dependency-injection/ts/src/main.ts new file mode 100644 index 0000000000..6b6532d428 --- /dev/null +++ b/public/docs/_examples/hierarchical-dependency-injection/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/homepage-hello-world/ts/app/main.ts b/public/docs/_examples/homepage-hello-world/ts/app/main.ts deleted file mode 100644 index 4acf5de663..0000000000 --- a/public/docs/_examples/homepage-hello-world/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/homepage-hello-world/ts/plnkr.json b/public/docs/_examples/homepage-hello-world/ts/plnkr.json index 78f6fd979d..bfe6aecc8b 100644 --- a/public/docs/_examples/homepage-hello-world/ts/plnkr.json +++ b/public/docs/_examples/homepage-hello-world/ts/plnkr.json @@ -1,8 +1,9 @@ { "description": "Hello World", + "basePath": "src/", "files":[ - "!**/*.d.ts", + "!**/*.d.ts", "!**/*.js", "!**/*.[1].*" ] -} \ No newline at end of file +} diff --git a/public/docs/_examples/homepage-hello-world/ts/app/app.module.ts b/public/docs/_examples/homepage-hello-world/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/homepage-hello-world/ts/app/app.module.ts rename to public/docs/_examples/homepage-hello-world/ts/src/app/app.module.ts diff --git a/public/docs/_examples/homepage-hello-world/ts/app/hello_world.html b/public/docs/_examples/homepage-hello-world/ts/src/app/hello_world.html similarity index 100% rename from public/docs/_examples/homepage-hello-world/ts/app/hello_world.html rename to public/docs/_examples/homepage-hello-world/ts/src/app/hello_world.html diff --git a/public/docs/_examples/homepage-hello-world/ts/app/hello_world.ts b/public/docs/_examples/homepage-hello-world/ts/src/app/hello_world.ts similarity index 100% rename from public/docs/_examples/homepage-hello-world/ts/app/hello_world.ts rename to public/docs/_examples/homepage-hello-world/ts/src/app/hello_world.ts diff --git a/public/docs/_examples/homepage-hello-world/ts/index.1.html b/public/docs/_examples/homepage-hello-world/ts/src/index.1.html similarity index 91% rename from public/docs/_examples/homepage-hello-world/ts/index.1.html rename to public/docs/_examples/homepage-hello-world/ts/src/index.1.html index 188e8be15a..a92d32fa9c 100644 --- a/public/docs/_examples/homepage-hello-world/ts/index.1.html +++ b/public/docs/_examples/homepage-hello-world/ts/src/index.1.html @@ -19,7 +19,7 @@ diff --git a/public/docs/_examples/homepage-hello-world/ts/index.html b/public/docs/_examples/homepage-hello-world/ts/src/index.html similarity index 90% rename from public/docs/_examples/homepage-hello-world/ts/index.html rename to public/docs/_examples/homepage-hello-world/ts/src/index.html index 22c2e447a2..9dab660d10 100644 --- a/public/docs/_examples/homepage-hello-world/ts/index.html +++ b/public/docs/_examples/homepage-hello-world/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/homepage-hello-world/ts/src/main.ts b/public/docs/_examples/homepage-hello-world/ts/src/main.ts new file mode 100644 index 0000000000..6b6532d428 --- /dev/null +++ b/public/docs/_examples/homepage-hello-world/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/homepage-hello-world/ts/systemjs.config.1.js b/public/docs/_examples/homepage-hello-world/ts/systemjs.config.1.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/homepage-tabs/ts/plnkr.json b/public/docs/_examples/homepage-tabs/ts/plnkr.json index 05ee7a2b9d..c1a33dc8f0 100644 --- a/public/docs/_examples/homepage-tabs/ts/plnkr.json +++ b/public/docs/_examples/homepage-tabs/ts/plnkr.json @@ -1,8 +1,9 @@ { "description": "Tabs", + "basePath": "src/", "files":[ - "!**/*.d.ts", + "!**/*.d.ts", "!**/*.js", "!**/*.[1].*" ] -} \ No newline at end of file +} diff --git a/public/docs/_examples/homepage-tabs/ts/app/app.module.ts b/public/docs/_examples/homepage-tabs/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/homepage-tabs/ts/app/app.module.ts rename to public/docs/_examples/homepage-tabs/ts/src/app/app.module.ts diff --git a/public/docs/_examples/homepage-tabs/ts/app/di_demo.ts b/public/docs/_examples/homepage-tabs/ts/src/app/di_demo.ts similarity index 100% rename from public/docs/_examples/homepage-tabs/ts/app/di_demo.ts rename to public/docs/_examples/homepage-tabs/ts/src/app/di_demo.ts diff --git a/public/docs/_examples/homepage-tabs/ts/app/ui_tabs.ts b/public/docs/_examples/homepage-tabs/ts/src/app/ui_tabs.ts similarity index 100% rename from public/docs/_examples/homepage-tabs/ts/app/ui_tabs.ts rename to public/docs/_examples/homepage-tabs/ts/src/app/ui_tabs.ts diff --git a/public/docs/_examples/homepage-tabs/ts/index.1.html b/public/docs/_examples/homepage-tabs/ts/src/index.1.html similarity index 92% rename from public/docs/_examples/homepage-tabs/ts/index.1.html rename to public/docs/_examples/homepage-tabs/ts/src/index.1.html index 0ca43a1cde..7d0a0131e6 100644 --- a/public/docs/_examples/homepage-tabs/ts/index.1.html +++ b/public/docs/_examples/homepage-tabs/ts/src/index.1.html @@ -20,7 +20,7 @@ diff --git a/public/docs/_examples/homepage-tabs/ts/index.html b/public/docs/_examples/homepage-tabs/ts/src/index.html similarity index 91% rename from public/docs/_examples/homepage-tabs/ts/index.html rename to public/docs/_examples/homepage-tabs/ts/src/index.html index 3d8db47122..d38b36e033 100644 --- a/public/docs/_examples/homepage-tabs/ts/index.html +++ b/public/docs/_examples/homepage-tabs/ts/src/index.html @@ -17,7 +17,7 @@ diff --git a/public/docs/_examples/displaying-data/ts/app/main.ts b/public/docs/_examples/homepage-tabs/ts/src/main.ts similarity index 75% rename from public/docs/_examples/displaying-data/ts/app/main.ts rename to public/docs/_examples/homepage-tabs/ts/src/main.ts index 961a226688..f332d1d245 100644 --- a/public/docs/_examples/displaying-data/ts/app/main.ts +++ b/public/docs/_examples/homepage-tabs/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/homepage-tabs/ts/systemjs.config.1.js b/public/docs/_examples/homepage-tabs/ts/systemjs.config.1.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/homepage-todo/ts/app/main.ts b/public/docs/_examples/homepage-todo/ts/app/main.ts deleted file mode 100644 index 4acf5de663..0000000000 --- a/public/docs/_examples/homepage-todo/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/homepage-todo/ts/plnkr.json b/public/docs/_examples/homepage-todo/ts/plnkr.json index 7fecc539f7..8e69701221 100644 --- a/public/docs/_examples/homepage-todo/ts/plnkr.json +++ b/public/docs/_examples/homepage-todo/ts/plnkr.json @@ -1,8 +1,9 @@ { "description": "Todo", + "basePath": "src/", "files":[ - "!**/*.d.ts", + "!**/*.d.ts", "!**/*.js", "!**/*.[1].*" ] -} \ No newline at end of file +} diff --git a/public/docs/_examples/homepage-todo/ts/app/app.module.ts b/public/docs/_examples/homepage-todo/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/homepage-todo/ts/app/app.module.ts rename to public/docs/_examples/homepage-todo/ts/src/app/app.module.ts diff --git a/public/docs/_examples/homepage-todo/ts/app/todo.ts b/public/docs/_examples/homepage-todo/ts/src/app/todo.ts similarity index 100% rename from public/docs/_examples/homepage-todo/ts/app/todo.ts rename to public/docs/_examples/homepage-todo/ts/src/app/todo.ts diff --git a/public/docs/_examples/homepage-todo/ts/app/todo_app.ts b/public/docs/_examples/homepage-todo/ts/src/app/todo_app.ts similarity index 100% rename from public/docs/_examples/homepage-todo/ts/app/todo_app.ts rename to public/docs/_examples/homepage-todo/ts/src/app/todo_app.ts diff --git a/public/docs/_examples/homepage-todo/ts/app/todo_form.ts b/public/docs/_examples/homepage-todo/ts/src/app/todo_form.ts similarity index 100% rename from public/docs/_examples/homepage-todo/ts/app/todo_form.ts rename to public/docs/_examples/homepage-todo/ts/src/app/todo_form.ts diff --git a/public/docs/_examples/homepage-todo/ts/app/todo_list.ts b/public/docs/_examples/homepage-todo/ts/src/app/todo_list.ts similarity index 100% rename from public/docs/_examples/homepage-todo/ts/app/todo_list.ts rename to public/docs/_examples/homepage-todo/ts/src/app/todo_list.ts diff --git a/public/docs/_examples/homepage-todo/ts/index.1.html b/public/docs/_examples/homepage-todo/ts/src/index.1.html similarity index 92% rename from public/docs/_examples/homepage-todo/ts/index.1.html rename to public/docs/_examples/homepage-todo/ts/src/index.1.html index d215f91d61..2fcc1e01e9 100644 --- a/public/docs/_examples/homepage-todo/ts/index.1.html +++ b/public/docs/_examples/homepage-todo/ts/src/index.1.html @@ -20,7 +20,7 @@ diff --git a/public/docs/_examples/homepage-todo/ts/index.html b/public/docs/_examples/homepage-todo/ts/src/index.html similarity index 91% rename from public/docs/_examples/homepage-todo/ts/index.html rename to public/docs/_examples/homepage-todo/ts/src/index.html index 0fd9acc0c3..e7a656a106 100644 --- a/public/docs/_examples/homepage-todo/ts/index.html +++ b/public/docs/_examples/homepage-todo/ts/src/index.html @@ -17,7 +17,7 @@ diff --git a/public/docs/_examples/homepage-todo/ts/src/main.ts b/public/docs/_examples/homepage-todo/ts/src/main.ts new file mode 100644 index 0000000000..6b6532d428 --- /dev/null +++ b/public/docs/_examples/homepage-todo/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/homepage-todo/ts/systemjs.config.1.js b/public/docs/_examples/homepage-todo/ts/systemjs.config.1.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/main.ts b/public/docs/_examples/lifecycle-hooks/ts/app/main.ts deleted file mode 100644 index 2470c9595e..0000000000 --- a/public/docs/_examples/lifecycle-hooks/ts/app/main.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/lifecycle-hooks/ts/plnkr.json b/public/docs/_examples/lifecycle-hooks/ts/plnkr.json index 21c8aaad89..49290aa804 100644 --- a/public/docs/_examples/lifecycle-hooks/ts/plnkr.json +++ b/public/docs/_examples/lifecycle-hooks/ts/plnkr.json @@ -1,8 +1,9 @@ { "description": "Lifecycle Hooks", + "basePath": "src/", "files":["!**/*.d.ts", "!**/*.js"], "tags": ["lifecycle", "hooks", "OnInit", "OnDestroy", "OnChange", "DoCheck", "AfterContentInit", "AfterContentChecked", "AfterViewInit", "AfterViewChecked"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/after-content.component.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/after-content.component.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/after-content.component.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/after-content.component.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/after-view.component.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/after-view.component.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/after-view.component.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/after-view.component.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/app.component.html b/public/docs/_examples/lifecycle-hooks/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/app.component.html rename to public/docs/_examples/lifecycle-hooks/ts/src/app/app.component.html diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/app.component.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/app.component.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/app.component.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/app.module.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/app.module.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/app.module.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/counter.component.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/counter.component.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/counter.component.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/counter.component.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/do-check-parent.component.html b/public/docs/_examples/lifecycle-hooks/ts/src/app/do-check-parent.component.html similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/do-check-parent.component.html rename to public/docs/_examples/lifecycle-hooks/ts/src/app/do-check-parent.component.html diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/do-check.component.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/do-check.component.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/do-check.component.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/do-check.component.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/logger.service.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/logger.service.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/logger.service.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/logger.service.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/on-changes-parent.component.html b/public/docs/_examples/lifecycle-hooks/ts/src/app/on-changes-parent.component.html similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/on-changes-parent.component.html rename to public/docs/_examples/lifecycle-hooks/ts/src/app/on-changes-parent.component.html diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/on-changes.component.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/on-changes.component.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/on-changes.component.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/on-changes.component.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/peek-a-boo-parent.component.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/peek-a-boo-parent.component.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/peek-a-boo-parent.component.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/peek-a-boo-parent.component.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/peek-a-boo.component.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/peek-a-boo.component.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/peek-a-boo.component.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/peek-a-boo.component.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/spy.component.html b/public/docs/_examples/lifecycle-hooks/ts/src/app/spy.component.html similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/spy.component.html rename to public/docs/_examples/lifecycle-hooks/ts/src/app/spy.component.html diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/spy.component.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/spy.component.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/spy.component.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/spy.component.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/spy.directive.ts b/public/docs/_examples/lifecycle-hooks/ts/src/app/spy.directive.ts similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/app/spy.directive.ts rename to public/docs/_examples/lifecycle-hooks/ts/src/app/spy.directive.ts diff --git a/public/docs/_examples/lifecycle-hooks/ts/index.html b/public/docs/_examples/lifecycle-hooks/ts/src/index.html similarity index 89% rename from public/docs/_examples/lifecycle-hooks/ts/index.html rename to public/docs/_examples/lifecycle-hooks/ts/src/index.html index 71513bf632..cf7059f780 100644 --- a/public/docs/_examples/lifecycle-hooks/ts/index.html +++ b/public/docs/_examples/lifecycle-hooks/ts/src/index.html @@ -17,7 +17,7 @@ diff --git a/public/docs/_examples/lifecycle-hooks/ts/src/main.ts b/public/docs/_examples/lifecycle-hooks/ts/src/main.ts new file mode 100644 index 0000000000..f22933ba8e --- /dev/null +++ b/public/docs/_examples/lifecycle-hooks/ts/src/main.ts @@ -0,0 +1,4 @@ +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/lifecycle-hooks/ts/sample.css b/public/docs/_examples/lifecycle-hooks/ts/src/sample.css similarity index 100% rename from public/docs/_examples/lifecycle-hooks/ts/sample.css rename to public/docs/_examples/lifecycle-hooks/ts/src/sample.css diff --git a/public/docs/_examples/ngmodule/ts/contact.1b.plnkr.json b/public/docs/_examples/ngmodule/ts/contact.1b.plnkr.json index 090a440059..0f61c91f75 100644 --- a/public/docs/_examples/ngmodule/ts/contact.1b.plnkr.json +++ b/public/docs/_examples/ngmodule/ts/contact.1b.plnkr.json @@ -1,9 +1,9 @@ { "description": "Contact NgModule v.1", + "basePath": "src/", "files": [ "app/app.component.1b.ts", "app/app.module.1b.ts", - "app/main.1b.ts", "app/highlight.directive.ts", "app/title.component.html", "app/title.component.ts", @@ -16,6 +16,7 @@ "app/contact/contact.service.ts", "app/contact/highlight.directive.ts", + "main.1b.ts", "styles.css", "index.1b.html" ], diff --git a/public/docs/_examples/ngmodule/ts/contact.2.plnkr.json b/public/docs/_examples/ngmodule/ts/contact.2.plnkr.json index 4ee4638a63..6555b76dcd 100644 --- a/public/docs/_examples/ngmodule/ts/contact.2.plnkr.json +++ b/public/docs/_examples/ngmodule/ts/contact.2.plnkr.json @@ -1,9 +1,9 @@ { "description": "Contact NgModule v.2", + "basePath": "src/", "files": [ "app/app.component.2.ts", "app/app.module.2.ts", - "app/main.2.ts", "app/highlight.directive.ts", "app/title.component.html", "app/title.component.ts", @@ -18,6 +18,7 @@ "app/contact/contact.module.2.ts", "app/contact/highlight.directive.ts", + "main.2.ts", "styles.css", "index.2.html" ], diff --git a/public/docs/_examples/ngmodule/ts/minimal.0.plnkr.json b/public/docs/_examples/ngmodule/ts/minimal.0.plnkr.json index f3b69844c1..e5e37ac4ee 100644 --- a/public/docs/_examples/ngmodule/ts/minimal.0.plnkr.json +++ b/public/docs/_examples/ngmodule/ts/minimal.0.plnkr.json @@ -1,9 +1,10 @@ { "description": "Minimal NgModule", + "basePath": "src/", "files": [ "app/app.component.0.ts", "app/app.module.0.ts", - "app/main.0.ts", + "main.0.ts", "styles.css", "index.0.html" ], diff --git a/public/docs/_examples/ngmodule/ts/plnkr.json b/public/docs/_examples/ngmodule/ts/plnkr.json index 3f10b446f9..4d9d2ec20b 100644 --- a/public/docs/_examples/ngmodule/ts/plnkr.json +++ b/public/docs/_examples/ngmodule/ts/plnkr.json @@ -1,10 +1,10 @@ { "description": "NgModule Final", + "basePath": "src/", "files": [ "app/app.component.ts", "app/app.module.ts", "app/app-routing.module.ts", - "app/main.ts", "app/contact/contact.component.css", "app/contact/contact.component.html", @@ -32,6 +32,7 @@ "app/shared/*.html", "app/shared/*.ts", + "main.ts", "styles.css", "index.html" ], diff --git a/public/docs/_examples/ngmodule/ts/pre-shared.3.plnkr.json b/public/docs/_examples/ngmodule/ts/pre-shared.3.plnkr.json index de789b4a58..9747801604 100644 --- a/public/docs/_examples/ngmodule/ts/pre-shared.3.plnkr.json +++ b/public/docs/_examples/ngmodule/ts/pre-shared.3.plnkr.json @@ -1,10 +1,10 @@ { "description": "NgModule v.3", + "basePath": "src/", "files": [ "app/app.component.3.ts", "app/app.module.3.ts", "app/app-routing.module.3.ts", - "app/main.3.ts", "app/highlight.directive.ts", "app/title.component.html", @@ -32,6 +32,7 @@ "app/hero/hero-routing.module.3.ts", "app/hero/highlight.directive.ts", + "main.3.ts", "styles.css", "index.3.html" ], diff --git a/public/docs/_examples/ngmodule/ts/app/app-routing.module.3.ts b/public/docs/_examples/ngmodule/ts/src/app/app-routing.module.3.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app-routing.module.3.ts rename to public/docs/_examples/ngmodule/ts/src/app/app-routing.module.3.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app-routing.module.ts b/public/docs/_examples/ngmodule/ts/src/app/app-routing.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app-routing.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/app-routing.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.component.0.ts b/public/docs/_examples/ngmodule/ts/src/app/app.component.0.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.component.0.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.component.0.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.component.1.ts b/public/docs/_examples/ngmodule/ts/src/app/app.component.1.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.component.1.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.component.1.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.component.1b.ts b/public/docs/_examples/ngmodule/ts/src/app/app.component.1b.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.component.1b.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.component.1b.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.component.2.ts b/public/docs/_examples/ngmodule/ts/src/app/app.component.2.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.component.2.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.component.2.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.component.3.ts b/public/docs/_examples/ngmodule/ts/src/app/app.component.3.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.component.3.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.component.3.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.component.ts b/public/docs/_examples/ngmodule/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.component.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.component.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.module.0.ts b/public/docs/_examples/ngmodule/ts/src/app/app.module.0.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.module.0.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.module.0.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.module.1.ts b/public/docs/_examples/ngmodule/ts/src/app/app.module.1.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.module.1.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.module.1.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.module.1b.ts b/public/docs/_examples/ngmodule/ts/src/app/app.module.1b.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.module.1b.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.module.1b.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.module.2.ts b/public/docs/_examples/ngmodule/ts/src/app/app.module.2.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.module.2.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.module.2.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.module.3.ts b/public/docs/_examples/ngmodule/ts/src/app/app.module.3.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.module.3.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.module.3.ts diff --git a/public/docs/_examples/ngmodule/ts/app/app.module.ts b/public/docs/_examples/ngmodule/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/app.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/app.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/awesome.pipe.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/awesome.pipe.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/awesome.pipe.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/awesome.pipe.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact-routing.module.3.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/contact-routing.module.3.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact-routing.module.3.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact-routing.module.3.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact-routing.module.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/contact-routing.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact-routing.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact-routing.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact.component.3.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/contact.component.3.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact.component.3.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact.component.3.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact.component.css b/public/docs/_examples/ngmodule/ts/src/app/contact/contact.component.css similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact.component.css rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact.component.css diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact.component.html b/public/docs/_examples/ngmodule/ts/src/app/contact/contact.component.html similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact.component.html rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact.component.html diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact.component.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/contact.component.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact.component.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact.component.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact.module.2.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/contact.module.2.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact.module.2.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact.module.2.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact.module.3.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/contact.module.3.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact.module.3.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact.module.3.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact.module.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/contact.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/contact.service.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/contact.service.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/contact.service.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/contact.service.ts diff --git a/public/docs/_examples/ngmodule/ts/app/contact/highlight.directive.ts b/public/docs/_examples/ngmodule/ts/src/app/contact/highlight.directive.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/contact/highlight.directive.ts rename to public/docs/_examples/ngmodule/ts/src/app/contact/highlight.directive.ts diff --git a/public/docs/_examples/ngmodule/ts/app/core/core.module.ts b/public/docs/_examples/ngmodule/ts/src/app/core/core.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/core/core.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/core/core.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/core/title.component.html b/public/docs/_examples/ngmodule/ts/src/app/core/title.component.html similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/core/title.component.html rename to public/docs/_examples/ngmodule/ts/src/app/core/title.component.html diff --git a/public/docs/_examples/ngmodule/ts/app/core/title.component.ts b/public/docs/_examples/ngmodule/ts/src/app/core/title.component.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/core/title.component.ts rename to public/docs/_examples/ngmodule/ts/src/app/core/title.component.ts diff --git a/public/docs/_examples/ngmodule/ts/app/core/user.service.ts b/public/docs/_examples/ngmodule/ts/src/app/core/user.service.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/core/user.service.ts rename to public/docs/_examples/ngmodule/ts/src/app/core/user.service.ts diff --git a/public/docs/_examples/ngmodule/ts/app/crisis/crisis-detail.component.ts b/public/docs/_examples/ngmodule/ts/src/app/crisis/crisis-detail.component.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/crisis/crisis-detail.component.ts rename to public/docs/_examples/ngmodule/ts/src/app/crisis/crisis-detail.component.ts diff --git a/public/docs/_examples/ngmodule/ts/app/crisis/crisis-list.component.ts b/public/docs/_examples/ngmodule/ts/src/app/crisis/crisis-list.component.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/crisis/crisis-list.component.ts rename to public/docs/_examples/ngmodule/ts/src/app/crisis/crisis-list.component.ts diff --git a/public/docs/_examples/ngmodule/ts/app/crisis/crisis-routing.module.ts b/public/docs/_examples/ngmodule/ts/src/app/crisis/crisis-routing.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/crisis/crisis-routing.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/crisis/crisis-routing.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/crisis/crisis.module.ts b/public/docs/_examples/ngmodule/ts/src/app/crisis/crisis.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/crisis/crisis.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/crisis/crisis.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/crisis/crisis.service.ts b/public/docs/_examples/ngmodule/ts/src/app/crisis/crisis.service.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/crisis/crisis.service.ts rename to public/docs/_examples/ngmodule/ts/src/app/crisis/crisis.service.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/hero-detail.component.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/hero-detail.component.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/hero-detail.component.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/hero-list.component.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/hero-list.component.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/hero-list.component.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/hero-list.component.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/hero-routing.module.3.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/hero-routing.module.3.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/hero-routing.module.3.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/hero-routing.module.3.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/hero-routing.module.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/hero-routing.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/hero-routing.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/hero-routing.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/hero.component.3.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/hero.component.3.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/hero.component.3.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/hero.component.3.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/hero.component.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/hero.component.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/hero.component.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/hero.component.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/hero.module.3.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/hero.module.3.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/hero.module.3.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/hero.module.3.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/hero.module.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/hero.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/hero.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/hero.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/hero.service.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/hero.service.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/hero.service.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/hero.service.ts diff --git a/public/docs/_examples/ngmodule/ts/app/hero/highlight.directive.ts b/public/docs/_examples/ngmodule/ts/src/app/hero/highlight.directive.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/hero/highlight.directive.ts rename to public/docs/_examples/ngmodule/ts/src/app/hero/highlight.directive.ts diff --git a/public/docs/_examples/ngmodule/ts/app/highlight.directive.ts b/public/docs/_examples/ngmodule/ts/src/app/highlight.directive.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/highlight.directive.ts rename to public/docs/_examples/ngmodule/ts/src/app/highlight.directive.ts diff --git a/public/docs/_examples/ngmodule/ts/app/shared/awesome.pipe.ts b/public/docs/_examples/ngmodule/ts/src/app/shared/awesome.pipe.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/shared/awesome.pipe.ts rename to public/docs/_examples/ngmodule/ts/src/app/shared/awesome.pipe.ts diff --git a/public/docs/_examples/ngmodule/ts/app/shared/highlight.directive.ts b/public/docs/_examples/ngmodule/ts/src/app/shared/highlight.directive.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/shared/highlight.directive.ts rename to public/docs/_examples/ngmodule/ts/src/app/shared/highlight.directive.ts diff --git a/public/docs/_examples/ngmodule/ts/app/shared/shared.module.ts b/public/docs/_examples/ngmodule/ts/src/app/shared/shared.module.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/shared/shared.module.ts rename to public/docs/_examples/ngmodule/ts/src/app/shared/shared.module.ts diff --git a/public/docs/_examples/ngmodule/ts/app/title.component.html b/public/docs/_examples/ngmodule/ts/src/app/title.component.html similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/title.component.html rename to public/docs/_examples/ngmodule/ts/src/app/title.component.html diff --git a/public/docs/_examples/ngmodule/ts/app/title.component.ts b/public/docs/_examples/ngmodule/ts/src/app/title.component.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/title.component.ts rename to public/docs/_examples/ngmodule/ts/src/app/title.component.ts diff --git a/public/docs/_examples/ngmodule/ts/app/user.service.ts b/public/docs/_examples/ngmodule/ts/src/app/user.service.ts similarity index 100% rename from public/docs/_examples/ngmodule/ts/app/user.service.ts rename to public/docs/_examples/ngmodule/ts/src/app/user.service.ts diff --git a/public/docs/_examples/ngmodule/ts/index.0.html b/public/docs/_examples/ngmodule/ts/src/index.0.html similarity index 88% rename from public/docs/_examples/ngmodule/ts/index.0.html rename to public/docs/_examples/ngmodule/ts/src/index.0.html index 7019ff4468..2281b9fecb 100644 --- a/public/docs/_examples/ngmodule/ts/index.0.html +++ b/public/docs/_examples/ngmodule/ts/src/index.0.html @@ -14,7 +14,7 @@ diff --git a/public/docs/_examples/ngmodule/ts/index.1.html b/public/docs/_examples/ngmodule/ts/src/index.1.html similarity index 88% rename from public/docs/_examples/ngmodule/ts/index.1.html rename to public/docs/_examples/ngmodule/ts/src/index.1.html index 9eec92ff23..65f7991a26 100644 --- a/public/docs/_examples/ngmodule/ts/index.1.html +++ b/public/docs/_examples/ngmodule/ts/src/index.1.html @@ -14,7 +14,7 @@ diff --git a/public/docs/_examples/ngmodule/ts/index.1b.html b/public/docs/_examples/ngmodule/ts/src/index.1b.html similarity index 88% rename from public/docs/_examples/ngmodule/ts/index.1b.html rename to public/docs/_examples/ngmodule/ts/src/index.1b.html index cd31dea488..b4a89d6549 100644 --- a/public/docs/_examples/ngmodule/ts/index.1b.html +++ b/public/docs/_examples/ngmodule/ts/src/index.1b.html @@ -14,7 +14,7 @@ diff --git a/public/docs/_examples/ngmodule/ts/index.2.html b/public/docs/_examples/ngmodule/ts/src/index.2.html similarity index 88% rename from public/docs/_examples/ngmodule/ts/index.2.html rename to public/docs/_examples/ngmodule/ts/src/index.2.html index 915972b289..72c545f1f3 100644 --- a/public/docs/_examples/ngmodule/ts/index.2.html +++ b/public/docs/_examples/ngmodule/ts/src/index.2.html @@ -14,7 +14,7 @@ diff --git a/public/docs/_examples/ngmodule/ts/index.3.html b/public/docs/_examples/ngmodule/ts/src/index.3.html similarity index 88% rename from public/docs/_examples/ngmodule/ts/index.3.html rename to public/docs/_examples/ngmodule/ts/src/index.3.html index 6da37e37bd..ec55dd984e 100644 --- a/public/docs/_examples/ngmodule/ts/index.3.html +++ b/public/docs/_examples/ngmodule/ts/src/index.3.html @@ -14,7 +14,7 @@ diff --git a/public/docs/_examples/ngmodule/ts/index.html b/public/docs/_examples/ngmodule/ts/src/index.html similarity index 88% rename from public/docs/_examples/ngmodule/ts/index.html rename to public/docs/_examples/ngmodule/ts/src/index.html index 9959fc7922..9fc50c02a5 100644 --- a/public/docs/_examples/ngmodule/ts/index.html +++ b/public/docs/_examples/ngmodule/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/ngmodule/ts/app/main-static.ts b/public/docs/_examples/ngmodule/ts/src/main-static.ts similarity index 83% rename from public/docs/_examples/ngmodule/ts/app/main-static.ts rename to public/docs/_examples/ngmodule/ts/src/main-static.ts index 88a34a49c0..a1bcf466d2 100644 --- a/public/docs/_examples/ngmodule/ts/app/main-static.ts +++ b/public/docs/_examples/ngmodule/ts/src/main-static.ts @@ -5,7 +5,7 @@ import { platformBrowser } from '@angular/platform-browser'; // The app module factory produced by the static offline compiler -import { AppModuleNgFactory } from './app.module.ngfactory'; +import { AppModuleNgFactory } from './app/app.module.ngfactory'; // Launch with the app module factory. platformBrowser().bootstrapModuleFactory(AppModuleNgFactory); diff --git a/public/docs/_examples/ngmodule/ts/app/main.0.ts b/public/docs/_examples/ngmodule/ts/src/main.0.ts similarity index 68% rename from public/docs/_examples/ngmodule/ts/app/main.0.ts rename to public/docs/_examples/ngmodule/ts/src/main.0.ts index bc960c0288..6d1d712f07 100644 --- a/public/docs/_examples/ngmodule/ts/app/main.0.ts +++ b/public/docs/_examples/ngmodule/ts/src/main.0.ts @@ -1,4 +1,4 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module.0'; +import { AppModule } from './app/app.module.0'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/ngmodule/ts/app/main.1.ts b/public/docs/_examples/ngmodule/ts/src/main.1.ts similarity index 68% rename from public/docs/_examples/ngmodule/ts/app/main.1.ts rename to public/docs/_examples/ngmodule/ts/src/main.1.ts index 7e338df785..48129f4cc9 100644 --- a/public/docs/_examples/ngmodule/ts/app/main.1.ts +++ b/public/docs/_examples/ngmodule/ts/src/main.1.ts @@ -1,4 +1,4 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module.1'; +import { AppModule } from './app/app.module.1'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/ngmodule/ts/app/main.1b.ts b/public/docs/_examples/ngmodule/ts/src/main.1b.ts similarity index 68% rename from public/docs/_examples/ngmodule/ts/app/main.1b.ts rename to public/docs/_examples/ngmodule/ts/src/main.1b.ts index b5a4691a41..7a7bfae22f 100644 --- a/public/docs/_examples/ngmodule/ts/app/main.1b.ts +++ b/public/docs/_examples/ngmodule/ts/src/main.1b.ts @@ -1,4 +1,4 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module.1b'; +import { AppModule } from './app/app.module.1b'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/ngmodule/ts/app/main.2.ts b/public/docs/_examples/ngmodule/ts/src/main.2.ts similarity index 68% rename from public/docs/_examples/ngmodule/ts/app/main.2.ts rename to public/docs/_examples/ngmodule/ts/src/main.2.ts index 9aa292669e..c535e2e775 100644 --- a/public/docs/_examples/ngmodule/ts/app/main.2.ts +++ b/public/docs/_examples/ngmodule/ts/src/main.2.ts @@ -1,4 +1,4 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module.2'; +import { AppModule } from './app/app.module.2'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/ngmodule/ts/app/main.3.ts b/public/docs/_examples/ngmodule/ts/src/main.3.ts similarity index 68% rename from public/docs/_examples/ngmodule/ts/app/main.3.ts rename to public/docs/_examples/ngmodule/ts/src/main.3.ts index 64b5d926b9..72f21dd142 100644 --- a/public/docs/_examples/ngmodule/ts/app/main.3.ts +++ b/public/docs/_examples/ngmodule/ts/src/main.3.ts @@ -1,4 +1,4 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module.3'; +import { AppModule } from './app/app.module.3'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/ngmodule/ts/app/main.ts b/public/docs/_examples/ngmodule/ts/src/main.ts similarity index 83% rename from public/docs/_examples/ngmodule/ts/app/main.ts rename to public/docs/_examples/ngmodule/ts/src/main.ts index b6f11ca330..c8424d8c4c 100644 --- a/public/docs/_examples/ngmodule/ts/app/main.ts +++ b/public/docs/_examples/ngmodule/ts/src/main.ts @@ -3,7 +3,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; // The app module -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; // Compile and launch the module platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/pipes/ts/app/main.ts b/public/docs/_examples/pipes/ts/app/main.ts deleted file mode 100644 index 4acf5de663..0000000000 --- a/public/docs/_examples/pipes/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/pipes/ts/plnkr.json b/public/docs/_examples/pipes/ts/plnkr.json index 60e5a54c08..3c07266109 100644 --- a/public/docs/_examples/pipes/ts/plnkr.json +++ b/public/docs/_examples/pipes/ts/plnkr.json @@ -1,7 +1,8 @@ { "description": "Pipes", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js"], "tags": ["pipe"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/pipes/ts/app/app.component.html b/public/docs/_examples/pipes/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/pipes/ts/app/app.component.html rename to public/docs/_examples/pipes/ts/src/app/app.component.html diff --git a/public/docs/_examples/pipes/ts/app/app.component.ts b/public/docs/_examples/pipes/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/app.component.ts rename to public/docs/_examples/pipes/ts/src/app/app.component.ts diff --git a/public/docs/_examples/pipes/ts/app/app.module.ts b/public/docs/_examples/pipes/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/app.module.ts rename to public/docs/_examples/pipes/ts/src/app/app.module.ts diff --git a/public/docs/_examples/pipes/ts/app/exponential-strength.pipe.ts b/public/docs/_examples/pipes/ts/src/app/exponential-strength.pipe.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/exponential-strength.pipe.ts rename to public/docs/_examples/pipes/ts/src/app/exponential-strength.pipe.ts diff --git a/public/docs/_examples/pipes/ts/app/fetch-json.pipe.ts b/public/docs/_examples/pipes/ts/src/app/fetch-json.pipe.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/fetch-json.pipe.ts rename to public/docs/_examples/pipes/ts/src/app/fetch-json.pipe.ts diff --git a/public/docs/_examples/pipes/ts/app/flying-heroes-impure.component.html b/public/docs/_examples/pipes/ts/src/app/flying-heroes-impure.component.html similarity index 100% rename from public/docs/_examples/pipes/ts/app/flying-heroes-impure.component.html rename to public/docs/_examples/pipes/ts/src/app/flying-heroes-impure.component.html diff --git a/public/docs/_examples/pipes/ts/app/flying-heroes.component.html b/public/docs/_examples/pipes/ts/src/app/flying-heroes.component.html similarity index 100% rename from public/docs/_examples/pipes/ts/app/flying-heroes.component.html rename to public/docs/_examples/pipes/ts/src/app/flying-heroes.component.html diff --git a/public/docs/_examples/pipes/ts/app/flying-heroes.component.ts b/public/docs/_examples/pipes/ts/src/app/flying-heroes.component.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/flying-heroes.component.ts rename to public/docs/_examples/pipes/ts/src/app/flying-heroes.component.ts diff --git a/public/docs/_examples/pipes/ts/app/flying-heroes.pipe.ts b/public/docs/_examples/pipes/ts/src/app/flying-heroes.pipe.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/flying-heroes.pipe.ts rename to public/docs/_examples/pipes/ts/src/app/flying-heroes.pipe.ts diff --git a/public/docs/_examples/pipes/ts/app/hero-async-message.component.ts b/public/docs/_examples/pipes/ts/src/app/hero-async-message.component.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/hero-async-message.component.ts rename to public/docs/_examples/pipes/ts/src/app/hero-async-message.component.ts diff --git a/public/docs/_examples/pipes/ts/app/hero-birthday1.component.ts b/public/docs/_examples/pipes/ts/src/app/hero-birthday1.component.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/hero-birthday1.component.ts rename to public/docs/_examples/pipes/ts/src/app/hero-birthday1.component.ts diff --git a/public/docs/_examples/pipes/ts/app/hero-birthday2.component.ts b/public/docs/_examples/pipes/ts/src/app/hero-birthday2.component.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/hero-birthday2.component.ts rename to public/docs/_examples/pipes/ts/src/app/hero-birthday2.component.ts diff --git a/public/docs/_examples/pipes/ts/app/hero-list.component.ts b/public/docs/_examples/pipes/ts/src/app/hero-list.component.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/hero-list.component.ts rename to public/docs/_examples/pipes/ts/src/app/hero-list.component.ts diff --git a/public/docs/_examples/pipes/ts/app/heroes.ts b/public/docs/_examples/pipes/ts/src/app/heroes.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/heroes.ts rename to public/docs/_examples/pipes/ts/src/app/heroes.ts diff --git a/public/docs/_examples/pipes/ts/app/power-boost-calculator.component.ts b/public/docs/_examples/pipes/ts/src/app/power-boost-calculator.component.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/power-boost-calculator.component.ts rename to public/docs/_examples/pipes/ts/src/app/power-boost-calculator.component.ts diff --git a/public/docs/_examples/pipes/ts/app/power-booster.component.ts b/public/docs/_examples/pipes/ts/src/app/power-booster.component.ts similarity index 100% rename from public/docs/_examples/pipes/ts/app/power-booster.component.ts rename to public/docs/_examples/pipes/ts/src/app/power-booster.component.ts diff --git a/public/docs/_examples/pipes/ts/heroes.json b/public/docs/_examples/pipes/ts/src/heroes.json similarity index 100% rename from public/docs/_examples/pipes/ts/heroes.json rename to public/docs/_examples/pipes/ts/src/heroes.json diff --git a/public/docs/_examples/pipes/ts/index.html b/public/docs/_examples/pipes/ts/src/index.html similarity index 88% rename from public/docs/_examples/pipes/ts/index.html rename to public/docs/_examples/pipes/ts/src/index.html index 670182fb2f..fedb5c2e5e 100644 --- a/public/docs/_examples/pipes/ts/index.html +++ b/public/docs/_examples/pipes/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/pipes/ts/src/main.ts b/public/docs/_examples/pipes/ts/src/main.ts new file mode 100644 index 0000000000..6b6532d428 --- /dev/null +++ b/public/docs/_examples/pipes/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/quickstart/js/bs-config.1.json b/public/docs/_examples/quickstart/js/bs-config.1.json new file mode 100644 index 0000000000..4e58595267 --- /dev/null +++ b/public/docs/_examples/quickstart/js/bs-config.1.json @@ -0,0 +1,8 @@ +{ + "server": { + "baseDir": "src", + "routes": { + "/node_modules": "node_modules" + } + } +} diff --git a/public/docs/_examples/quickstart/js/plnkr.json b/public/docs/_examples/quickstart/js/plnkr.json index 16a1c9a6c0..5e24ad9790 100644 --- a/public/docs/_examples/quickstart/js/plnkr.json +++ b/public/docs/_examples/quickstart/js/plnkr.json @@ -1,5 +1,6 @@ { "description": "QuickStart", + "basePath": "src/", "files": [ "!**/*.[1].*" ], diff --git a/public/docs/_examples/quickstart/js/spec.js b/public/docs/_examples/quickstart/js/spec.js deleted file mode 100644 index 83f3eaea94..0000000000 --- a/public/docs/_examples/quickstart/js/spec.js +++ /dev/null @@ -1,9 +0,0 @@ -describe("Jasmine sample test", function() { - - it("1+1 should be 2", function() { - - var result = 1 + 1; - - expect(result).toBe(2); - }); -}); \ No newline at end of file diff --git a/public/docs/_examples/quickstart/js/app/app.component.js b/public/docs/_examples/quickstart/js/src/app/app.component.js similarity index 100% rename from public/docs/_examples/quickstart/js/app/app.component.js rename to public/docs/_examples/quickstart/js/src/app/app.component.js diff --git a/public/docs/_examples/quickstart/js/app/app.module.js b/public/docs/_examples/quickstart/js/src/app/app.module.js similarity index 100% rename from public/docs/_examples/quickstart/js/app/app.module.js rename to public/docs/_examples/quickstart/js/src/app/app.module.js diff --git a/public/docs/_examples/quickstart/js/index.html b/public/docs/_examples/quickstart/js/src/index.html similarity index 97% rename from public/docs/_examples/quickstart/js/index.html rename to public/docs/_examples/quickstart/js/src/index.html index be9453cadd..43d63e9c83 100644 --- a/public/docs/_examples/quickstart/js/index.html +++ b/public/docs/_examples/quickstart/js/src/index.html @@ -27,7 +27,7 @@ - + diff --git a/public/docs/_examples/quickstart/js/app/main.js b/public/docs/_examples/quickstart/js/src/main.js similarity index 100% rename from public/docs/_examples/quickstart/js/app/main.js rename to public/docs/_examples/quickstart/js/src/main.js diff --git a/public/docs/_examples/quickstart/js/styles.1.css b/public/docs/_examples/quickstart/js/src/styles.1.css similarity index 100% rename from public/docs/_examples/quickstart/js/styles.1.css rename to public/docs/_examples/quickstart/js/src/styles.1.css diff --git a/public/docs/_examples/quickstart/ts/bs-config.1.json b/public/docs/_examples/quickstart/ts/bs-config.1.json new file mode 100644 index 0000000000..4e58595267 --- /dev/null +++ b/public/docs/_examples/quickstart/ts/bs-config.1.json @@ -0,0 +1,8 @@ +{ + "server": { + "baseDir": "src", + "routes": { + "/node_modules": "node_modules" + } + } +} diff --git a/public/docs/_examples/quickstart/ts/plnkr.json b/public/docs/_examples/quickstart/ts/plnkr.json index f9f54dea37..5fb55b50ad 100644 --- a/public/docs/_examples/quickstart/ts/plnkr.json +++ b/public/docs/_examples/quickstart/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "QuickStart", + "basePath": "src/", "files": [ "app/app.component.ts", "index.html" diff --git a/public/docs/_examples/quickstart/ts/app/app.component.ts b/public/docs/_examples/quickstart/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/quickstart/ts/app/app.component.ts rename to public/docs/_examples/quickstart/ts/src/app/app.component.ts diff --git a/public/docs/_examples/quickstart/ts/app/app.module.ts b/public/docs/_examples/quickstart/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/quickstart/ts/app/app.module.ts rename to public/docs/_examples/quickstart/ts/src/app/app.module.ts diff --git a/public/docs/_examples/quickstart/ts/index.html b/public/docs/_examples/quickstart/ts/src/index.html similarity index 92% rename from public/docs/_examples/quickstart/ts/index.html rename to public/docs/_examples/quickstart/ts/src/index.html index f1ebb9587c..a6d62dae0a 100644 --- a/public/docs/_examples/quickstart/ts/index.html +++ b/public/docs/_examples/quickstart/ts/src/index.html @@ -23,7 +23,7 @@ diff --git a/public/docs/_examples/cb-component-relative-paths/ts/app/main.ts b/public/docs/_examples/quickstart/ts/src/main.ts similarity index 74% rename from public/docs/_examples/cb-component-relative-paths/ts/app/main.ts rename to public/docs/_examples/quickstart/ts/src/main.ts index 6af7a5b2ae..311c44b76d 100644 --- a/public/docs/_examples/cb-component-relative-paths/ts/app/main.ts +++ b/public/docs/_examples/quickstart/ts/src/main.ts @@ -1,5 +1,5 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/quickstart/ts/tsconfig.1.json b/public/docs/_examples/quickstart/ts/src/tsconfig.1.json similarity index 100% rename from public/docs/_examples/quickstart/ts/tsconfig.1.json rename to public/docs/_examples/quickstart/ts/src/tsconfig.1.json diff --git a/public/docs/_examples/reactive-forms/ts/final.plnkr.json b/public/docs/_examples/reactive-forms/ts/final.plnkr.json index 3d3de08c39..41481acc99 100644 --- a/public/docs/_examples/reactive-forms/ts/final.plnkr.json +++ b/public/docs/_examples/reactive-forms/ts/final.plnkr.json @@ -1,5 +1,6 @@ { "description": "Angular Reactive Forms (final)", + "basePath": "src/", "files":[ "styles.css", @@ -12,7 +13,7 @@ "app/hero-list.component.html", "app/hero-list.component.ts", - "app/main-final.ts", + "main-final.ts", "index-final.html" ], "main": "index-final.html", diff --git a/public/docs/_examples/reactive-forms/ts/app/app.component.1.ts b/public/docs/_examples/reactive-forms/ts/src/app/app.component.1.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/app.component.1.ts rename to public/docs/_examples/reactive-forms/ts/src/app/app.component.1.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/app.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/app.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/app.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/app.module.ts b/public/docs/_examples/reactive-forms/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/app.module.ts rename to public/docs/_examples/reactive-forms/ts/src/app/app.module.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/data-model.ts b/public/docs/_examples/reactive-forms/ts/src/app/data-model.ts similarity index 94% rename from public/docs/_examples/reactive-forms/ts/app/data-model.ts rename to public/docs/_examples/reactive-forms/ts/src/app/data-model.ts index aaebfacb47..ad01ddee56 100644 --- a/public/docs/_examples/reactive-forms/ts/app/data-model.ts +++ b/public/docs/_examples/reactive-forms/ts/src/app/data-model.ts @@ -1,40 +1,40 @@ -// #docregion -// #docregion model-classes -export class Hero { - id = 0; - name = ''; - addresses: Address[]; -} - -export class Address { - street = ''; - city = ''; - state = ''; - zip = ''; -} -// #enddocregion model-classes - -export const heroes: Hero[] = [ - { - id: 1, - name: 'Whirlwind', - addresses: [ - {street: '123 Main', city: 'Anywhere', state: 'CA', zip: '94801'}, - {street: '456 Maple', city: 'Somewhere', state: 'VA', zip: '23226'}, - ] - }, - { - id: 2, - name: 'Bombastic', - addresses: [ - {street: '789 Elm', city: 'Smallville', state: 'OH', zip: '04501'}, - ] - }, - { - id: 3, - name: 'Magneta', - addresses: [ ] - }, -]; - -export const states = ['CA', 'MD', 'OH', 'VA']; +// #docregion +// #docregion model-classes +export class Hero { + id = 0; + name = ''; + addresses: Address[]; +} + +export class Address { + street = ''; + city = ''; + state = ''; + zip = ''; +} +// #enddocregion model-classes + +export const heroes: Hero[] = [ + { + id: 1, + name: 'Whirlwind', + addresses: [ + {street: '123 Main', city: 'Anywhere', state: 'CA', zip: '94801'}, + {street: '456 Maple', city: 'Somewhere', state: 'VA', zip: '23226'}, + ] + }, + { + id: 2, + name: 'Bombastic', + addresses: [ + {street: '789 Elm', city: 'Smallville', state: 'OH', zip: '04501'}, + ] + }, + { + id: 3, + name: 'Magneta', + addresses: [ ] + }, +]; + +export const states = ['CA', 'MD', 'OH', 'VA']; diff --git a/public/docs/_examples/reactive-forms/ts/app/demo.component.html b/public/docs/_examples/reactive-forms/ts/src/app/demo.component.html similarity index 96% rename from public/docs/_examples/reactive-forms/ts/app/demo.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/demo.component.html index be74a7bc53..1caae127af 100644 --- a/public/docs/_examples/reactive-forms/ts/app/demo.component.html +++ b/public/docs/_examples/reactive-forms/ts/src/app/demo.component.html @@ -1,40 +1,40 @@ -
-

Reactive Forms

-

Pick a demo: - -

- -
- -
- - - - - - - -
- -

Loading heroes ...

-

Select a hero:

- - - -
-
-

Hero Detail

-

Editing: {{selectedHero.name}}

- - - - -
-
-
-
+
+

Reactive Forms

+

Pick a demo: + +

+ +
+ +
+ + + + + + + +
+ +

Loading heroes ...

+

Select a hero:

+ + + +
+
+

Hero Detail

+

Editing: {{selectedHero.name}}

+ + + + +
+
+
+
diff --git a/public/docs/_examples/reactive-forms/ts/app/demo.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/demo.component.ts similarity index 95% rename from public/docs/_examples/reactive-forms/ts/app/demo.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/demo.component.ts index d24d7b5a38..5e3a95636d 100644 --- a/public/docs/_examples/reactive-forms/ts/app/demo.component.ts +++ b/public/docs/_examples/reactive-forms/ts/src/app/demo.component.ts @@ -1,48 +1,48 @@ -/* tslint:disable:member-ordering */ -import { Component } from '@angular/core'; -import { Observable } from 'rxjs/Observable'; - -import { Hero } from './data-model'; -import { HeroService } from './hero.service'; - -@Component({ - moduleId: module.id, - selector: 'my-app', - templateUrl: 'demo.component.html' -}) -export class DemoComponent { - - demos: string[] = [ - 'Just a FormControl', - 'FormControl in a FormGroup', - 'Simple FormBuilder group', - 'Group with multiple controls', - 'Nested FormBuilder group', - 'PatchValue', - 'SetValue', - 'FormArray', - 'Final'].map(n => n + ' Demo'); - - final = this.demos.length; - demo = this.final; // current demo - - heroes: Observable; - isLoading = false; - selectedHero: Hero; - - constructor(private heroService: HeroService) { } - - getHeroes() { - this.isLoading = true; - this.heroes = this.heroService.getHeroes() - .finally(() => this.isLoading = false); - this.selectedHero = undefined; - } - - select(hero: Hero) { this.selectedHero = hero; } - - selectDemo(demo: number) { - this.demo = demo + 1; - this.getHeroes(); - } -} +/* tslint:disable:member-ordering */ +import { Component } from '@angular/core'; +import { Observable } from 'rxjs/Observable'; + +import { Hero } from './data-model'; +import { HeroService } from './hero.service'; + +@Component({ + moduleId: module.id, + selector: 'my-app', + templateUrl: 'demo.component.html' +}) +export class DemoComponent { + + demos: string[] = [ + 'Just a FormControl', + 'FormControl in a FormGroup', + 'Simple FormBuilder group', + 'Group with multiple controls', + 'Nested FormBuilder group', + 'PatchValue', + 'SetValue', + 'FormArray', + 'Final'].map(n => n + ' Demo'); + + final = this.demos.length; + demo = this.final; // current demo + + heroes: Observable; + isLoading = false; + selectedHero: Hero; + + constructor(private heroService: HeroService) { } + + getHeroes() { + this.isLoading = true; + this.heroes = this.heroService.getHeroes() + .finally(() => this.isLoading = false); + this.selectedHero = undefined; + } + + select(hero: Hero) { this.selectedHero = hero; } + + selectDemo(demo: number) { + this.demo = demo + 1; + this.getHeroes(); + } +} diff --git a/public/docs/_examples/reactive-forms/ts/app/demo.module.ts b/public/docs/_examples/reactive-forms/ts/src/app/demo.module.ts similarity index 97% rename from public/docs/_examples/reactive-forms/ts/app/demo.module.ts rename to public/docs/_examples/reactive-forms/ts/src/app/demo.module.ts index 4dd5d29d25..dac9145ca9 100644 --- a/public/docs/_examples/reactive-forms/ts/app/demo.module.ts +++ b/public/docs/_examples/reactive-forms/ts/src/app/demo.module.ts @@ -1,33 +1,33 @@ -import { NgModule } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; -import { ReactiveFormsModule } from '@angular/forms'; - -import { AppModule } from './app.module'; -import { DemoComponent } from './demo.component'; -import { HeroDetailComponent1 } from './hero-detail-1.component'; -import { HeroDetailComponent2 } from './hero-detail-2.component'; -import { HeroDetailComponent3 } from './hero-detail-3.component'; -import { HeroDetailComponent4 } from './hero-detail-4.component'; -import { HeroDetailComponent5 } from './hero-detail-5.component'; -import { HeroDetailComponent6 } from './hero-detail-6.component'; -import { HeroDetailComponent7 } from './hero-detail-7.component'; -import { HeroDetailComponent8 } from './hero-detail-8.component'; - -@NgModule({ - imports: [ - BrowserModule, - ReactiveFormsModule, - AppModule, - ], - declarations: [ DemoComponent, - HeroDetailComponent1, - HeroDetailComponent2, - HeroDetailComponent3, - HeroDetailComponent4, - HeroDetailComponent5, - HeroDetailComponent6, - HeroDetailComponent7, - HeroDetailComponent8], - bootstrap: [ DemoComponent ] -}) -export class DemoModule { } +import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; +import { ReactiveFormsModule } from '@angular/forms'; + +import { AppModule } from './app.module'; +import { DemoComponent } from './demo.component'; +import { HeroDetailComponent1 } from './hero-detail-1.component'; +import { HeroDetailComponent2 } from './hero-detail-2.component'; +import { HeroDetailComponent3 } from './hero-detail-3.component'; +import { HeroDetailComponent4 } from './hero-detail-4.component'; +import { HeroDetailComponent5 } from './hero-detail-5.component'; +import { HeroDetailComponent6 } from './hero-detail-6.component'; +import { HeroDetailComponent7 } from './hero-detail-7.component'; +import { HeroDetailComponent8 } from './hero-detail-8.component'; + +@NgModule({ + imports: [ + BrowserModule, + ReactiveFormsModule, + AppModule, + ], + declarations: [ DemoComponent, + HeroDetailComponent1, + HeroDetailComponent2, + HeroDetailComponent3, + HeroDetailComponent4, + HeroDetailComponent5, + HeroDetailComponent6, + HeroDetailComponent7, + HeroDetailComponent8], + bootstrap: [ DemoComponent ] +}) +export class DemoModule { } diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-1.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-1.component.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-1.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-1.component.html diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-1.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-1.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-1.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-1.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-2.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-2.component.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-2.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-2.component.html diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-2.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-2.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-2.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-2.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-3.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-3.component.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-3.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-3.component.html diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-3.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-3.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-3.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-3.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-3a.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-3a.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-3a.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-3a.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-4.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-4.component.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-4.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-4.component.html diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-4.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-4.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-4.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-4.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-5.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-5.component.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-5.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-5.component.html diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-5.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-5.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-5.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-5.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-6.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-6.component.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-6.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-6.component.html diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-6.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-6.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-6.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-6.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-7.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-7.component.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-7.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-7.component.html diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-7.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-7.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-7.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-7.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-8.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-8.component.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-8.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-8.component.html diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail-8.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail-8.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail-8.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail-8.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail.component.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail.component.html diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-detail.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/reactive-forms/ts/app/hero-detail.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-detail.component.ts diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-list.component.1.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-list.component.1.html similarity index 96% rename from public/docs/_examples/reactive-forms/ts/app/hero-list.component.1.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-list.component.1.html index 3bdc700564..fa76c84f54 100644 --- a/public/docs/_examples/reactive-forms/ts/app/hero-list.component.1.html +++ b/public/docs/_examples/reactive-forms/ts/src/app/hero-list.component.1.html @@ -1,8 +1,8 @@ - - - -
- -
+ + + +
+ +
diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-list.component.html b/public/docs/_examples/reactive-forms/ts/src/app/hero-list.component.html similarity index 96% rename from public/docs/_examples/reactive-forms/ts/app/hero-list.component.html rename to public/docs/_examples/reactive-forms/ts/src/app/hero-list.component.html index 9767b7a318..d0fb2ee920 100644 --- a/public/docs/_examples/reactive-forms/ts/app/hero-list.component.html +++ b/public/docs/_examples/reactive-forms/ts/src/app/hero-list.component.html @@ -1,17 +1,17 @@ - -

Loading heroes ...

-

Select a hero:

- - - -
-
-

Hero Detail

-

Editing: {{selectedHero.name}}

- - - -
+ +

Loading heroes ...

+

Select a hero:

+ + + +
+
+

Hero Detail

+

Editing: {{selectedHero.name}}

+ + + +
diff --git a/public/docs/_examples/reactive-forms/ts/app/hero-list.component.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero-list.component.ts similarity index 96% rename from public/docs/_examples/reactive-forms/ts/app/hero-list.component.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero-list.component.ts index b91c6413ce..58fb2e7991 100644 --- a/public/docs/_examples/reactive-forms/ts/app/hero-list.component.ts +++ b/public/docs/_examples/reactive-forms/ts/src/app/hero-list.component.ts @@ -1,32 +1,32 @@ -// #docregion -import { Component, OnInit } from '@angular/core'; -import { Observable } from 'rxjs/Observable'; -import 'rxjs/add/operator/finally'; - -import { Hero } from './data-model'; -import { HeroService } from './hero.service'; - -@Component({ - moduleId: module.id, - selector: 'hero-list', - templateUrl: 'hero-list.component.html' -}) -export class HeroListComponent implements OnInit { - heroes: Observable; - isLoading = false; - selectedHero: Hero; - - constructor(private heroService: HeroService) { } - - ngOnInit() { this.getHeroes(); } - - getHeroes() { - this.isLoading = true; - this.heroes = this.heroService.getHeroes() - // Todo: error handling - .finally(() => this.isLoading = false); - this.selectedHero = undefined; - } - - select(hero: Hero) { this.selectedHero = hero; } -} +// #docregion +import { Component, OnInit } from '@angular/core'; +import { Observable } from 'rxjs/Observable'; +import 'rxjs/add/operator/finally'; + +import { Hero } from './data-model'; +import { HeroService } from './hero.service'; + +@Component({ + moduleId: module.id, + selector: 'hero-list', + templateUrl: 'hero-list.component.html' +}) +export class HeroListComponent implements OnInit { + heroes: Observable; + isLoading = false; + selectedHero: Hero; + + constructor(private heroService: HeroService) { } + + ngOnInit() { this.getHeroes(); } + + getHeroes() { + this.isLoading = true; + this.heroes = this.heroService.getHeroes() + // Todo: error handling + .finally(() => this.isLoading = false); + this.selectedHero = undefined; + } + + select(hero: Hero) { this.selectedHero = hero; } +} diff --git a/public/docs/_examples/reactive-forms/ts/app/hero.service.ts b/public/docs/_examples/reactive-forms/ts/src/app/hero.service.ts similarity index 96% rename from public/docs/_examples/reactive-forms/ts/app/hero.service.ts rename to public/docs/_examples/reactive-forms/ts/src/app/hero.service.ts index 4a815e6dbe..6600586de7 100644 --- a/public/docs/_examples/reactive-forms/ts/app/hero.service.ts +++ b/public/docs/_examples/reactive-forms/ts/src/app/hero.service.ts @@ -1,26 +1,26 @@ -// #docregion -import { Injectable } from '@angular/core'; - -import { Observable } from 'rxjs/Observable'; -import { of } from 'rxjs/observable/of'; -import 'rxjs/add/operator/delay'; - -import { Hero, heroes } from './data-model'; - -@Injectable() -export class HeroService { - - delayMs = 500; - - // Fake server get; assume nothing can go wrong - getHeroes(): Observable { - return of(heroes).delay(this.delayMs); // simulate latency with delay - } - - // Fake server update; assume nothing can go wrong - updateHero(hero: Hero): Observable { - const oldHero = heroes.find(h => h.id === hero.id); - const newHero = Object.assign(oldHero, hero); // Demo: mutate cached hero - return of(newHero).delay(this.delayMs); // simulate latency with delay - } -} +// #docregion +import { Injectable } from '@angular/core'; + +import { Observable } from 'rxjs/Observable'; +import { of } from 'rxjs/observable/of'; +import 'rxjs/add/operator/delay'; + +import { Hero, heroes } from './data-model'; + +@Injectable() +export class HeroService { + + delayMs = 500; + + // Fake server get; assume nothing can go wrong + getHeroes(): Observable { + return of(heroes).delay(this.delayMs); // simulate latency with delay + } + + // Fake server update; assume nothing can go wrong + updateHero(hero: Hero): Observable { + const oldHero = heroes.find(h => h.id === hero.id); + const newHero = Object.assign(oldHero, hero); // Demo: mutate cached hero + return of(newHero).delay(this.delayMs); // simulate latency with delay + } +} diff --git a/public/docs/_examples/reactive-forms/ts/app/main-final.ts b/public/docs/_examples/reactive-forms/ts/src/app/main-final.ts similarity index 97% rename from public/docs/_examples/reactive-forms/ts/app/main-final.ts rename to public/docs/_examples/reactive-forms/ts/src/app/main-final.ts index 0f69d20ded..1a5e243fa0 100644 --- a/public/docs/_examples/reactive-forms/ts/app/main-final.ts +++ b/public/docs/_examples/reactive-forms/ts/src/app/main-final.ts @@ -1,5 +1,5 @@ -// tslint:disable:no-unused-variable -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); +// tslint:disable:no-unused-variable +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/reactive-forms/ts/index-final.html b/public/docs/_examples/reactive-forms/ts/src/index-final.html similarity index 100% rename from public/docs/_examples/reactive-forms/ts/index-final.html rename to public/docs/_examples/reactive-forms/ts/src/index-final.html diff --git a/public/docs/_examples/reactive-forms/ts/index.html b/public/docs/_examples/reactive-forms/ts/src/index.html similarity index 91% rename from public/docs/_examples/reactive-forms/ts/index.html rename to public/docs/_examples/reactive-forms/ts/src/index.html index 38a65811fd..802d12f211 100644 --- a/public/docs/_examples/reactive-forms/ts/index.html +++ b/public/docs/_examples/reactive-forms/ts/src/index.html @@ -20,7 +20,7 @@ diff --git a/public/docs/_examples/reactive-forms/ts/app/main.ts b/public/docs/_examples/reactive-forms/ts/src/main.ts similarity index 57% rename from public/docs/_examples/reactive-forms/ts/app/main.ts rename to public/docs/_examples/reactive-forms/ts/src/main.ts index c81ec2c80c..f415a71708 100644 --- a/public/docs/_examples/reactive-forms/ts/app/main.ts +++ b/public/docs/_examples/reactive-forms/ts/src/main.ts @@ -1,6 +1,6 @@ // tslint:disable:no-unused-variable import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; // just the final version -import { DemoModule } from './demo.module'; // demo picker +import { AppModule } from './app/app.module'; // just the final version +import { DemoModule } from './app/demo.module'; // demo picker platformBrowserDynamic().bootstrapModule(DemoModule); // (AppModule); diff --git a/public/docs/_examples/router/ts/app/main.ts b/public/docs/_examples/router/ts/app/main.ts deleted file mode 100644 index 961a226688..0000000000 --- a/public/docs/_examples/router/ts/app/main.ts +++ /dev/null @@ -1,6 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/router/ts/plnkr.json b/public/docs/_examples/router/ts/plnkr.json index 5a01a66f8a..23ed1a1606 100644 --- a/public/docs/_examples/router/ts/plnkr.json +++ b/public/docs/_examples/router/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Router", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js", diff --git a/public/docs/_examples/router/ts/app/admin/admin-dashboard.component.1.ts b/public/docs/_examples/router/ts/src/app/admin/admin-dashboard.component.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/admin-dashboard.component.1.ts rename to public/docs/_examples/router/ts/src/app/admin/admin-dashboard.component.1.ts diff --git a/public/docs/_examples/router/ts/app/admin/admin-dashboard.component.2.ts b/public/docs/_examples/router/ts/src/app/admin/admin-dashboard.component.2.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/admin-dashboard.component.2.ts rename to public/docs/_examples/router/ts/src/app/admin/admin-dashboard.component.2.ts diff --git a/public/docs/_examples/router/ts/app/admin/admin-dashboard.component.ts b/public/docs/_examples/router/ts/src/app/admin/admin-dashboard.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/admin-dashboard.component.ts rename to public/docs/_examples/router/ts/src/app/admin/admin-dashboard.component.ts diff --git a/public/docs/_examples/router/ts/app/admin/admin-routing.module.1.ts b/public/docs/_examples/router/ts/src/app/admin/admin-routing.module.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/admin-routing.module.1.ts rename to public/docs/_examples/router/ts/src/app/admin/admin-routing.module.1.ts diff --git a/public/docs/_examples/router/ts/app/admin/admin-routing.module.2.ts b/public/docs/_examples/router/ts/src/app/admin/admin-routing.module.2.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/admin-routing.module.2.ts rename to public/docs/_examples/router/ts/src/app/admin/admin-routing.module.2.ts diff --git a/public/docs/_examples/router/ts/app/admin/admin-routing.module.3.ts b/public/docs/_examples/router/ts/src/app/admin/admin-routing.module.3.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/admin-routing.module.3.ts rename to public/docs/_examples/router/ts/src/app/admin/admin-routing.module.3.ts diff --git a/public/docs/_examples/router/ts/app/admin/admin-routing.module.ts b/public/docs/_examples/router/ts/src/app/admin/admin-routing.module.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/admin-routing.module.ts rename to public/docs/_examples/router/ts/src/app/admin/admin-routing.module.ts diff --git a/public/docs/_examples/router/ts/app/admin/admin.component.ts b/public/docs/_examples/router/ts/src/app/admin/admin.component.ts old mode 100755 new mode 100644 similarity index 100% rename from public/docs/_examples/router/ts/app/admin/admin.component.ts rename to public/docs/_examples/router/ts/src/app/admin/admin.component.ts diff --git a/public/docs/_examples/router/ts/app/admin/admin.module.ts b/public/docs/_examples/router/ts/src/app/admin/admin.module.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/admin.module.ts rename to public/docs/_examples/router/ts/src/app/admin/admin.module.ts diff --git a/public/docs/_examples/router/ts/app/admin/manage-crises.component.ts b/public/docs/_examples/router/ts/src/app/admin/manage-crises.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/manage-crises.component.ts rename to public/docs/_examples/router/ts/src/app/admin/manage-crises.component.ts diff --git a/public/docs/_examples/router/ts/app/admin/manage-heroes.component.ts b/public/docs/_examples/router/ts/src/app/admin/manage-heroes.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/admin/manage-heroes.component.ts rename to public/docs/_examples/router/ts/src/app/admin/manage-heroes.component.ts diff --git a/public/docs/_examples/router/ts/app/animations.ts b/public/docs/_examples/router/ts/src/app/animations.ts similarity index 96% rename from public/docs/_examples/router/ts/app/animations.ts rename to public/docs/_examples/router/ts/src/app/animations.ts index 776690cb78..d7a55d721f 100644 --- a/public/docs/_examples/router/ts/app/animations.ts +++ b/public/docs/_examples/router/ts/src/app/animations.ts @@ -1,26 +1,26 @@ -// #docregion -import { animate, AnimationEntryMetadata, state, style, transition, trigger } from '@angular/core'; - -// Component transition animations -export const slideInDownAnimation: AnimationEntryMetadata = - trigger('routeAnimation', [ - state('*', - style({ - opacity: 1, - transform: 'translateX(0)' - }) - ), - transition(':enter', [ - style({ - opacity: 0, - transform: 'translateX(-100%)' - }), - animate('0.2s ease-in') - ]), - transition(':leave', [ - animate('0.5s ease-out', style({ - opacity: 0, - transform: 'translateY(100%)' - })) - ]) - ]); +// #docregion +import { animate, AnimationEntryMetadata, state, style, transition, trigger } from '@angular/core'; + +// Component transition animations +export const slideInDownAnimation: AnimationEntryMetadata = + trigger('routeAnimation', [ + state('*', + style({ + opacity: 1, + transform: 'translateX(0)' + }) + ), + transition(':enter', [ + style({ + opacity: 0, + transform: 'translateX(-100%)' + }), + animate('0.2s ease-in') + ]), + transition(':leave', [ + animate('0.5s ease-out', style({ + opacity: 0, + transform: 'translateY(100%)' + })) + ]) + ]); diff --git a/public/docs/_examples/router/ts/app/app-routing.module.1.ts b/public/docs/_examples/router/ts/src/app/app-routing.module.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app-routing.module.1.ts rename to public/docs/_examples/router/ts/src/app/app-routing.module.1.ts diff --git a/public/docs/_examples/router/ts/app/app-routing.module.2.ts b/public/docs/_examples/router/ts/src/app/app-routing.module.2.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app-routing.module.2.ts rename to public/docs/_examples/router/ts/src/app/app-routing.module.2.ts diff --git a/public/docs/_examples/router/ts/app/app-routing.module.3.ts b/public/docs/_examples/router/ts/src/app/app-routing.module.3.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app-routing.module.3.ts rename to public/docs/_examples/router/ts/src/app/app-routing.module.3.ts diff --git a/public/docs/_examples/router/ts/app/app-routing.module.4.ts b/public/docs/_examples/router/ts/src/app/app-routing.module.4.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app-routing.module.4.ts rename to public/docs/_examples/router/ts/src/app/app-routing.module.4.ts diff --git a/public/docs/_examples/router/ts/app/app-routing.module.5.ts b/public/docs/_examples/router/ts/src/app/app-routing.module.5.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app-routing.module.5.ts rename to public/docs/_examples/router/ts/src/app/app-routing.module.5.ts diff --git a/public/docs/_examples/router/ts/app/app-routing.module.6.ts b/public/docs/_examples/router/ts/src/app/app-routing.module.6.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app-routing.module.6.ts rename to public/docs/_examples/router/ts/src/app/app-routing.module.6.ts diff --git a/public/docs/_examples/router/ts/app/app-routing.module.ts b/public/docs/_examples/router/ts/src/app/app-routing.module.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app-routing.module.ts rename to public/docs/_examples/router/ts/src/app/app-routing.module.ts diff --git a/public/docs/_examples/router/ts/app/app.component.1.ts b/public/docs/_examples/router/ts/src/app/app.component.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.component.1.ts rename to public/docs/_examples/router/ts/src/app/app.component.1.ts diff --git a/public/docs/_examples/router/ts/app/app.component.2.ts b/public/docs/_examples/router/ts/src/app/app.component.2.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.component.2.ts rename to public/docs/_examples/router/ts/src/app/app.component.2.ts diff --git a/public/docs/_examples/router/ts/app/app.component.3.ts b/public/docs/_examples/router/ts/src/app/app.component.3.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.component.3.ts rename to public/docs/_examples/router/ts/src/app/app.component.3.ts diff --git a/public/docs/_examples/router/ts/app/app.component.4.ts b/public/docs/_examples/router/ts/src/app/app.component.4.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.component.4.ts rename to public/docs/_examples/router/ts/src/app/app.component.4.ts diff --git a/public/docs/_examples/router/ts/app/app.component.5.ts b/public/docs/_examples/router/ts/src/app/app.component.5.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.component.5.ts rename to public/docs/_examples/router/ts/src/app/app.component.5.ts diff --git a/public/docs/_examples/router/ts/app/app.component.ts b/public/docs/_examples/router/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.component.ts rename to public/docs/_examples/router/ts/src/app/app.component.ts diff --git a/public/docs/_examples/router/ts/app/app.module.0.ts b/public/docs/_examples/router/ts/src/app/app.module.0.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.module.0.ts rename to public/docs/_examples/router/ts/src/app/app.module.0.ts diff --git a/public/docs/_examples/router/ts/app/app.module.1.ts b/public/docs/_examples/router/ts/src/app/app.module.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.module.1.ts rename to public/docs/_examples/router/ts/src/app/app.module.1.ts diff --git a/public/docs/_examples/router/ts/app/app.module.2.ts b/public/docs/_examples/router/ts/src/app/app.module.2.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.module.2.ts rename to public/docs/_examples/router/ts/src/app/app.module.2.ts diff --git a/public/docs/_examples/router/ts/app/app.module.3.ts b/public/docs/_examples/router/ts/src/app/app.module.3.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.module.3.ts rename to public/docs/_examples/router/ts/src/app/app.module.3.ts diff --git a/public/docs/_examples/router/ts/app/app.module.4.ts b/public/docs/_examples/router/ts/src/app/app.module.4.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.module.4.ts rename to public/docs/_examples/router/ts/src/app/app.module.4.ts diff --git a/public/docs/_examples/router/ts/app/app.module.5.ts b/public/docs/_examples/router/ts/src/app/app.module.5.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.module.5.ts rename to public/docs/_examples/router/ts/src/app/app.module.5.ts diff --git a/public/docs/_examples/router/ts/app/app.module.6.ts b/public/docs/_examples/router/ts/src/app/app.module.6.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.module.6.ts rename to public/docs/_examples/router/ts/src/app/app.module.6.ts diff --git a/public/docs/_examples/router/ts/app/app.module.7.ts b/public/docs/_examples/router/ts/src/app/app.module.7.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.module.7.ts rename to public/docs/_examples/router/ts/src/app/app.module.7.ts diff --git a/public/docs/_examples/router/ts/app/app.module.ts b/public/docs/_examples/router/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/router/ts/app/app.module.ts rename to public/docs/_examples/router/ts/src/app/app.module.ts diff --git a/public/docs/_examples/router/ts/app/auth-guard.service.1.ts b/public/docs/_examples/router/ts/src/app/auth-guard.service.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/auth-guard.service.1.ts rename to public/docs/_examples/router/ts/src/app/auth-guard.service.1.ts diff --git a/public/docs/_examples/router/ts/app/auth-guard.service.2.ts b/public/docs/_examples/router/ts/src/app/auth-guard.service.2.ts similarity index 100% rename from public/docs/_examples/router/ts/app/auth-guard.service.2.ts rename to public/docs/_examples/router/ts/src/app/auth-guard.service.2.ts diff --git a/public/docs/_examples/router/ts/app/auth-guard.service.3.ts b/public/docs/_examples/router/ts/src/app/auth-guard.service.3.ts similarity index 100% rename from public/docs/_examples/router/ts/app/auth-guard.service.3.ts rename to public/docs/_examples/router/ts/src/app/auth-guard.service.3.ts diff --git a/public/docs/_examples/router/ts/app/auth-guard.service.4.ts b/public/docs/_examples/router/ts/src/app/auth-guard.service.4.ts similarity index 100% rename from public/docs/_examples/router/ts/app/auth-guard.service.4.ts rename to public/docs/_examples/router/ts/src/app/auth-guard.service.4.ts diff --git a/public/docs/_examples/router/ts/app/auth-guard.service.ts b/public/docs/_examples/router/ts/src/app/auth-guard.service.ts old mode 100755 new mode 100644 similarity index 100% rename from public/docs/_examples/router/ts/app/auth-guard.service.ts rename to public/docs/_examples/router/ts/src/app/auth-guard.service.ts diff --git a/public/docs/_examples/router/ts/app/auth.service.ts b/public/docs/_examples/router/ts/src/app/auth.service.ts old mode 100755 new mode 100644 similarity index 100% rename from public/docs/_examples/router/ts/app/auth.service.ts rename to public/docs/_examples/router/ts/src/app/auth.service.ts diff --git a/public/docs/_examples/router/ts/app/can-deactivate-guard.service.1.ts b/public/docs/_examples/router/ts/src/app/can-deactivate-guard.service.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/can-deactivate-guard.service.1.ts rename to public/docs/_examples/router/ts/src/app/can-deactivate-guard.service.1.ts diff --git a/public/docs/_examples/router/ts/app/can-deactivate-guard.service.ts b/public/docs/_examples/router/ts/src/app/can-deactivate-guard.service.ts similarity index 100% rename from public/docs/_examples/router/ts/app/can-deactivate-guard.service.ts rename to public/docs/_examples/router/ts/src/app/can-deactivate-guard.service.ts diff --git a/public/docs/_examples/router/ts/app/compose-message.component.html b/public/docs/_examples/router/ts/src/app/compose-message.component.html similarity index 95% rename from public/docs/_examples/router/ts/app/compose-message.component.html rename to public/docs/_examples/router/ts/src/app/compose-message.component.html index 8aaec9c746..f0b964e6ac 100644 --- a/public/docs/_examples/router/ts/app/compose-message.component.html +++ b/public/docs/_examples/router/ts/src/app/compose-message.component.html @@ -1,17 +1,17 @@ - -

Contact Crisis Center

-
- {{ details }} -
-
-
- -
-
- -
-
-

- - -

+ +

Contact Crisis Center

+
+ {{ details }} +
+
+
+ +
+
+ +
+
+

+ + +

diff --git a/public/docs/_examples/router/ts/app/compose-message.component.ts b/public/docs/_examples/router/ts/src/app/compose-message.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/compose-message.component.ts rename to public/docs/_examples/router/ts/src/app/compose-message.component.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-center-home.component.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-home.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-center-home.component.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-home.component.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.1.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.1.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.1.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.2.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.2.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.2.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.2.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.3.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.3.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.3.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.3.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.4.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.4.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.4.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.4.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-center-routing.module.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-center-routing.module.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-center.component.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-center.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-center.component.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-center.component.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-center.module.1.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-center.module.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-center.module.1.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-center.module.1.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-center.module.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-center.module.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-center.module.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-center.module.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-detail-resolver.service.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-detail-resolver.service.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-detail-resolver.service.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-detail-resolver.service.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-detail.component.1.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-detail.component.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-detail.component.1.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-detail.component.1.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-detail.component.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-detail.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-detail.component.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-detail.component.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.1.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-list.component.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.1.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-list.component.1.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis-list.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis-list.component.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis-list.component.ts diff --git a/public/docs/_examples/router/ts/app/crisis-center/crisis.service.ts b/public/docs/_examples/router/ts/src/app/crisis-center/crisis.service.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-center/crisis.service.ts rename to public/docs/_examples/router/ts/src/app/crisis-center/crisis.service.ts diff --git a/public/docs/_examples/router/ts/app/crisis-list.component.ts b/public/docs/_examples/router/ts/src/app/crisis-list.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/crisis-list.component.ts rename to public/docs/_examples/router/ts/src/app/crisis-list.component.ts diff --git a/public/docs/_examples/router/ts/app/dialog.service.ts b/public/docs/_examples/router/ts/src/app/dialog.service.ts similarity index 100% rename from public/docs/_examples/router/ts/app/dialog.service.ts rename to public/docs/_examples/router/ts/src/app/dialog.service.ts diff --git a/public/docs/_examples/router/ts/app/hero-list.component.ts b/public/docs/_examples/router/ts/src/app/hero-list.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/hero-list.component.ts rename to public/docs/_examples/router/ts/src/app/hero-list.component.ts diff --git a/public/docs/_examples/router/ts/app/heroes/hero-detail.component.1.ts b/public/docs/_examples/router/ts/src/app/heroes/hero-detail.component.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/heroes/hero-detail.component.1.ts rename to public/docs/_examples/router/ts/src/app/heroes/hero-detail.component.1.ts diff --git a/public/docs/_examples/router/ts/app/heroes/hero-detail.component.2.ts b/public/docs/_examples/router/ts/src/app/heroes/hero-detail.component.2.ts similarity index 100% rename from public/docs/_examples/router/ts/app/heroes/hero-detail.component.2.ts rename to public/docs/_examples/router/ts/src/app/heroes/hero-detail.component.2.ts diff --git a/public/docs/_examples/router/ts/app/heroes/hero-detail.component.ts b/public/docs/_examples/router/ts/src/app/heroes/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/heroes/hero-detail.component.ts rename to public/docs/_examples/router/ts/src/app/heroes/hero-detail.component.ts diff --git a/public/docs/_examples/router/ts/app/heroes/hero-list.component.1.ts b/public/docs/_examples/router/ts/src/app/heroes/hero-list.component.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/heroes/hero-list.component.1.ts rename to public/docs/_examples/router/ts/src/app/heroes/hero-list.component.1.ts diff --git a/public/docs/_examples/router/ts/app/heroes/hero-list.component.ts b/public/docs/_examples/router/ts/src/app/heroes/hero-list.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/heroes/hero-list.component.ts rename to public/docs/_examples/router/ts/src/app/heroes/hero-list.component.ts diff --git a/public/docs/_examples/router/ts/app/heroes/hero.service.ts b/public/docs/_examples/router/ts/src/app/heroes/hero.service.ts similarity index 100% rename from public/docs/_examples/router/ts/app/heroes/hero.service.ts rename to public/docs/_examples/router/ts/src/app/heroes/hero.service.ts diff --git a/public/docs/_examples/router/ts/app/heroes/heroes-routing.module.ts b/public/docs/_examples/router/ts/src/app/heroes/heroes-routing.module.ts similarity index 100% rename from public/docs/_examples/router/ts/app/heroes/heroes-routing.module.ts rename to public/docs/_examples/router/ts/src/app/heroes/heroes-routing.module.ts diff --git a/public/docs/_examples/router/ts/app/heroes/heroes.module.ts b/public/docs/_examples/router/ts/src/app/heroes/heroes.module.ts similarity index 100% rename from public/docs/_examples/router/ts/app/heroes/heroes.module.ts rename to public/docs/_examples/router/ts/src/app/heroes/heroes.module.ts diff --git a/public/docs/_examples/router/ts/app/login-routing.module.ts b/public/docs/_examples/router/ts/src/app/login-routing.module.ts similarity index 100% rename from public/docs/_examples/router/ts/app/login-routing.module.ts rename to public/docs/_examples/router/ts/src/app/login-routing.module.ts diff --git a/public/docs/_examples/router/ts/app/login.component.1.ts b/public/docs/_examples/router/ts/src/app/login.component.1.ts similarity index 100% rename from public/docs/_examples/router/ts/app/login.component.1.ts rename to public/docs/_examples/router/ts/src/app/login.component.1.ts diff --git a/public/docs/_examples/router/ts/app/login.component.ts b/public/docs/_examples/router/ts/src/app/login.component.ts old mode 100755 new mode 100644 similarity index 100% rename from public/docs/_examples/router/ts/app/login.component.ts rename to public/docs/_examples/router/ts/src/app/login.component.ts diff --git a/public/docs/_examples/router/ts/app/not-found.component.ts b/public/docs/_examples/router/ts/src/app/not-found.component.ts similarity index 100% rename from public/docs/_examples/router/ts/app/not-found.component.ts rename to public/docs/_examples/router/ts/src/app/not-found.component.ts diff --git a/public/docs/_examples/router/ts/app/selective-preloading-strategy.ts b/public/docs/_examples/router/ts/src/app/selective-preloading-strategy.ts similarity index 100% rename from public/docs/_examples/router/ts/app/selective-preloading-strategy.ts rename to public/docs/_examples/router/ts/src/app/selective-preloading-strategy.ts diff --git a/public/docs/_examples/router/ts/index.html b/public/docs/_examples/router/ts/src/index.html similarity index 96% rename from public/docs/_examples/router/ts/index.html rename to public/docs/_examples/router/ts/src/index.html index 12b69cd2dc..0fa6453c36 100644 --- a/public/docs/_examples/router/ts/index.html +++ b/public/docs/_examples/router/ts/src/index.html @@ -19,7 +19,7 @@ diff --git a/public/docs/_examples/router/ts/src/main.ts b/public/docs/_examples/router/ts/src/main.ts new file mode 100644 index 0000000000..f332d1d245 --- /dev/null +++ b/public/docs/_examples/router/ts/src/main.ts @@ -0,0 +1,6 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/security/ts/app/main.ts b/public/docs/_examples/security/ts/app/main.ts deleted file mode 100644 index fc0ac5294a..0000000000 --- a/public/docs/_examples/security/ts/app/main.ts +++ /dev/null @@ -1,6 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); - diff --git a/public/docs/_examples/security/ts/plnkr.json b/public/docs/_examples/security/ts/plnkr.json index e66527cb6b..4c9e85ce1e 100644 --- a/public/docs/_examples/security/ts/plnkr.json +++ b/public/docs/_examples/security/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Content Security", + "basePath": "src/", "files": [ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/security/ts/app/app.component.ts b/public/docs/_examples/security/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/security/ts/app/app.component.ts rename to public/docs/_examples/security/ts/src/app/app.component.ts diff --git a/public/docs/_examples/security/ts/app/app.module.ts b/public/docs/_examples/security/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/security/ts/app/app.module.ts rename to public/docs/_examples/security/ts/src/app/app.module.ts diff --git a/public/docs/_examples/security/ts/app/bypass-security.component.html b/public/docs/_examples/security/ts/src/app/bypass-security.component.html similarity index 100% rename from public/docs/_examples/security/ts/app/bypass-security.component.html rename to public/docs/_examples/security/ts/src/app/bypass-security.component.html diff --git a/public/docs/_examples/security/ts/app/bypass-security.component.ts b/public/docs/_examples/security/ts/src/app/bypass-security.component.ts similarity index 100% rename from public/docs/_examples/security/ts/app/bypass-security.component.ts rename to public/docs/_examples/security/ts/src/app/bypass-security.component.ts diff --git a/public/docs/_examples/security/ts/app/inner-html-binding.component.html b/public/docs/_examples/security/ts/src/app/inner-html-binding.component.html similarity index 100% rename from public/docs/_examples/security/ts/app/inner-html-binding.component.html rename to public/docs/_examples/security/ts/src/app/inner-html-binding.component.html diff --git a/public/docs/_examples/security/ts/app/inner-html-binding.component.ts b/public/docs/_examples/security/ts/src/app/inner-html-binding.component.ts similarity index 100% rename from public/docs/_examples/security/ts/app/inner-html-binding.component.ts rename to public/docs/_examples/security/ts/src/app/inner-html-binding.component.ts diff --git a/public/docs/_examples/security/ts/index.html b/public/docs/_examples/security/ts/src/index.html similarity index 89% rename from public/docs/_examples/security/ts/index.html rename to public/docs/_examples/security/ts/src/index.html index 7d0a7e13c8..d5dd11c038 100644 --- a/public/docs/_examples/security/ts/index.html +++ b/public/docs/_examples/security/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/security/ts/src/main.ts b/public/docs/_examples/security/ts/src/main.ts new file mode 100644 index 0000000000..105b06712d --- /dev/null +++ b/public/docs/_examples/security/ts/src/main.ts @@ -0,0 +1,6 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); + diff --git a/public/docs/_examples/server-communication/ts/app/main.ts b/public/docs/_examples/server-communication/ts/app/main.ts deleted file mode 100644 index 4acf5de663..0000000000 --- a/public/docs/_examples/server-communication/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/server-communication/ts/plnkr.json b/public/docs/_examples/server-communication/ts/plnkr.json index fd35eda20d..fe966be012 100644 --- a/public/docs/_examples/server-communication/ts/plnkr.json +++ b/public/docs/_examples/server-communication/ts/plnkr.json @@ -1,9 +1,10 @@ { "description": "Http", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js", "!**/*.[1].*" ], "tags": ["http", "jsonp"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/server-communication/ts/app/app.component.ts b/public/docs/_examples/server-communication/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/app.component.ts rename to public/docs/_examples/server-communication/ts/src/app/app.component.ts diff --git a/public/docs/_examples/server-communication/ts/app/app.module.1.ts b/public/docs/_examples/server-communication/ts/src/app/app.module.1.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/app.module.1.ts rename to public/docs/_examples/server-communication/ts/src/app/app.module.1.ts diff --git a/public/docs/_examples/server-communication/ts/app/app.module.ts b/public/docs/_examples/server-communication/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/app.module.ts rename to public/docs/_examples/server-communication/ts/src/app/app.module.ts diff --git a/public/docs/_examples/server-communication/ts/app/default-request-options.service.ts b/public/docs/_examples/server-communication/ts/src/app/default-request-options.service.ts similarity index 96% rename from public/docs/_examples/server-communication/ts/app/default-request-options.service.ts rename to public/docs/_examples/server-communication/ts/src/app/default-request-options.service.ts index 9cc20d134e..9ec52daa80 100644 --- a/public/docs/_examples/server-communication/ts/app/default-request-options.service.ts +++ b/public/docs/_examples/server-communication/ts/src/app/default-request-options.service.ts @@ -1,16 +1,16 @@ -// #docregion -import { Injectable } from '@angular/core'; -import { BaseRequestOptions, RequestOptions } from '@angular/http'; - -@Injectable() -export class DefaultRequestOptions extends BaseRequestOptions { - - constructor() { - super(); - - // Set the default 'Content-Type' header - this.headers.set('Content-Type', 'application/json'); - } -} - -export const requestOptionsProvider = { provide: RequestOptions, useClass: DefaultRequestOptions }; +// #docregion +import { Injectable } from '@angular/core'; +import { BaseRequestOptions, RequestOptions } from '@angular/http'; + +@Injectable() +export class DefaultRequestOptions extends BaseRequestOptions { + + constructor() { + super(); + + // Set the default 'Content-Type' header + this.headers.set('Content-Type', 'application/json'); + } +} + +export const requestOptionsProvider = { provide: RequestOptions, useClass: DefaultRequestOptions }; diff --git a/public/docs/_examples/server-communication/ts/app/hero-data.ts b/public/docs/_examples/server-communication/ts/src/app/hero-data.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/hero-data.ts rename to public/docs/_examples/server-communication/ts/src/app/hero-data.ts diff --git a/public/docs/_examples/server-communication/ts/app/heroes.json b/public/docs/_examples/server-communication/ts/src/app/heroes.json similarity index 100% rename from public/docs/_examples/server-communication/ts/app/heroes.json rename to public/docs/_examples/server-communication/ts/src/app/heroes.json diff --git a/public/docs/_examples/server-communication/ts/app/toh/hero-list.component.html b/public/docs/_examples/server-communication/ts/src/app/toh/hero-list.component.html similarity index 100% rename from public/docs/_examples/server-communication/ts/app/toh/hero-list.component.html rename to public/docs/_examples/server-communication/ts/src/app/toh/hero-list.component.html diff --git a/public/docs/_examples/server-communication/ts/app/toh/hero-list.component.promise.ts b/public/docs/_examples/server-communication/ts/src/app/toh/hero-list.component.promise.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/toh/hero-list.component.promise.ts rename to public/docs/_examples/server-communication/ts/src/app/toh/hero-list.component.promise.ts diff --git a/public/docs/_examples/server-communication/ts/app/toh/hero-list.component.ts b/public/docs/_examples/server-communication/ts/src/app/toh/hero-list.component.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/toh/hero-list.component.ts rename to public/docs/_examples/server-communication/ts/src/app/toh/hero-list.component.ts diff --git a/public/docs/_examples/server-communication/ts/app/toh/hero.service.promise.ts b/public/docs/_examples/server-communication/ts/src/app/toh/hero.service.promise.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/toh/hero.service.promise.ts rename to public/docs/_examples/server-communication/ts/src/app/toh/hero.service.promise.ts diff --git a/public/docs/_examples/server-communication/ts/app/toh/hero.service.ts b/public/docs/_examples/server-communication/ts/src/app/toh/hero.service.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/toh/hero.service.ts rename to public/docs/_examples/server-communication/ts/src/app/toh/hero.service.ts diff --git a/public/docs/_examples/server-communication/ts/app/toh/hero.ts b/public/docs/_examples/server-communication/ts/src/app/toh/hero.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/toh/hero.ts rename to public/docs/_examples/server-communication/ts/src/app/toh/hero.ts diff --git a/public/docs/_examples/server-communication/ts/app/wiki/wiki-smart.component.ts b/public/docs/_examples/server-communication/ts/src/app/wiki/wiki-smart.component.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/wiki/wiki-smart.component.ts rename to public/docs/_examples/server-communication/ts/src/app/wiki/wiki-smart.component.ts diff --git a/public/docs/_examples/server-communication/ts/app/wiki/wiki.component.ts b/public/docs/_examples/server-communication/ts/src/app/wiki/wiki.component.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/wiki/wiki.component.ts rename to public/docs/_examples/server-communication/ts/src/app/wiki/wiki.component.ts diff --git a/public/docs/_examples/server-communication/ts/app/wiki/wikipedia.service.1.ts b/public/docs/_examples/server-communication/ts/src/app/wiki/wikipedia.service.1.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/wiki/wikipedia.service.1.ts rename to public/docs/_examples/server-communication/ts/src/app/wiki/wikipedia.service.1.ts diff --git a/public/docs/_examples/server-communication/ts/app/wiki/wikipedia.service.ts b/public/docs/_examples/server-communication/ts/src/app/wiki/wikipedia.service.ts similarity index 100% rename from public/docs/_examples/server-communication/ts/app/wiki/wikipedia.service.ts rename to public/docs/_examples/server-communication/ts/src/app/wiki/wikipedia.service.ts diff --git a/public/docs/_examples/server-communication/ts/index.html b/public/docs/_examples/server-communication/ts/src/index.html similarity index 89% rename from public/docs/_examples/server-communication/ts/index.html rename to public/docs/_examples/server-communication/ts/src/index.html index 6459f8344d..5c51f21c91 100644 --- a/public/docs/_examples/server-communication/ts/index.html +++ b/public/docs/_examples/server-communication/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/server-communication/ts/src/main.ts b/public/docs/_examples/server-communication/ts/src/main.ts new file mode 100644 index 0000000000..6b6532d428 --- /dev/null +++ b/public/docs/_examples/server-communication/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/setup/ts/app/main.ts b/public/docs/_examples/setup/ts/app/main.ts deleted file mode 100644 index d3e7fa7a2f..0000000000 --- a/public/docs/_examples/setup/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/setup/ts/plnkr.json b/public/docs/_examples/setup/ts/plnkr.json index 317d07053c..22b528eec5 100644 --- a/public/docs/_examples/setup/ts/plnkr.json +++ b/public/docs/_examples/setup/ts/plnkr.json @@ -1,10 +1,11 @@ { "description": "QuickStart Setup", + "basePath": "src/", "files": [ "app/app.component.ts", "app/app.module.ts", - "app/main.ts", "index.html", + "main.ts", "styles.css" ], "open": "app/app.component.ts", diff --git a/public/docs/_examples/setup/ts/quickstart-specs.plnkr.json b/public/docs/_examples/setup/ts/quickstart-specs.plnkr.json index 42b403b9e2..40161e34a0 100644 --- a/public/docs/_examples/setup/ts/quickstart-specs.plnkr.json +++ b/public/docs/_examples/setup/ts/quickstart-specs.plnkr.json @@ -1,9 +1,8 @@ { "description": "Quickstart AppComponent Testing", + "basePath": "src/", "files":[ "browser-test-shim.js", - "systemjs.config.extras.js", - "app/app.component.ts", "app/app.component.spec.ts", "quickstart-specs.html" diff --git a/public/docs/_examples/setup/ts/app/app.component.spec.ts b/public/docs/_examples/setup/ts/src/app/app.component.spec.ts similarity index 100% rename from public/docs/_examples/setup/ts/app/app.component.spec.ts rename to public/docs/_examples/setup/ts/src/app/app.component.spec.ts diff --git a/public/docs/_examples/setup/ts/app/app.component.ts b/public/docs/_examples/setup/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/setup/ts/app/app.component.ts rename to public/docs/_examples/setup/ts/src/app/app.component.ts diff --git a/public/docs/_examples/setup/ts/app/app.module.ts b/public/docs/_examples/setup/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/setup/ts/app/app.module.ts rename to public/docs/_examples/setup/ts/src/app/app.module.ts diff --git a/public/docs/_examples/setup/ts/index.html b/public/docs/_examples/setup/ts/src/index.html similarity index 90% rename from public/docs/_examples/setup/ts/index.html rename to public/docs/_examples/setup/ts/src/index.html index 82360d76bc..58e5112308 100644 --- a/public/docs/_examples/setup/ts/index.html +++ b/public/docs/_examples/setup/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/setup/ts/src/main.ts b/public/docs/_examples/setup/ts/src/main.ts new file mode 100644 index 0000000000..02d58dceac --- /dev/null +++ b/public/docs/_examples/setup/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/setup/ts/quickstart-specs.html b/public/docs/_examples/setup/ts/src/quickstart-specs.html similarity index 93% rename from public/docs/_examples/setup/ts/quickstart-specs.html rename to public/docs/_examples/setup/ts/src/quickstart-specs.html index 46aa873966..9bc81ccf2e 100644 --- a/public/docs/_examples/setup/ts/quickstart-specs.html +++ b/public/docs/_examples/setup/ts/src/quickstart-specs.html @@ -11,6 +11,9 @@ + + + diff --git a/public/docs/_examples/setup/ts/systemjs.config.extras.js b/public/docs/_examples/setup/ts/src/systemjs.config.extras.js similarity index 100% rename from public/docs/_examples/setup/ts/systemjs.config.extras.js rename to public/docs/_examples/setup/ts/src/systemjs.config.extras.js diff --git a/public/docs/_examples/setup/ts/systemjs.config.extras.web.js b/public/docs/_examples/setup/ts/systemjs.config.extras.web.js deleted file mode 100644 index 71546a2901..0000000000 --- a/public/docs/_examples/setup/ts/systemjs.config.extras.web.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Web (plunker) version of systemjs.config.extras.js - * It should default to `.ts` extensions rather than `.js` extensions in almost all cases. - */ -// (function (global) { -// System.config({ -// packages: { -// // add packages here -// } -// }); -// })(this); diff --git a/public/docs/_examples/structural-directives/ts/app/main.ts b/public/docs/_examples/structural-directives/ts/app/main.ts deleted file mode 100644 index fc0ac5294a..0000000000 --- a/public/docs/_examples/structural-directives/ts/app/main.ts +++ /dev/null @@ -1,6 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); - diff --git a/public/docs/_examples/structural-directives/ts/plnkr.json b/public/docs/_examples/structural-directives/ts/plnkr.json index 32bfd6302a..9aa0a3ed8a 100644 --- a/public/docs/_examples/structural-directives/ts/plnkr.json +++ b/public/docs/_examples/structural-directives/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Structural directives", + "basePath": "src/", "files": ["!**/*.d.ts", "!**/*.js"], "tags": [ "structural", "directives", "template", "ngIf", diff --git a/public/docs/_examples/structural-directives/ts/app/app.module.ts b/public/docs/_examples/structural-directives/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/structural-directives/ts/app/app.module.ts rename to public/docs/_examples/structural-directives/ts/src/app/app.module.ts diff --git a/public/docs/_examples/structural-directives/ts/app/heavy-loader.component.ts b/public/docs/_examples/structural-directives/ts/src/app/heavy-loader.component.ts similarity index 100% rename from public/docs/_examples/structural-directives/ts/app/heavy-loader.component.ts rename to public/docs/_examples/structural-directives/ts/src/app/heavy-loader.component.ts diff --git a/public/docs/_examples/structural-directives/ts/app/structural-directives.component.html b/public/docs/_examples/structural-directives/ts/src/app/structural-directives.component.html similarity index 100% rename from public/docs/_examples/structural-directives/ts/app/structural-directives.component.html rename to public/docs/_examples/structural-directives/ts/src/app/structural-directives.component.html diff --git a/public/docs/_examples/structural-directives/ts/app/structural-directives.component.ts b/public/docs/_examples/structural-directives/ts/src/app/structural-directives.component.ts similarity index 100% rename from public/docs/_examples/structural-directives/ts/app/structural-directives.component.ts rename to public/docs/_examples/structural-directives/ts/src/app/structural-directives.component.ts diff --git a/public/docs/_examples/structural-directives/ts/app/unless.directive.ts b/public/docs/_examples/structural-directives/ts/src/app/unless.directive.ts similarity index 100% rename from public/docs/_examples/structural-directives/ts/app/unless.directive.ts rename to public/docs/_examples/structural-directives/ts/src/app/unless.directive.ts diff --git a/public/docs/_examples/structural-directives/ts/index.html b/public/docs/_examples/structural-directives/ts/src/index.html similarity index 89% rename from public/docs/_examples/structural-directives/ts/index.html rename to public/docs/_examples/structural-directives/ts/src/index.html index 57d284619a..b77d172317 100644 --- a/public/docs/_examples/structural-directives/ts/index.html +++ b/public/docs/_examples/structural-directives/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/structural-directives/ts/src/main.ts b/public/docs/_examples/structural-directives/ts/src/main.ts new file mode 100644 index 0000000000..105b06712d --- /dev/null +++ b/public/docs/_examples/structural-directives/ts/src/main.ts @@ -0,0 +1,6 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); + diff --git a/public/docs/_examples/style-guide/ts/plnkr.json b/public/docs/_examples/style-guide/ts/plnkr.json index 334ad918b8..bf9e9681c5 100644 --- a/public/docs/_examples/style-guide/ts/plnkr.json +++ b/public/docs/_examples/style-guide/ts/plnkr.json @@ -1,8 +1,9 @@ { "description": "Style Guide", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js" ], "tags": ["style guide, styleguide"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/style-guide/ts/01-01/app/app.component.css b/public/docs/_examples/style-guide/ts/src/01-01/app/app.component.css similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/app.component.css rename to public/docs/_examples/style-guide/ts/src/01-01/app/app.component.css diff --git a/public/docs/_examples/style-guide/ts/01-01/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/app/heroes/hero.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/heroes/hero.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/heroes/hero.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/heroes/hero.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/app/heroes/heroes.component.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/heroes/heroes.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/heroes/heroes.component.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/heroes/heroes.component.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/app/heroes/shared/hero.model.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/heroes/shared/hero.model.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/heroes/shared/hero.model.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/heroes/shared/hero.model.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/app/heroes/shared/hero.service.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/heroes/shared/hero.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/heroes/shared/hero.service.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/heroes/shared/hero.service.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/app/heroes/shared/mock-heroes.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/heroes/shared/mock-heroes.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/heroes/shared/mock-heroes.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/heroes/shared/mock-heroes.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/app/index.ts b/public/docs/_examples/style-guide/ts/src/01-01/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/app/index.ts rename to public/docs/_examples/style-guide/ts/src/01-01/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/01-01/main.ts b/public/docs/_examples/style-guide/ts/src/01-01/main.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/01-01/main.ts rename to public/docs/_examples/style-guide/ts/src/01-01/main.ts diff --git a/public/docs/_examples/style-guide/ts/02-05/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/02-05/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-05/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/02-05/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/02-05/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/02-05/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-05/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/02-05/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/02-05/main.ts b/public/docs/_examples/style-guide/ts/src/02-05/main.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-05/main.ts rename to public/docs/_examples/style-guide/ts/src/02-05/main.ts diff --git a/public/docs/_examples/style-guide/ts/02-07/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/02-07/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-07/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/02-07/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/02-07/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/02-07/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-07/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/02-07/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/02-07/app/heroes/hero.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/02-07/app/heroes/hero.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-07/app/heroes/hero.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/02-07/app/heroes/hero.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/02-07/app/heroes/hero.component.ts b/public/docs/_examples/style-guide/ts/src/02-07/app/heroes/hero.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-07/app/heroes/hero.component.ts rename to public/docs/_examples/style-guide/ts/src/02-07/app/heroes/hero.component.ts diff --git a/public/docs/_examples/style-guide/ts/02-07/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/02-07/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-07/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/02-07/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/02-07/app/index.ts b/public/docs/_examples/style-guide/ts/src/02-07/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-07/app/index.ts rename to public/docs/_examples/style-guide/ts/src/02-07/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/02-07/app/users/index.ts b/public/docs/_examples/style-guide/ts/src/02-07/app/users/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-07/app/users/index.ts rename to public/docs/_examples/style-guide/ts/src/02-07/app/users/index.ts diff --git a/public/docs/_examples/style-guide/ts/02-07/app/users/users.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/02-07/app/users/users.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-07/app/users/users.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/02-07/app/users/users.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/02-07/app/users/users.component.ts b/public/docs/_examples/style-guide/ts/src/02-07/app/users/users.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-07/app/users/users.component.ts rename to public/docs/_examples/style-guide/ts/src/02-07/app/users/users.component.ts diff --git a/public/docs/_examples/style-guide/ts/02-08/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/02-08/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-08/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/02-08/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/02-08/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/02-08/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-08/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/02-08/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/02-08/app/index.ts b/public/docs/_examples/style-guide/ts/src/02-08/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-08/app/index.ts rename to public/docs/_examples/style-guide/ts/src/02-08/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/02-08/app/shared/index.ts b/public/docs/_examples/style-guide/ts/src/02-08/app/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-08/app/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/02-08/app/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/02-08/app/shared/input-highlight.directive.ts b/public/docs/_examples/style-guide/ts/src/02-08/app/shared/input-highlight.directive.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-08/app/shared/input-highlight.directive.ts rename to public/docs/_examples/style-guide/ts/src/02-08/app/shared/input-highlight.directive.ts diff --git a/public/docs/_examples/style-guide/ts/02-08/app/shared/validate.directive.avoid.ts b/public/docs/_examples/style-guide/ts/src/02-08/app/shared/validate.directive.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-08/app/shared/validate.directive.avoid.ts rename to public/docs/_examples/style-guide/ts/src/02-08/app/shared/validate.directive.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/02-08/app/shared/validate.directive.ts b/public/docs/_examples/style-guide/ts/src/02-08/app/shared/validate.directive.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/02-08/app/shared/validate.directive.ts rename to public/docs/_examples/style-guide/ts/src/02-08/app/shared/validate.directive.ts diff --git a/public/docs/_examples/style-guide/ts/03-01/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/03-01/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-01/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/03-01/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/03-01/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/03-01/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-01/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/03-01/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/03-01/app/core/exception.service.avoid.ts b/public/docs/_examples/style-guide/ts/src/03-01/app/core/exception.service.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-01/app/core/exception.service.avoid.ts rename to public/docs/_examples/style-guide/ts/src/03-01/app/core/exception.service.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/03-01/app/core/exception.service.ts b/public/docs/_examples/style-guide/ts/src/03-01/app/core/exception.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-01/app/core/exception.service.ts rename to public/docs/_examples/style-guide/ts/src/03-01/app/core/exception.service.ts diff --git a/public/docs/_examples/style-guide/ts/03-01/app/core/index.ts b/public/docs/_examples/style-guide/ts/src/03-01/app/core/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-01/app/core/index.ts rename to public/docs/_examples/style-guide/ts/src/03-01/app/core/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-01/app/index.ts b/public/docs/_examples/style-guide/ts/src/03-01/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-01/app/index.ts rename to public/docs/_examples/style-guide/ts/src/03-01/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-02/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/03-02/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-02/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/03-02/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/03-02/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/03-02/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-02/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/03-02/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/03-02/app/core/data.service.ts b/public/docs/_examples/style-guide/ts/src/03-02/app/core/data.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-02/app/core/data.service.ts rename to public/docs/_examples/style-guide/ts/src/03-02/app/core/data.service.ts diff --git a/public/docs/_examples/style-guide/ts/03-02/app/core/index.ts b/public/docs/_examples/style-guide/ts/src/03-02/app/core/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-02/app/core/index.ts rename to public/docs/_examples/style-guide/ts/src/03-02/app/core/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-02/app/index.ts b/public/docs/_examples/style-guide/ts/src/03-02/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-02/app/index.ts rename to public/docs/_examples/style-guide/ts/src/03-02/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-03/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/03-03/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-03/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/03-03/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/03-03/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/03-03/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-03/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/03-03/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/03-03/app/core/hero-collector.service.avoid.ts b/public/docs/_examples/style-guide/ts/src/03-03/app/core/hero-collector.service.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-03/app/core/hero-collector.service.avoid.ts rename to public/docs/_examples/style-guide/ts/src/03-03/app/core/hero-collector.service.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/03-03/app/core/hero-collector.service.ts b/public/docs/_examples/style-guide/ts/src/03-03/app/core/hero-collector.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-03/app/core/hero-collector.service.ts rename to public/docs/_examples/style-guide/ts/src/03-03/app/core/hero-collector.service.ts diff --git a/public/docs/_examples/style-guide/ts/03-03/app/core/hero.model.avoid.ts b/public/docs/_examples/style-guide/ts/src/03-03/app/core/hero.model.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-03/app/core/hero.model.avoid.ts rename to public/docs/_examples/style-guide/ts/src/03-03/app/core/hero.model.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/03-03/app/core/hero.model.ts b/public/docs/_examples/style-guide/ts/src/03-03/app/core/hero.model.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-03/app/core/hero.model.ts rename to public/docs/_examples/style-guide/ts/src/03-03/app/core/hero.model.ts diff --git a/public/docs/_examples/style-guide/ts/03-03/app/core/index.ts b/public/docs/_examples/style-guide/ts/src/03-03/app/core/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-03/app/core/index.ts rename to public/docs/_examples/style-guide/ts/src/03-03/app/core/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-03/app/index.ts b/public/docs/_examples/style-guide/ts/src/03-03/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-03/app/index.ts rename to public/docs/_examples/style-guide/ts/src/03-03/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-04/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/03-04/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-04/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/03-04/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/03-04/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/03-04/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-04/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/03-04/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/03-04/app/core/index.ts b/public/docs/_examples/style-guide/ts/src/03-04/app/core/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-04/app/core/index.ts rename to public/docs/_examples/style-guide/ts/src/03-04/app/core/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-04/app/core/toast.service.avoid.ts b/public/docs/_examples/style-guide/ts/src/03-04/app/core/toast.service.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-04/app/core/toast.service.avoid.ts rename to public/docs/_examples/style-guide/ts/src/03-04/app/core/toast.service.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/03-04/app/core/toast.service.ts b/public/docs/_examples/style-guide/ts/src/03-04/app/core/toast.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-04/app/core/toast.service.ts rename to public/docs/_examples/style-guide/ts/src/03-04/app/core/toast.service.ts diff --git a/public/docs/_examples/style-guide/ts/03-04/app/index.ts b/public/docs/_examples/style-guide/ts/src/03-04/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-04/app/index.ts rename to public/docs/_examples/style-guide/ts/src/03-04/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/app.component.html b/public/docs/_examples/style-guide/ts/src/03-06/app/app.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/app.component.html rename to public/docs/_examples/style-guide/ts/src/03-06/app/app.component.html diff --git a/public/docs/_examples/style-guide/ts/03-06/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/core/exception.service.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/core/exception.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/core/exception.service.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/core/exception.service.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/core/index.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/core/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/core/index.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/core/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/core/spinner/index.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/core/spinner/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/core/spinner/index.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/core/spinner/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/core/spinner/spinner.component.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/core/spinner/spinner.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/core/spinner/spinner.component.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/core/spinner/spinner.component.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/core/spinner/spinner.service.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/core/spinner/spinner.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/core/spinner/spinner.service.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/core/spinner/spinner.service.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/core/toast/index.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/core/toast/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/core/toast/index.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/core/toast/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/core/toast/toast.component.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/core/toast/toast.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/core/toast/toast.component.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/core/toast/toast.component.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/core/toast/toast.service.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/core/toast/toast.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/core/toast/toast.service.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/core/toast/toast.service.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/heroes/shared/hero.model.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/heroes/shared/hero.model.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/heroes/shared/hero.model.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/heroes/shared/hero.model.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/heroes/shared/hero.service.avoid.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/heroes/shared/hero.service.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/heroes/shared/hero.service.avoid.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/heroes/shared/hero.service.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/heroes/shared/hero.service.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/heroes/shared/hero.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/heroes/shared/hero.service.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/heroes/shared/hero.service.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/index.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/index.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/03-06/app/shared/toast/toast.component.ts b/public/docs/_examples/style-guide/ts/src/03-06/app/shared/toast/toast.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/03-06/app/shared/toast/toast.component.ts rename to public/docs/_examples/style-guide/ts/src/03-06/app/shared/toast/toast.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-08/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/04-08/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-08/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/04-08/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-08/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/04-08/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-08/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/04-08/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/04-08/app/heroes/heroes.component.html b/public/docs/_examples/style-guide/ts/src/04-08/app/heroes/heroes.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/04-08/app/heroes/heroes.component.html rename to public/docs/_examples/style-guide/ts/src/04-08/app/heroes/heroes.component.html diff --git a/public/docs/_examples/style-guide/ts/04-08/app/heroes/heroes.component.ts b/public/docs/_examples/style-guide/ts/src/04-08/app/heroes/heroes.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-08/app/heroes/heroes.component.ts rename to public/docs/_examples/style-guide/ts/src/04-08/app/heroes/heroes.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-10/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/04-10/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-10/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/04-10/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-10/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/04-10/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-10/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/04-10/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/04-10/app/heroes/heroes.component.html b/public/docs/_examples/style-guide/ts/src/04-10/app/heroes/heroes.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/04-10/app/heroes/heroes.component.html rename to public/docs/_examples/style-guide/ts/src/04-10/app/heroes/heroes.component.html diff --git a/public/docs/_examples/style-guide/ts/04-10/app/heroes/heroes.component.ts b/public/docs/_examples/style-guide/ts/src/04-10/app/heroes/heroes.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-10/app/heroes/heroes.component.ts rename to public/docs/_examples/style-guide/ts/src/04-10/app/heroes/heroes.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-10/app/shared/filter-text/filter-text.component.ts b/public/docs/_examples/style-guide/ts/src/04-10/app/shared/filter-text/filter-text.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-10/app/shared/filter-text/filter-text.component.ts rename to public/docs/_examples/style-guide/ts/src/04-10/app/shared/filter-text/filter-text.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-10/app/shared/filter-text/filter-text.service.ts b/public/docs/_examples/style-guide/ts/src/04-10/app/shared/filter-text/filter-text.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-10/app/shared/filter-text/filter-text.service.ts rename to public/docs/_examples/style-guide/ts/src/04-10/app/shared/filter-text/filter-text.service.ts diff --git a/public/docs/_examples/style-guide/ts/04-10/app/shared/init-caps.pipe.ts b/public/docs/_examples/style-guide/ts/src/04-10/app/shared/init-caps.pipe.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-10/app/shared/init-caps.pipe.ts rename to public/docs/_examples/style-guide/ts/src/04-10/app/shared/init-caps.pipe.ts diff --git a/public/docs/_examples/style-guide/ts/04-10/app/shared/shared.module.ts b/public/docs/_examples/style-guide/ts/src/04-10/app/shared/shared.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-10/app/shared/shared.module.ts rename to public/docs/_examples/style-guide/ts/src/04-10/app/shared/shared.module.ts diff --git a/public/docs/_examples/style-guide/ts/04-11/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/04-11/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/04-11/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-11/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/04-11/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/04-11/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/core.module.ts b/public/docs/_examples/style-guide/ts/src/04-11/app/core/core.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/core.module.ts rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/core.module.ts diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/index.ts b/public/docs/_examples/style-guide/ts/src/04-11/app/core/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/index.ts rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/index.ts diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/logger.service.ts b/public/docs/_examples/style-guide/ts/src/04-11/app/core/logger.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/logger.service.ts rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/logger.service.ts diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/nav/nav.component.css b/public/docs/_examples/style-guide/ts/src/04-11/app/core/nav/nav.component.css similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/nav/nav.component.css rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/nav/nav.component.css diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/nav/nav.component.html b/public/docs/_examples/style-guide/ts/src/04-11/app/core/nav/nav.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/nav/nav.component.html rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/nav/nav.component.html diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/nav/nav.component.ts b/public/docs/_examples/style-guide/ts/src/04-11/app/core/nav/nav.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/nav/nav.component.ts rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/nav/nav.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/spinner/spinner.component.css b/public/docs/_examples/style-guide/ts/src/04-11/app/core/spinner/spinner.component.css similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/spinner/spinner.component.css rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/spinner/spinner.component.css diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/spinner/spinner.component.html b/public/docs/_examples/style-guide/ts/src/04-11/app/core/spinner/spinner.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/spinner/spinner.component.html rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/spinner/spinner.component.html diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/spinner/spinner.component.ts b/public/docs/_examples/style-guide/ts/src/04-11/app/core/spinner/spinner.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/spinner/spinner.component.ts rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/spinner/spinner.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-11/app/core/spinner/spinner.service.ts b/public/docs/_examples/style-guide/ts/src/04-11/app/core/spinner/spinner.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/core/spinner/spinner.service.ts rename to public/docs/_examples/style-guide/ts/src/04-11/app/core/spinner/spinner.service.ts diff --git a/public/docs/_examples/style-guide/ts/04-11/app/heroes/heroes.component.html b/public/docs/_examples/style-guide/ts/src/04-11/app/heroes/heroes.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/heroes/heroes.component.html rename to public/docs/_examples/style-guide/ts/src/04-11/app/heroes/heroes.component.html diff --git a/public/docs/_examples/style-guide/ts/04-11/app/heroes/heroes.component.ts b/public/docs/_examples/style-guide/ts/src/04-11/app/heroes/heroes.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-11/app/heroes/heroes.component.ts rename to public/docs/_examples/style-guide/ts/src/04-11/app/heroes/heroes.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-12/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/04-12/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/04-12/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-12/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/04-12/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/04-12/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/04-12/app/core/core.module.ts b/public/docs/_examples/style-guide/ts/src/04-12/app/core/core.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/core/core.module.ts rename to public/docs/_examples/style-guide/ts/src/04-12/app/core/core.module.ts diff --git a/public/docs/_examples/style-guide/ts/04-12/app/core/index.ts b/public/docs/_examples/style-guide/ts/src/04-12/app/core/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/core/index.ts rename to public/docs/_examples/style-guide/ts/src/04-12/app/core/index.ts diff --git a/public/docs/_examples/style-guide/ts/04-12/app/core/logger.service.ts b/public/docs/_examples/style-guide/ts/src/04-12/app/core/logger.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/core/logger.service.ts rename to public/docs/_examples/style-guide/ts/src/04-12/app/core/logger.service.ts diff --git a/public/docs/_examples/style-guide/ts/04-12/app/core/module-import-guard.ts b/public/docs/_examples/style-guide/ts/src/04-12/app/core/module-import-guard.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/core/module-import-guard.ts rename to public/docs/_examples/style-guide/ts/src/04-12/app/core/module-import-guard.ts diff --git a/public/docs/_examples/style-guide/ts/04-12/app/core/nav/nav.component.css b/public/docs/_examples/style-guide/ts/src/04-12/app/core/nav/nav.component.css similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/core/nav/nav.component.css rename to public/docs/_examples/style-guide/ts/src/04-12/app/core/nav/nav.component.css diff --git a/public/docs/_examples/style-guide/ts/04-12/app/core/nav/nav.component.html b/public/docs/_examples/style-guide/ts/src/04-12/app/core/nav/nav.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/core/nav/nav.component.html rename to public/docs/_examples/style-guide/ts/src/04-12/app/core/nav/nav.component.html diff --git a/public/docs/_examples/style-guide/ts/04-12/app/core/nav/nav.component.ts b/public/docs/_examples/style-guide/ts/src/04-12/app/core/nav/nav.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/core/nav/nav.component.ts rename to public/docs/_examples/style-guide/ts/src/04-12/app/core/nav/nav.component.ts diff --git a/public/docs/_examples/style-guide/ts/04-12/app/heroes/heroes.component.html b/public/docs/_examples/style-guide/ts/src/04-12/app/heroes/heroes.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/heroes/heroes.component.html rename to public/docs/_examples/style-guide/ts/src/04-12/app/heroes/heroes.component.html diff --git a/public/docs/_examples/style-guide/ts/04-12/app/heroes/heroes.component.ts b/public/docs/_examples/style-guide/ts/src/04-12/app/heroes/heroes.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/04-12/app/heroes/heroes.component.ts rename to public/docs/_examples/style-guide/ts/src/04-12/app/heroes/heroes.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-02/app/app.component.html b/public/docs/_examples/style-guide/ts/src/05-02/app/app.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/app.component.html rename to public/docs/_examples/style-guide/ts/src/05-02/app/app.component.html diff --git a/public/docs/_examples/style-guide/ts/05-02/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/05-02/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/05-02/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-02/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/05-02/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/05-02/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/05-02/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/05-02/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/05-02/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/hero-button/hero-button.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/hero-button/hero-button.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/hero-button/hero-button.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/hero-button/hero-button.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/hero-button/hero-button.component.html b/public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/hero-button/hero-button.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/hero-button/hero-button.component.html rename to public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/hero-button/hero-button.component.html diff --git a/public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/hero-button/hero-button.component.ts b/public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/hero-button/hero-button.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/hero-button/hero-button.component.ts rename to public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/hero-button/hero-button.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/hero-button/index.ts b/public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/hero-button/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/hero-button/index.ts rename to public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/hero-button/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/05-02/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-02/app/index.ts b/public/docs/_examples/style-guide/ts/src/05-02/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-02/app/index.ts rename to public/docs/_examples/style-guide/ts/src/05-02/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-03/app/app.component.avoid.html b/public/docs/_examples/style-guide/ts/src/05-03/app/app.component.avoid.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/app.component.avoid.html rename to public/docs/_examples/style-guide/ts/src/05-03/app/app.component.avoid.html diff --git a/public/docs/_examples/style-guide/ts/05-03/app/app.component.html b/public/docs/_examples/style-guide/ts/src/05-03/app/app.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/app.component.html rename to public/docs/_examples/style-guide/ts/src/05-03/app/app.component.html diff --git a/public/docs/_examples/style-guide/ts/05-03/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/05-03/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/05-03/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-03/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/05-03/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/05-03/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/05-03/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/05-03/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/05-03/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/hero-button/hero-button.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/hero-button/hero-button.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/hero-button/hero-button.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/hero-button/hero-button.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/hero-button/hero-button.component.html b/public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/hero-button/hero-button.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/hero-button/hero-button.component.html rename to public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/hero-button/hero-button.component.html diff --git a/public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/hero-button/hero-button.component.ts b/public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/hero-button/hero-button.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/hero-button/hero-button.component.ts rename to public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/hero-button/hero-button.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/hero-button/index.ts b/public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/hero-button/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/hero-button/index.ts rename to public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/hero-button/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/05-03/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-03/app/index.ts b/public/docs/_examples/style-guide/ts/src/05-03/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-03/app/index.ts rename to public/docs/_examples/style-guide/ts/src/05-03/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-04/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/05-04/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/05-04/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-04/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/05-04/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/05-04/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/05-04/app/heroes/heroes.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/05-04/app/heroes/heroes.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/heroes/heroes.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/05-04/app/heroes/heroes.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/05-04/app/heroes/heroes.component.css b/public/docs/_examples/style-guide/ts/src/05-04/app/heroes/heroes.component.css similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/heroes/heroes.component.css rename to public/docs/_examples/style-guide/ts/src/05-04/app/heroes/heroes.component.css diff --git a/public/docs/_examples/style-guide/ts/05-04/app/heroes/heroes.component.html b/public/docs/_examples/style-guide/ts/src/05-04/app/heroes/heroes.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/heroes/heroes.component.html rename to public/docs/_examples/style-guide/ts/src/05-04/app/heroes/heroes.component.html diff --git a/public/docs/_examples/style-guide/ts/05-04/app/heroes/heroes.component.ts b/public/docs/_examples/style-guide/ts/src/05-04/app/heroes/heroes.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/heroes/heroes.component.ts rename to public/docs/_examples/style-guide/ts/src/05-04/app/heroes/heroes.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-04/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/05-04/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/05-04/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-04/app/heroes/shared/hero.model.ts b/public/docs/_examples/style-guide/ts/src/05-04/app/heroes/shared/hero.model.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/heroes/shared/hero.model.ts rename to public/docs/_examples/style-guide/ts/src/05-04/app/heroes/shared/hero.model.ts diff --git a/public/docs/_examples/style-guide/ts/05-04/app/heroes/shared/hero.service.ts b/public/docs/_examples/style-guide/ts/src/05-04/app/heroes/shared/hero.service.ts similarity index 96% rename from public/docs/_examples/style-guide/ts/05-04/app/heroes/shared/hero.service.ts rename to public/docs/_examples/style-guide/ts/src/05-04/app/heroes/shared/hero.service.ts index 80e1d97455..9d388780a6 100644 --- a/public/docs/_examples/style-guide/ts/05-04/app/heroes/shared/hero.service.ts +++ b/public/docs/_examples/style-guide/ts/src/05-04/app/heroes/shared/hero.service.ts @@ -1,18 +1,18 @@ -import { Injectable } from '@angular/core'; -import { Http } from '@angular/http'; - -import { Observable } from 'rxjs/Observable'; -import 'rxjs/add/operator/map'; - -import { Hero } from './hero.model'; - -@Injectable() -export class HeroService { - - constructor(private http: Http) {} - - getHeroes(): Observable { - return this.http.get('api/heroes') - .map(resp => resp.json().data as Hero[]); - } -} +import { Injectable } from '@angular/core'; +import { Http } from '@angular/http'; + +import { Observable } from 'rxjs/Observable'; +import 'rxjs/add/operator/map'; + +import { Hero } from './hero.model'; + +@Injectable() +export class HeroService { + + constructor(private http: Http) {} + + getHeroes(): Observable { + return this.http.get('api/heroes') + .map(resp => resp.json().data as Hero[]); + } +} diff --git a/public/docs/_examples/style-guide/ts/05-04/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/05-04/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/05-04/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-04/app/index.ts b/public/docs/_examples/style-guide/ts/src/05-04/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-04/app/index.ts rename to public/docs/_examples/style-guide/ts/src/05-04/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-12/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/05-12/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-12/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/05-12/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-12/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/05-12/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-12/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/05-12/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/05-12/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/05-12/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-12/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/05-12/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-12/app/heroes/shared/hero-button/hero-button.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/05-12/app/heroes/shared/hero-button/hero-button.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-12/app/heroes/shared/hero-button/hero-button.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/05-12/app/heroes/shared/hero-button/hero-button.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/05-12/app/heroes/shared/hero-button/hero-button.component.ts b/public/docs/_examples/style-guide/ts/src/05-12/app/heroes/shared/hero-button/hero-button.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-12/app/heroes/shared/hero-button/hero-button.component.ts rename to public/docs/_examples/style-guide/ts/src/05-12/app/heroes/shared/hero-button/hero-button.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-12/app/heroes/shared/hero-button/index.ts b/public/docs/_examples/style-guide/ts/src/05-12/app/heroes/shared/hero-button/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-12/app/heroes/shared/hero-button/index.ts rename to public/docs/_examples/style-guide/ts/src/05-12/app/heroes/shared/hero-button/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-12/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/05-12/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-12/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/05-12/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-12/app/index.ts b/public/docs/_examples/style-guide/ts/src/05-12/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-12/app/index.ts rename to public/docs/_examples/style-guide/ts/src/05-12/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-13/app/app.component.avoid.html b/public/docs/_examples/style-guide/ts/src/05-13/app/app.component.avoid.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/app.component.avoid.html rename to public/docs/_examples/style-guide/ts/src/05-13/app/app.component.avoid.html diff --git a/public/docs/_examples/style-guide/ts/05-13/app/app.component.html b/public/docs/_examples/style-guide/ts/src/05-13/app/app.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/app.component.html rename to public/docs/_examples/style-guide/ts/src/05-13/app/app.component.html diff --git a/public/docs/_examples/style-guide/ts/05-13/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/05-13/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/05-13/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-13/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/05-13/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/05-13/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/05-13/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/05-13/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/05-13/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/hero-button/hero-button.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/hero-button/hero-button.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/hero-button/hero-button.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/hero-button/hero-button.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/hero-button/hero-button.component.ts b/public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/hero-button/hero-button.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/hero-button/hero-button.component.ts rename to public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/hero-button/hero-button.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/hero-button/index.ts b/public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/hero-button/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/hero-button/index.ts rename to public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/hero-button/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/hero-highlight.directive.ts b/public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/hero-highlight.directive.ts similarity index 96% rename from public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/hero-highlight.directive.ts rename to public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/hero-highlight.directive.ts index f9e76248a8..737af31f4f 100644 --- a/public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/hero-highlight.directive.ts +++ b/public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/hero-highlight.directive.ts @@ -1,15 +1,15 @@ -// #docregion -import { Directive, ElementRef, Input, OnChanges } from '@angular/core'; - -@Directive({ selector: '[heroHighlight]' }) -export class HeroHighlightDirective implements OnChanges { - - // Aliased because `color` is a better property name than `heroHighlight` - @Input('heroHighlight') color: string; - - constructor(private el: ElementRef) {} - - ngOnChanges() { - this.el.nativeElement.style.backgroundColor = this.color || 'yellow'; - } -} +// #docregion +import { Directive, ElementRef, Input, OnChanges } from '@angular/core'; + +@Directive({ selector: '[heroHighlight]' }) +export class HeroHighlightDirective implements OnChanges { + + // Aliased because `color` is a better property name than `heroHighlight` + @Input('heroHighlight') color: string; + + constructor(private el: ElementRef) {} + + ngOnChanges() { + this.el.nativeElement.style.backgroundColor = this.color || 'yellow'; + } +} diff --git a/public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/05-13/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-13/app/index.ts b/public/docs/_examples/style-guide/ts/src/05-13/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-13/app/index.ts rename to public/docs/_examples/style-guide/ts/src/05-13/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-14/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/05-14/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-14/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/05-14/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-14/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/05-14/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-14/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/05-14/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/05-14/app/index.ts b/public/docs/_examples/style-guide/ts/src/05-14/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-14/app/index.ts rename to public/docs/_examples/style-guide/ts/src/05-14/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-14/app/shared/index.ts b/public/docs/_examples/style-guide/ts/src/05-14/app/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-14/app/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/05-14/app/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-14/app/shared/toast/index.ts b/public/docs/_examples/style-guide/ts/src/05-14/app/shared/toast/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-14/app/shared/toast/index.ts rename to public/docs/_examples/style-guide/ts/src/05-14/app/shared/toast/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-14/app/shared/toast/toast.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/05-14/app/shared/toast/toast.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-14/app/shared/toast/toast.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/05-14/app/shared/toast/toast.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/05-14/app/shared/toast/toast.component.ts b/public/docs/_examples/style-guide/ts/src/05-14/app/shared/toast/toast.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-14/app/shared/toast/toast.component.ts rename to public/docs/_examples/style-guide/ts/src/05-14/app/shared/toast/toast.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/heroes/hero-list/hero-list.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/heroes/hero-list/hero-list.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/heroes/hero-list/hero-list.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/heroes/hero-list/hero-list.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/heroes/hero-list/hero-list.component.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/heroes/hero-list/hero-list.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/heroes/hero-list/hero-list.component.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/heroes/hero-list/hero-list.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/heroes/hero-list/index.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/heroes/hero-list/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/heroes/hero-list/index.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/heroes/hero-list/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/heroes/shared/hero.model.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/heroes/shared/hero.model.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/heroes/shared/hero.model.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/heroes/shared/hero.model.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/heroes/shared/hero.service.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/heroes/shared/hero.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/heroes/shared/hero.service.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/heroes/shared/hero.service.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-15/app/index.ts b/public/docs/_examples/style-guide/ts/src/05-15/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-15/app/index.ts rename to public/docs/_examples/style-guide/ts/src/05-15/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-16/app/app.component.avoid.html b/public/docs/_examples/style-guide/ts/src/05-16/app/app.component.avoid.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-16/app/app.component.avoid.html rename to public/docs/_examples/style-guide/ts/src/05-16/app/app.component.avoid.html diff --git a/public/docs/_examples/style-guide/ts/05-16/app/app.component.html b/public/docs/_examples/style-guide/ts/src/05-16/app/app.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/05-16/app/app.component.html rename to public/docs/_examples/style-guide/ts/src/05-16/app/app.component.html diff --git a/public/docs/_examples/style-guide/ts/05-16/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/05-16/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-16/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/05-16/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-16/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/05-16/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-16/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/05-16/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/05-16/app/heroes/hero.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/05-16/app/heroes/hero.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-16/app/heroes/hero.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/05-16/app/heroes/hero.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/05-16/app/heroes/hero.component.ts b/public/docs/_examples/style-guide/ts/src/05-16/app/heroes/hero.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-16/app/heroes/hero.component.ts rename to public/docs/_examples/style-guide/ts/src/05-16/app/heroes/hero.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-16/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/05-16/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-16/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/05-16/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-16/app/index.ts b/public/docs/_examples/style-guide/ts/src/05-16/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-16/app/index.ts rename to public/docs/_examples/style-guide/ts/src/05-16/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/heroes/hero-list/hero-list.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero-list/hero-list.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/heroes/hero-list/hero-list.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero-list/hero-list.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/heroes/hero-list/hero-list.component.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero-list/hero-list.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/heroes/hero-list/hero-list.component.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero-list/hero-list.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/heroes/hero-list/index.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero-list/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/heroes/hero-list/index.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero-list/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/heroes/hero/hero.component.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero/hero.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/heroes/hero/hero.component.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero/hero.component.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/heroes/hero/index.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/heroes/hero/index.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/heroes/hero/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/heroes/shared/hero.model.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/heroes/shared/hero.model.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/heroes/shared/hero.model.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/heroes/shared/hero.model.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/05-17/app/index.ts b/public/docs/_examples/style-guide/ts/src/05-17/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/05-17/app/index.ts rename to public/docs/_examples/style-guide/ts/src/05-17/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/06-01/app/app.component.html b/public/docs/_examples/style-guide/ts/src/06-01/app/app.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/06-01/app/app.component.html rename to public/docs/_examples/style-guide/ts/src/06-01/app/app.component.html diff --git a/public/docs/_examples/style-guide/ts/06-01/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/06-01/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-01/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/06-01/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/06-01/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/06-01/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-01/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/06-01/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/06-01/app/index.ts b/public/docs/_examples/style-guide/ts/src/06-01/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-01/app/index.ts rename to public/docs/_examples/style-guide/ts/src/06-01/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/06-01/app/shared/highlight.directive.ts b/public/docs/_examples/style-guide/ts/src/06-01/app/shared/highlight.directive.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-01/app/shared/highlight.directive.ts rename to public/docs/_examples/style-guide/ts/src/06-01/app/shared/highlight.directive.ts diff --git a/public/docs/_examples/style-guide/ts/06-01/app/shared/index.ts b/public/docs/_examples/style-guide/ts/src/06-01/app/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-01/app/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/06-01/app/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/06-03/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/06-03/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-03/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/06-03/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/06-03/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/06-03/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-03/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/06-03/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/06-03/app/index.ts b/public/docs/_examples/style-guide/ts/src/06-03/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-03/app/index.ts rename to public/docs/_examples/style-guide/ts/src/06-03/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/06-03/app/shared/index.ts b/public/docs/_examples/style-guide/ts/src/06-03/app/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-03/app/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/06-03/app/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/06-03/app/shared/validator.directive.ts b/public/docs/_examples/style-guide/ts/src/06-03/app/shared/validator.directive.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-03/app/shared/validator.directive.ts rename to public/docs/_examples/style-guide/ts/src/06-03/app/shared/validator.directive.ts diff --git a/public/docs/_examples/style-guide/ts/06-03/app/shared/validator2.directive.ts b/public/docs/_examples/style-guide/ts/src/06-03/app/shared/validator2.directive.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/06-03/app/shared/validator2.directive.ts rename to public/docs/_examples/style-guide/ts/src/06-03/app/shared/validator2.directive.ts diff --git a/public/docs/_examples/style-guide/ts/07-01/app/app.component.html b/public/docs/_examples/style-guide/ts/src/07-01/app/app.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/07-01/app/app.component.html rename to public/docs/_examples/style-guide/ts/src/07-01/app/app.component.html diff --git a/public/docs/_examples/style-guide/ts/07-01/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/07-01/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-01/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/07-01/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/07-01/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/07-01/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-01/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/07-01/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/07-01/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/07-01/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-01/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/07-01/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/07-01/app/heroes/shared/hero.model.ts b/public/docs/_examples/style-guide/ts/src/07-01/app/heroes/shared/hero.model.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-01/app/heroes/shared/hero.model.ts rename to public/docs/_examples/style-guide/ts/src/07-01/app/heroes/shared/hero.model.ts diff --git a/public/docs/_examples/style-guide/ts/07-01/app/heroes/shared/hero.service.ts b/public/docs/_examples/style-guide/ts/src/07-01/app/heroes/shared/hero.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-01/app/heroes/shared/hero.service.ts rename to public/docs/_examples/style-guide/ts/src/07-01/app/heroes/shared/hero.service.ts diff --git a/public/docs/_examples/style-guide/ts/07-01/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/07-01/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-01/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/07-01/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/07-01/app/index.ts b/public/docs/_examples/style-guide/ts/src/07-01/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-01/app/index.ts rename to public/docs/_examples/style-guide/ts/src/07-01/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/07-03/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/07-03/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-03/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/07-03/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/07-03/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/07-03/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-03/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/07-03/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/07-03/app/heroes/hero-list/hero-list.component.ts b/public/docs/_examples/style-guide/ts/src/07-03/app/heroes/hero-list/hero-list.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-03/app/heroes/hero-list/hero-list.component.ts rename to public/docs/_examples/style-guide/ts/src/07-03/app/heroes/hero-list/hero-list.component.ts diff --git a/public/docs/_examples/style-guide/ts/07-03/app/heroes/hero-list/index.ts b/public/docs/_examples/style-guide/ts/src/07-03/app/heroes/hero-list/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-03/app/heroes/hero-list/index.ts rename to public/docs/_examples/style-guide/ts/src/07-03/app/heroes/hero-list/index.ts diff --git a/public/docs/_examples/style-guide/ts/07-03/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/07-03/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-03/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/07-03/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/07-03/app/heroes/shared/hero.model.ts b/public/docs/_examples/style-guide/ts/src/07-03/app/heroes/shared/hero.model.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-03/app/heroes/shared/hero.model.ts rename to public/docs/_examples/style-guide/ts/src/07-03/app/heroes/shared/hero.model.ts diff --git a/public/docs/_examples/style-guide/ts/07-03/app/heroes/shared/hero.service.ts b/public/docs/_examples/style-guide/ts/src/07-03/app/heroes/shared/hero.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-03/app/heroes/shared/hero.service.ts rename to public/docs/_examples/style-guide/ts/src/07-03/app/heroes/shared/hero.service.ts diff --git a/public/docs/_examples/style-guide/ts/07-03/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/07-03/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-03/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/07-03/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/07-03/app/index.ts b/public/docs/_examples/style-guide/ts/src/07-03/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-03/app/index.ts rename to public/docs/_examples/style-guide/ts/src/07-03/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/07-04/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/07-04/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-04/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/07-04/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/07-04/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/07-04/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-04/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/07-04/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/07-04/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/07-04/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-04/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/07-04/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/hero-arena.service.avoid.ts b/public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/hero-arena.service.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/hero-arena.service.avoid.ts rename to public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/hero-arena.service.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/hero-arena.service.ts b/public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/hero-arena.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/hero-arena.service.ts rename to public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/hero-arena.service.ts diff --git a/public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/hero.model.ts b/public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/hero.model.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/hero.model.ts rename to public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/hero.model.ts diff --git a/public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/hero.service.ts b/public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/hero.service.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/hero.service.ts rename to public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/hero.service.ts diff --git a/public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-04/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/07-04/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/07-04/app/index.ts b/public/docs/_examples/style-guide/ts/src/07-04/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/07-04/app/index.ts rename to public/docs/_examples/style-guide/ts/src/07-04/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/09-01/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/09-01/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/09-01/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/09-01/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/09-01/app/app.module.ts b/public/docs/_examples/style-guide/ts/src/09-01/app/app.module.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/09-01/app/app.module.ts rename to public/docs/_examples/style-guide/ts/src/09-01/app/app.module.ts diff --git a/public/docs/_examples/style-guide/ts/09-01/app/heroes/index.ts b/public/docs/_examples/style-guide/ts/src/09-01/app/heroes/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/09-01/app/heroes/index.ts rename to public/docs/_examples/style-guide/ts/src/09-01/app/heroes/index.ts diff --git a/public/docs/_examples/style-guide/ts/09-01/app/heroes/shared/hero-button/hero-button.component.avoid.ts b/public/docs/_examples/style-guide/ts/src/09-01/app/heroes/shared/hero-button/hero-button.component.avoid.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/09-01/app/heroes/shared/hero-button/hero-button.component.avoid.ts rename to public/docs/_examples/style-guide/ts/src/09-01/app/heroes/shared/hero-button/hero-button.component.avoid.ts diff --git a/public/docs/_examples/style-guide/ts/09-01/app/heroes/shared/hero-button/hero-button.component.ts b/public/docs/_examples/style-guide/ts/src/09-01/app/heroes/shared/hero-button/hero-button.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/09-01/app/heroes/shared/hero-button/hero-button.component.ts rename to public/docs/_examples/style-guide/ts/src/09-01/app/heroes/shared/hero-button/hero-button.component.ts diff --git a/public/docs/_examples/style-guide/ts/09-01/app/heroes/shared/hero-button/index.ts b/public/docs/_examples/style-guide/ts/src/09-01/app/heroes/shared/hero-button/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/09-01/app/heroes/shared/hero-button/index.ts rename to public/docs/_examples/style-guide/ts/src/09-01/app/heroes/shared/hero-button/index.ts diff --git a/public/docs/_examples/style-guide/ts/09-01/app/heroes/shared/index.ts b/public/docs/_examples/style-guide/ts/src/09-01/app/heroes/shared/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/09-01/app/heroes/shared/index.ts rename to public/docs/_examples/style-guide/ts/src/09-01/app/heroes/shared/index.ts diff --git a/public/docs/_examples/style-guide/ts/09-01/app/index.ts b/public/docs/_examples/style-guide/ts/src/09-01/app/index.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/09-01/app/index.ts rename to public/docs/_examples/style-guide/ts/src/09-01/app/index.ts diff --git a/public/docs/_examples/style-guide/ts/app/app.component.html b/public/docs/_examples/style-guide/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/style-guide/ts/app/app.component.html rename to public/docs/_examples/style-guide/ts/src/app/app.component.html diff --git a/public/docs/_examples/style-guide/ts/app/app.component.ts b/public/docs/_examples/style-guide/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/app/app.component.ts rename to public/docs/_examples/style-guide/ts/src/app/app.component.ts diff --git a/public/docs/_examples/style-guide/ts/app/app.routes.ts b/public/docs/_examples/style-guide/ts/src/app/app.routes.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/app/app.routes.ts rename to public/docs/_examples/style-guide/ts/src/app/app.routes.ts diff --git a/public/docs/_examples/style-guide/ts/app/hero-data.ts b/public/docs/_examples/style-guide/ts/src/app/hero-data.ts similarity index 100% rename from public/docs/_examples/style-guide/ts/app/hero-data.ts rename to public/docs/_examples/style-guide/ts/src/app/hero-data.ts diff --git a/public/docs/_examples/style-guide/ts/index.html b/public/docs/_examples/style-guide/ts/src/index.html similarity index 90% rename from public/docs/_examples/style-guide/ts/index.html rename to public/docs/_examples/style-guide/ts/src/index.html index 57abbb54bb..188c2c26a1 100644 --- a/public/docs/_examples/style-guide/ts/index.html +++ b/public/docs/_examples/style-guide/ts/src/index.html @@ -18,7 +18,7 @@ diff --git a/public/docs/_examples/style-guide/ts/app/main.ts b/public/docs/_examples/style-guide/ts/src/main.ts similarity index 51% rename from public/docs/_examples/style-guide/ts/app/main.ts rename to public/docs/_examples/style-guide/ts/src/main.ts index eef534bd4d..5b4c98ba69 100644 --- a/public/docs/_examples/style-guide/ts/app/main.ts +++ b/public/docs/_examples/style-guide/ts/src/main.ts @@ -12,37 +12,37 @@ import { HashLocationStrategy, import 'rxjs/add/operator/map'; -import { HeroData } from './hero-data'; -import { AppComponent } from './app.component'; +import { HeroData } from './app/hero-data'; +import { AppComponent } from './app/app.component'; -import * as s0101 from '../01-01/app/app.module'; -import * as s0205 from '../02-05/app/app.module'; -import * as s0207 from '../02-07/app/app.module'; -import * as s0208 from '../02-08/app/app.module'; -import * as s0301 from '../03-01/app/app.module'; -import * as s0302 from '../03-02/app/app.module'; -import * as s0303 from '../03-03/app/app.module'; -import * as s0304 from '../03-04/app/app.module'; -import * as s0306 from '../03-06/app/app.module'; -import * as s0408 from '../04-08/app/app.module'; -import * as s0410 from '../04-10/app/app.module'; -import * as s0411 from '../04-11/app/app.module'; -import * as s0412 from '../04-12/app/app.module'; -import * as s0502 from '../05-02/app/app.module'; -import * as s0503 from '../05-03/app/app.module'; -import * as s0504 from '../05-04/app/app.module'; -import * as s0512 from '../05-12/app/app.module'; -import * as s0513 from '../05-13/app/app.module'; -import * as s0514 from '../05-14/app/app.module'; -import * as s0515 from '../05-15/app/app.module'; -import * as s0516 from '../05-16/app/app.module'; -import * as s0517 from '../05-17/app/app.module'; -import * as s0601 from '../06-01/app/app.module'; -import * as s0603 from '../06-03/app/app.module'; -import * as s0701 from '../07-01/app/app.module'; -import * as s0703 from '../07-03/app/app.module'; -import * as s0704 from '../07-04/app/app.module'; -import * as s0901 from '../09-01/app/app.module'; +import * as s0101 from './01-01/app/app.module'; +import * as s0205 from './02-05/app/app.module'; +import * as s0207 from './02-07/app/app.module'; +import * as s0208 from './02-08/app/app.module'; +import * as s0301 from './03-01/app/app.module'; +import * as s0302 from './03-02/app/app.module'; +import * as s0303 from './03-03/app/app.module'; +import * as s0304 from './03-04/app/app.module'; +import * as s0306 from './03-06/app/app.module'; +import * as s0408 from './04-08/app/app.module'; +import * as s0410 from './04-10/app/app.module'; +import * as s0411 from './04-11/app/app.module'; +import * as s0412 from './04-12/app/app.module'; +import * as s0502 from './05-02/app/app.module'; +import * as s0503 from './05-03/app/app.module'; +import * as s0504 from './05-04/app/app.module'; +import * as s0512 from './05-12/app/app.module'; +import * as s0513 from './05-13/app/app.module'; +import * as s0514 from './05-14/app/app.module'; +import * as s0515 from './05-15/app/app.module'; +import * as s0516 from './05-16/app/app.module'; +import * as s0517 from './05-17/app/app.module'; +import * as s0601 from './06-01/app/app.module'; +import * as s0603 from './06-03/app/app.module'; +import * as s0701 from './07-01/app/app.module'; +import * as s0703 from './07-03/app/app.module'; +import * as s0704 from './07-04/app/app.module'; +import * as s0901 from './09-01/app/app.module'; /////////////////// const moduleMetadata = { diff --git a/public/docs/_examples/style-guide/ts/systemjs.custom.js b/public/docs/_examples/style-guide/ts/src/systemjs.custom.js similarity index 100% rename from public/docs/_examples/style-guide/ts/systemjs.custom.js rename to public/docs/_examples/style-guide/ts/src/systemjs.custom.js diff --git a/public/docs/_examples/styleguide/js/app.js b/public/docs/_examples/styleguide/js/src/app.js similarity index 100% rename from public/docs/_examples/styleguide/js/app.js rename to public/docs/_examples/styleguide/js/src/app.js diff --git a/public/docs/_examples/styleguide/js/index.html b/public/docs/_examples/styleguide/js/src/index.html similarity index 100% rename from public/docs/_examples/styleguide/js/index.html rename to public/docs/_examples/styleguide/js/src/index.html diff --git a/public/docs/_examples/styleguide/ts/app/main.ts b/public/docs/_examples/styleguide/ts/app/main.ts deleted file mode 100644 index 4acf5de663..0000000000 --- a/public/docs/_examples/styleguide/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/styleguide/ts/app/app.component.ts b/public/docs/_examples/styleguide/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/styleguide/ts/app/app.component.ts rename to public/docs/_examples/styleguide/ts/src/app/app.component.ts diff --git a/public/docs/_examples/styleguide/ts/app/app.module.ts b/public/docs/_examples/styleguide/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/styleguide/ts/app/app.module.ts rename to public/docs/_examples/styleguide/ts/src/app/app.module.ts diff --git a/public/docs/_examples/styleguide/ts/index.html b/public/docs/_examples/styleguide/ts/src/index.html similarity index 89% rename from public/docs/_examples/styleguide/ts/index.html rename to public/docs/_examples/styleguide/ts/src/index.html index 5c616648ca..5cb8919509 100644 --- a/public/docs/_examples/styleguide/ts/index.html +++ b/public/docs/_examples/styleguide/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/styleguide/ts/src/main.ts b/public/docs/_examples/styleguide/ts/src/main.ts new file mode 100644 index 0000000000..6b6532d428 --- /dev/null +++ b/public/docs/_examples/styleguide/ts/src/main.ts @@ -0,0 +1,5 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/template-syntax/ts/plnkr.json b/public/docs/_examples/template-syntax/ts/plnkr.json index 05efe8f536..099616ad7c 100644 --- a/public/docs/_examples/template-syntax/ts/plnkr.json +++ b/public/docs/_examples/template-syntax/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Template Syntax Collection", + "basePath": "src/", "files":["!**/*.d.ts", "!**/*.js"], "tags": ["template"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/template-syntax/ts/app/app.component.html b/public/docs/_examples/template-syntax/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/template-syntax/ts/app/app.component.html rename to public/docs/_examples/template-syntax/ts/src/app/app.component.html diff --git a/public/docs/_examples/template-syntax/ts/app/app.component.ts b/public/docs/_examples/template-syntax/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/template-syntax/ts/app/app.component.ts rename to public/docs/_examples/template-syntax/ts/src/app/app.component.ts diff --git a/public/docs/_examples/template-syntax/ts/app/app.module.1.ts b/public/docs/_examples/template-syntax/ts/src/app/app.module.1.ts similarity index 100% rename from public/docs/_examples/template-syntax/ts/app/app.module.1.ts rename to public/docs/_examples/template-syntax/ts/src/app/app.module.1.ts diff --git a/public/docs/_examples/template-syntax/ts/app/app.module.ts b/public/docs/_examples/template-syntax/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/template-syntax/ts/app/app.module.ts rename to public/docs/_examples/template-syntax/ts/src/app/app.module.ts diff --git a/public/docs/_examples/template-syntax/ts/app/click.directive.ts b/public/docs/_examples/template-syntax/ts/src/app/click.directive.ts similarity index 100% rename from public/docs/_examples/template-syntax/ts/app/click.directive.ts rename to public/docs/_examples/template-syntax/ts/src/app/click.directive.ts diff --git a/public/docs/_examples/template-syntax/ts/app/hero-detail.component.ts b/public/docs/_examples/template-syntax/ts/src/app/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/template-syntax/ts/app/hero-detail.component.ts rename to public/docs/_examples/template-syntax/ts/src/app/hero-detail.component.ts diff --git a/public/docs/_examples/template-syntax/ts/app/hero.ts b/public/docs/_examples/template-syntax/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/template-syntax/ts/app/hero.ts rename to public/docs/_examples/template-syntax/ts/src/app/hero.ts diff --git a/public/docs/_examples/template-syntax/ts/app/sizer.component.ts b/public/docs/_examples/template-syntax/ts/src/app/sizer.component.ts similarity index 100% rename from public/docs/_examples/template-syntax/ts/app/sizer.component.ts rename to public/docs/_examples/template-syntax/ts/src/app/sizer.component.ts diff --git a/public/docs/_examples/template-syntax/ts/images/hero.png b/public/docs/_examples/template-syntax/ts/src/images/hero.png similarity index 100% rename from public/docs/_examples/template-syntax/ts/images/hero.png rename to public/docs/_examples/template-syntax/ts/src/images/hero.png diff --git a/public/docs/_examples/template-syntax/ts/images/ng-logo.png b/public/docs/_examples/template-syntax/ts/src/images/ng-logo.png similarity index 100% rename from public/docs/_examples/template-syntax/ts/images/ng-logo.png rename to public/docs/_examples/template-syntax/ts/src/images/ng-logo.png diff --git a/public/docs/_examples/template-syntax/ts/images/villain.png b/public/docs/_examples/template-syntax/ts/src/images/villain.png similarity index 100% rename from public/docs/_examples/template-syntax/ts/images/villain.png rename to public/docs/_examples/template-syntax/ts/src/images/villain.png diff --git a/public/docs/_examples/template-syntax/ts/index.html b/public/docs/_examples/template-syntax/ts/src/index.html similarity index 89% rename from public/docs/_examples/template-syntax/ts/index.html rename to public/docs/_examples/template-syntax/ts/src/index.html index 78539db57c..418daa58c0 100644 --- a/public/docs/_examples/template-syntax/ts/index.html +++ b/public/docs/_examples/template-syntax/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/template-syntax/ts/app/main.ts b/public/docs/_examples/template-syntax/ts/src/main.ts similarity index 74% rename from public/docs/_examples/template-syntax/ts/app/main.ts rename to public/docs/_examples/template-syntax/ts/src/main.ts index 6af7a5b2ae..311c44b76d 100644 --- a/public/docs/_examples/template-syntax/ts/app/main.ts +++ b/public/docs/_examples/template-syntax/ts/src/main.ts @@ -1,5 +1,5 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/template-syntax/ts/template-syntax.css b/public/docs/_examples/template-syntax/ts/src/template-syntax.css similarity index 100% rename from public/docs/_examples/template-syntax/ts/template-syntax.css rename to public/docs/_examples/template-syntax/ts/src/template-syntax.css diff --git a/public/docs/_examples/testing/ts/.gitignore b/public/docs/_examples/testing/ts/.gitignore new file mode 100644 index 0000000000..5374943421 --- /dev/null +++ b/public/docs/_examples/testing/ts/.gitignore @@ -0,0 +1 @@ +!src/browser-test-shim.js diff --git a/public/docs/_examples/testing/ts/1st-specs.plnkr.json b/public/docs/_examples/testing/ts/1st-specs.plnkr.json index 14e035b6d5..6a21b1f761 100644 --- a/public/docs/_examples/testing/ts/1st-specs.plnkr.json +++ b/public/docs/_examples/testing/ts/1st-specs.plnkr.json @@ -1,5 +1,6 @@ { "description": "Testing - 1st.specs", + "basePath": "src/", "files":[ "browser-test-shim.js", "styles.css", diff --git a/public/docs/_examples/testing/ts/app-specs.plnkr.json b/public/docs/_examples/testing/ts/app-specs.plnkr.json index 18dd58dec9..6efb603ce9 100644 --- a/public/docs/_examples/testing/ts/app-specs.plnkr.json +++ b/public/docs/_examples/testing/ts/app-specs.plnkr.json @@ -1,5 +1,6 @@ { "description": "Testing - app.specs", + "basePath": "src/", "files":[ "browser-test-shim.js", "systemjs.config.extras.js", @@ -12,7 +13,7 @@ "testing/*.ts", - "!app/main.ts", + "!main.ts", "!app/bag/*.*", "!app/1st.spec.ts", diff --git a/public/docs/_examples/testing/ts/bag-specs.plnkr.json b/public/docs/_examples/testing/ts/bag-specs.plnkr.json index b176c00cc5..0e320b776c 100644 --- a/public/docs/_examples/testing/ts/bag-specs.plnkr.json +++ b/public/docs/_examples/testing/ts/bag-specs.plnkr.json @@ -1,5 +1,6 @@ { "description": "Testing - bag.specs", + "basePath": "src/", "files":[ "browser-test-shim.js", "systemjs.config.extras.js", diff --git a/public/docs/_examples/testing/ts/bag.plnkr.json b/public/docs/_examples/testing/ts/bag.plnkr.json index 96e0b79b65..4bb0ac9c5b 100644 --- a/public/docs/_examples/testing/ts/bag.plnkr.json +++ b/public/docs/_examples/testing/ts/bag.plnkr.json @@ -1,5 +1,6 @@ { "description": "Running the bag", + "basePath": "src/", "files":[ "styles.css", diff --git a/public/docs/_examples/testing/ts/banner-inline-specs.plnkr.json b/public/docs/_examples/testing/ts/banner-inline-specs.plnkr.json index ced6b23158..5e1fa0e81f 100644 --- a/public/docs/_examples/testing/ts/banner-inline-specs.plnkr.json +++ b/public/docs/_examples/testing/ts/banner-inline-specs.plnkr.json @@ -1,5 +1,6 @@ { "description": "Testing - banner-inline.component.specs", + "basePath": "src/", "files":[ "browser-test-shim.js", "systemjs.config.extras.js", diff --git a/public/docs/_examples/testing/ts/banner-specs.plnkr.json b/public/docs/_examples/testing/ts/banner-specs.plnkr.json index 715e0f5f88..10848fa218 100644 --- a/public/docs/_examples/testing/ts/banner-specs.plnkr.json +++ b/public/docs/_examples/testing/ts/banner-specs.plnkr.json @@ -1,5 +1,6 @@ { "description": "Testing - banner.component.specs", + "basePath": "src/", "files":[ "browser-test-shim.js", "systemjs.config.extras.js", diff --git a/public/docs/_examples/testing/ts/karma-test-shim.js b/public/docs/_examples/testing/ts/karma-test-shim.js index 43ed504bab..1b8d6acdd4 100644 --- a/public/docs/_examples/testing/ts/karma-test-shim.js +++ b/public/docs/_examples/testing/ts/karma-test-shim.js @@ -8,8 +8,8 @@ Error.stackTraceLimit = 0; // "No stacktrace"" is usually best for app testing. jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000; // builtPaths: root paths for output ("built") files -// get from karma.config.js, then prefix with '/base/' (default is 'app/') -var builtPaths = (__karma__.config.builtPaths || ['app/']) +// get from karma.config.js, then prefix with '/src/' (default is 'app/') +var builtPaths = (__karma__.config.builtPaths || ['src/']) .map(function(p) { return '/base/'+p;}); __karma__.loaded = function () { }; @@ -35,7 +35,7 @@ var allSpecFiles = Object.keys(window.__karma__.files) .filter(isBuiltFile); System.config({ - baseURL: 'base', + baseURL: 'base/src', // Extend usual application package list with testing folder packages: { 'testing': { main: 'index.js', defaultExtension: 'js' } }, diff --git a/public/docs/_examples/testing/ts/karma.conf.js b/public/docs/_examples/testing/ts/karma.conf.js index d34fb91873..a00b8add54 100644 --- a/public/docs/_examples/testing/ts/karma.conf.js +++ b/public/docs/_examples/testing/ts/karma.conf.js @@ -1,13 +1,12 @@ // #docregion module.exports = function(config) { - var appBase = 'app/'; // transpiled app JS and map files - var appSrcBase = 'app/'; // app source TS files + var appBase = 'src/'; // transpiled app JS and map files var appAssets = '/base/app/'; // component assets fetched by Angular's compiler // Testing helpers (optional) are conventionally in a folder called `testing` - var testingBase = 'testing/'; // transpiled test JS and map files - var testingSrcBase = 'testing/'; // test source TS files + var testingBase = 'src/testing/'; // transpiled test JS and map files + var testingSrcBase = 'src/testing/'; // test source TS files config.set({ basePath: '', @@ -58,8 +57,8 @@ module.exports = function(config) { { pattern: 'node_modules/@angular/**/*.js', included: false, watched: false }, { pattern: 'node_modules/@angular/**/*.js.map', included: false, watched: false }, - { pattern: 'systemjs.config.js', included: false, watched: false }, - { pattern: 'systemjs.config.extras.js', included: false, watched: false }, + { pattern: appBase + '/systemjs.config.js', included: false, watched: false }, + { pattern: appBase + '/systemjs.config.extras.js', included: false, watched: false }, 'karma-test-shim.js', // optionally extend SystemJS mapping e.g., with barrels // transpiled application & spec code paths loaded via module imports @@ -73,7 +72,7 @@ module.exports = function(config) { { pattern: appBase + '**/*.css', included: false, watched: true }, // Paths for debugging with source maps in dev tools - { pattern: appSrcBase + '**/*.ts', included: false, watched: false }, + { pattern: appBase + '**/*.ts', included: false, watched: false }, { pattern: appBase + '**/*.js.map', included: false, watched: false }, { pattern: testingSrcBase + '**/*.ts', included: false, watched: false }, { pattern: testingBase + '**/*.js.map', included: false, watched: false} @@ -81,8 +80,8 @@ module.exports = function(config) { // Proxied base paths for loading assets proxies: { - // required for component assets fetched by Angular's compiler - "/app/": appAssets + // required for modules fetched by SystemJS + '/base/src/node_modules/': '/base/node_modules/' }, exclude: [], diff --git a/public/docs/_examples/testing/ts/plnkr.json b/public/docs/_examples/testing/ts/plnkr.json index e3573a6b6d..899867159f 100644 --- a/public/docs/_examples/testing/ts/plnkr.json +++ b/public/docs/_examples/testing/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Heroes Test App", + "basePath": "src/", "files":[ "styles.css", "systemjs.config.extras.js", @@ -10,6 +11,7 @@ "!app/bag/*.*", + "main.ts", "index.html" ], "tags": ["testing"] diff --git a/public/docs/_examples/testing/ts/1st-specs.html b/public/docs/_examples/testing/ts/src/1st-specs.html similarity index 100% rename from public/docs/_examples/testing/ts/1st-specs.html rename to public/docs/_examples/testing/ts/src/1st-specs.html diff --git a/public/docs/_examples/testing/ts/app-specs.html b/public/docs/_examples/testing/ts/src/app-specs.html similarity index 100% rename from public/docs/_examples/testing/ts/app-specs.html rename to public/docs/_examples/testing/ts/src/app-specs.html diff --git a/public/docs/_examples/testing/ts/app/1st.spec.ts b/public/docs/_examples/testing/ts/src/app/1st.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/1st.spec.ts rename to public/docs/_examples/testing/ts/src/app/1st.spec.ts diff --git a/public/docs/_examples/testing/ts/app/about.component.spec.ts b/public/docs/_examples/testing/ts/src/app/about.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/about.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/about.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/about.component.ts b/public/docs/_examples/testing/ts/src/app/about.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/about.component.ts rename to public/docs/_examples/testing/ts/src/app/about.component.ts diff --git a/public/docs/_examples/testing/ts/app/app-routing.module.ts b/public/docs/_examples/testing/ts/src/app/app-routing.module.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/app-routing.module.ts rename to public/docs/_examples/testing/ts/src/app/app-routing.module.ts diff --git a/public/docs/_examples/testing/ts/app/app.component.html b/public/docs/_examples/testing/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/testing/ts/app/app.component.html rename to public/docs/_examples/testing/ts/src/app/app.component.html diff --git a/public/docs/_examples/testing/ts/app/app.component.router.spec.ts b/public/docs/_examples/testing/ts/src/app/app.component.router.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/app.component.router.spec.ts rename to public/docs/_examples/testing/ts/src/app/app.component.router.spec.ts diff --git a/public/docs/_examples/testing/ts/app/app.component.spec.ts b/public/docs/_examples/testing/ts/src/app/app.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/app.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/app.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/app.component.ts b/public/docs/_examples/testing/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/app.component.ts rename to public/docs/_examples/testing/ts/src/app/app.component.ts diff --git a/public/docs/_examples/testing/ts/app/app.module.ts b/public/docs/_examples/testing/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/app.module.ts rename to public/docs/_examples/testing/ts/src/app/app.module.ts diff --git a/public/docs/_examples/testing/ts/app/bag/async-helper.spec.ts b/public/docs/_examples/testing/ts/src/app/bag/async-helper.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/bag/async-helper.spec.ts rename to public/docs/_examples/testing/ts/src/app/bag/async-helper.spec.ts diff --git a/public/docs/_examples/testing/ts/app/bag/bag-external-template.html b/public/docs/_examples/testing/ts/src/app/bag/bag-external-template.html similarity index 100% rename from public/docs/_examples/testing/ts/app/bag/bag-external-template.html rename to public/docs/_examples/testing/ts/src/app/bag/bag-external-template.html diff --git a/public/docs/_examples/testing/ts/app/bag/bag-main.ts b/public/docs/_examples/testing/ts/src/app/bag/bag-main.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/bag/bag-main.ts rename to public/docs/_examples/testing/ts/src/app/bag/bag-main.ts diff --git a/public/docs/_examples/testing/ts/app/bag/bag.no-testbed.spec.ts b/public/docs/_examples/testing/ts/src/app/bag/bag.no-testbed.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/bag/bag.no-testbed.spec.ts rename to public/docs/_examples/testing/ts/src/app/bag/bag.no-testbed.spec.ts diff --git a/public/docs/_examples/testing/ts/app/bag/bag.spec.ts b/public/docs/_examples/testing/ts/src/app/bag/bag.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/bag/bag.spec.ts rename to public/docs/_examples/testing/ts/src/app/bag/bag.spec.ts diff --git a/public/docs/_examples/testing/ts/app/bag/bag.ts b/public/docs/_examples/testing/ts/src/app/bag/bag.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/bag/bag.ts rename to public/docs/_examples/testing/ts/src/app/bag/bag.ts diff --git a/public/docs/_examples/testing/ts/app/banner-inline.component.spec.ts b/public/docs/_examples/testing/ts/src/app/banner-inline.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/banner-inline.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/banner-inline.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/banner-inline.component.ts b/public/docs/_examples/testing/ts/src/app/banner-inline.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/banner-inline.component.ts rename to public/docs/_examples/testing/ts/src/app/banner-inline.component.ts diff --git a/public/docs/_examples/testing/ts/app/banner.component.css b/public/docs/_examples/testing/ts/src/app/banner.component.css similarity index 97% rename from public/docs/_examples/testing/ts/app/banner.component.css rename to public/docs/_examples/testing/ts/src/app/banner.component.css index 3491fcd5c8..cd09a55b3c 100644 --- a/public/docs/_examples/testing/ts/app/banner.component.css +++ b/public/docs/_examples/testing/ts/src/app/banner.component.css @@ -1 +1 @@ -h1 { color: green; font-size: 350%} +h1 { color: green; font-size: 350%} diff --git a/public/docs/_examples/testing/ts/app/banner.component.detect-changes.spec.ts b/public/docs/_examples/testing/ts/src/app/banner.component.detect-changes.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/banner.component.detect-changes.spec.ts rename to public/docs/_examples/testing/ts/src/app/banner.component.detect-changes.spec.ts diff --git a/public/docs/_examples/testing/ts/app/banner.component.html b/public/docs/_examples/testing/ts/src/app/banner.component.html similarity index 95% rename from public/docs/_examples/testing/ts/app/banner.component.html rename to public/docs/_examples/testing/ts/src/app/banner.component.html index 18574a7992..6213adcb47 100644 --- a/public/docs/_examples/testing/ts/app/banner.component.html +++ b/public/docs/_examples/testing/ts/src/app/banner.component.html @@ -1 +1 @@ -

{{title}}

+

{{title}}

diff --git a/public/docs/_examples/testing/ts/app/banner.component.spec.ts b/public/docs/_examples/testing/ts/src/app/banner.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/banner.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/banner.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/banner.component.ts b/public/docs/_examples/testing/ts/src/app/banner.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/banner.component.ts rename to public/docs/_examples/testing/ts/src/app/banner.component.ts diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard-hero.component.css b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard-hero.component.css similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard-hero.component.css rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard-hero.component.css diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard-hero.component.html b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard-hero.component.html similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard-hero.component.html rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard-hero.component.html diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard-hero.component.spec.ts b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard-hero.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard-hero.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard-hero.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard-hero.component.ts b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard-hero.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard-hero.component.ts rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard-hero.component.ts diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard.component.css b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.css similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard.component.css rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.css diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard.component.html b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.html similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard.component.html rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.html diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard.component.no-testbed.spec.ts b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.no-testbed.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard.component.no-testbed.spec.ts rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.no-testbed.spec.ts diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard.component.spec.ts b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard.component.ts b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard.component.ts rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard.component.ts diff --git a/public/docs/_examples/testing/ts/app/dashboard/dashboard.module.ts b/public/docs/_examples/testing/ts/src/app/dashboard/dashboard.module.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/dashboard/dashboard.module.ts rename to public/docs/_examples/testing/ts/src/app/dashboard/dashboard.module.ts diff --git a/public/docs/_examples/testing/ts/app/hero/hero-detail.component.css b/public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.css similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-detail.component.css rename to public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.css diff --git a/public/docs/_examples/testing/ts/app/hero/hero-detail.component.html b/public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.html similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-detail.component.html rename to public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.html diff --git a/public/docs/_examples/testing/ts/app/hero/hero-detail.component.no-testbed.spec.ts b/public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.no-testbed.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-detail.component.no-testbed.spec.ts rename to public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.no-testbed.spec.ts diff --git a/public/docs/_examples/testing/ts/app/hero/hero-detail.component.spec.ts b/public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-detail.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/hero/hero-detail.component.ts b/public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-detail.component.ts rename to public/docs/_examples/testing/ts/src/app/hero/hero-detail.component.ts diff --git a/public/docs/_examples/testing/ts/app/hero/hero-detail.service.ts b/public/docs/_examples/testing/ts/src/app/hero/hero-detail.service.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-detail.service.ts rename to public/docs/_examples/testing/ts/src/app/hero/hero-detail.service.ts diff --git a/public/docs/_examples/testing/ts/app/hero/hero-list.component.css b/public/docs/_examples/testing/ts/src/app/hero/hero-list.component.css similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-list.component.css rename to public/docs/_examples/testing/ts/src/app/hero/hero-list.component.css diff --git a/public/docs/_examples/testing/ts/app/hero/hero-list.component.html b/public/docs/_examples/testing/ts/src/app/hero/hero-list.component.html similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-list.component.html rename to public/docs/_examples/testing/ts/src/app/hero/hero-list.component.html diff --git a/public/docs/_examples/testing/ts/app/hero/hero-list.component.spec.ts b/public/docs/_examples/testing/ts/src/app/hero/hero-list.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-list.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/hero/hero-list.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/hero/hero-list.component.ts b/public/docs/_examples/testing/ts/src/app/hero/hero-list.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-list.component.ts rename to public/docs/_examples/testing/ts/src/app/hero/hero-list.component.ts diff --git a/public/docs/_examples/testing/ts/app/hero/hero-routing.module.ts b/public/docs/_examples/testing/ts/src/app/hero/hero-routing.module.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero-routing.module.ts rename to public/docs/_examples/testing/ts/src/app/hero/hero-routing.module.ts diff --git a/public/docs/_examples/testing/ts/app/hero/hero.module.ts b/public/docs/_examples/testing/ts/src/app/hero/hero.module.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/hero/hero.module.ts rename to public/docs/_examples/testing/ts/src/app/hero/hero.module.ts diff --git a/public/docs/_examples/testing/ts/app/model/hero.service.ts b/public/docs/_examples/testing/ts/src/app/model/hero.service.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/hero.service.ts rename to public/docs/_examples/testing/ts/src/app/model/hero.service.ts diff --git a/public/docs/_examples/testing/ts/app/model/hero.spec.ts b/public/docs/_examples/testing/ts/src/app/model/hero.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/hero.spec.ts rename to public/docs/_examples/testing/ts/src/app/model/hero.spec.ts diff --git a/public/docs/_examples/testing/ts/app/model/hero.ts b/public/docs/_examples/testing/ts/src/app/model/hero.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/hero.ts rename to public/docs/_examples/testing/ts/src/app/model/hero.ts diff --git a/public/docs/_examples/testing/ts/app/model/http-hero.service.spec.ts b/public/docs/_examples/testing/ts/src/app/model/http-hero.service.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/http-hero.service.spec.ts rename to public/docs/_examples/testing/ts/src/app/model/http-hero.service.spec.ts diff --git a/public/docs/_examples/testing/ts/app/model/http-hero.service.ts b/public/docs/_examples/testing/ts/src/app/model/http-hero.service.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/http-hero.service.ts rename to public/docs/_examples/testing/ts/src/app/model/http-hero.service.ts diff --git a/public/docs/_examples/testing/ts/app/model/index.ts b/public/docs/_examples/testing/ts/src/app/model/index.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/index.ts rename to public/docs/_examples/testing/ts/src/app/model/index.ts diff --git a/public/docs/_examples/testing/ts/app/model/test-heroes.ts b/public/docs/_examples/testing/ts/src/app/model/test-heroes.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/test-heroes.ts rename to public/docs/_examples/testing/ts/src/app/model/test-heroes.ts diff --git a/public/docs/_examples/testing/ts/app/model/testing/fake-hero.service.ts b/public/docs/_examples/testing/ts/src/app/model/testing/fake-hero.service.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/testing/fake-hero.service.ts rename to public/docs/_examples/testing/ts/src/app/model/testing/fake-hero.service.ts diff --git a/public/docs/_examples/testing/ts/app/model/testing/index.ts b/public/docs/_examples/testing/ts/src/app/model/testing/index.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/testing/index.ts rename to public/docs/_examples/testing/ts/src/app/model/testing/index.ts diff --git a/public/docs/_examples/testing/ts/app/model/user.service.ts b/public/docs/_examples/testing/ts/src/app/model/user.service.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/model/user.service.ts rename to public/docs/_examples/testing/ts/src/app/model/user.service.ts diff --git a/public/docs/_examples/testing/ts/app/shared/highlight.directive.spec.ts b/public/docs/_examples/testing/ts/src/app/shared/highlight.directive.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/highlight.directive.spec.ts rename to public/docs/_examples/testing/ts/src/app/shared/highlight.directive.spec.ts diff --git a/public/docs/_examples/testing/ts/app/shared/highlight.directive.ts b/public/docs/_examples/testing/ts/src/app/shared/highlight.directive.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/highlight.directive.ts rename to public/docs/_examples/testing/ts/src/app/shared/highlight.directive.ts diff --git a/public/docs/_examples/testing/ts/app/shared/shared.module.ts b/public/docs/_examples/testing/ts/src/app/shared/shared.module.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/shared.module.ts rename to public/docs/_examples/testing/ts/src/app/shared/shared.module.ts diff --git a/public/docs/_examples/testing/ts/app/shared/title-case.pipe.spec.ts b/public/docs/_examples/testing/ts/src/app/shared/title-case.pipe.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/title-case.pipe.spec.ts rename to public/docs/_examples/testing/ts/src/app/shared/title-case.pipe.spec.ts diff --git a/public/docs/_examples/testing/ts/app/shared/title-case.pipe.ts b/public/docs/_examples/testing/ts/src/app/shared/title-case.pipe.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/title-case.pipe.ts rename to public/docs/_examples/testing/ts/src/app/shared/title-case.pipe.ts diff --git a/public/docs/_examples/testing/ts/app/shared/twain.component.spec.ts b/public/docs/_examples/testing/ts/src/app/shared/twain.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/twain.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/shared/twain.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/shared/twain.component.timer.spec.ts.no-work b/public/docs/_examples/testing/ts/src/app/shared/twain.component.timer.spec.ts.no-work similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/twain.component.timer.spec.ts.no-work rename to public/docs/_examples/testing/ts/src/app/shared/twain.component.timer.spec.ts.no-work diff --git a/public/docs/_examples/testing/ts/app/shared/twain.component.timer.ts.no-work b/public/docs/_examples/testing/ts/src/app/shared/twain.component.timer.ts.no-work similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/twain.component.timer.ts.no-work rename to public/docs/_examples/testing/ts/src/app/shared/twain.component.timer.ts.no-work diff --git a/public/docs/_examples/testing/ts/app/shared/twain.component.ts b/public/docs/_examples/testing/ts/src/app/shared/twain.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/twain.component.ts rename to public/docs/_examples/testing/ts/src/app/shared/twain.component.ts diff --git a/public/docs/_examples/testing/ts/app/shared/twain.service.ts b/public/docs/_examples/testing/ts/src/app/shared/twain.service.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/shared/twain.service.ts rename to public/docs/_examples/testing/ts/src/app/shared/twain.service.ts diff --git a/public/docs/_examples/testing/ts/app/welcome.component.spec.ts b/public/docs/_examples/testing/ts/src/app/welcome.component.spec.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/welcome.component.spec.ts rename to public/docs/_examples/testing/ts/src/app/welcome.component.spec.ts diff --git a/public/docs/_examples/testing/ts/app/welcome.component.ts b/public/docs/_examples/testing/ts/src/app/welcome.component.ts similarity index 100% rename from public/docs/_examples/testing/ts/app/welcome.component.ts rename to public/docs/_examples/testing/ts/src/app/welcome.component.ts diff --git a/public/docs/_examples/testing/ts/bag-specs.html b/public/docs/_examples/testing/ts/src/bag-specs.html similarity index 100% rename from public/docs/_examples/testing/ts/bag-specs.html rename to public/docs/_examples/testing/ts/src/bag-specs.html diff --git a/public/docs/_examples/testing/ts/bag.html b/public/docs/_examples/testing/ts/src/bag.html similarity index 100% rename from public/docs/_examples/testing/ts/bag.html rename to public/docs/_examples/testing/ts/src/bag.html diff --git a/public/docs/_examples/testing/ts/banner-inline-specs.html b/public/docs/_examples/testing/ts/src/banner-inline-specs.html similarity index 100% rename from public/docs/_examples/testing/ts/banner-inline-specs.html rename to public/docs/_examples/testing/ts/src/banner-inline-specs.html diff --git a/public/docs/_examples/testing/ts/banner-specs.html b/public/docs/_examples/testing/ts/src/banner-specs.html similarity index 100% rename from public/docs/_examples/testing/ts/banner-specs.html rename to public/docs/_examples/testing/ts/src/banner-specs.html diff --git a/public/docs/_examples/testing/ts/browser-test-shim.js b/public/docs/_examples/testing/ts/src/browser-test-shim.js similarity index 100% rename from public/docs/_examples/testing/ts/browser-test-shim.js rename to public/docs/_examples/testing/ts/src/browser-test-shim.js diff --git a/public/docs/_examples/testing/ts/index.html b/public/docs/_examples/testing/ts/src/index.html similarity index 89% rename from public/docs/_examples/testing/ts/index.html rename to public/docs/_examples/testing/ts/src/index.html index 9af2e520f2..fff2464efc 100644 --- a/public/docs/_examples/testing/ts/index.html +++ b/public/docs/_examples/testing/ts/src/index.html @@ -17,7 +17,7 @@ diff --git a/public/docs/_examples/testing/ts/app/main.ts b/public/docs/_examples/testing/ts/src/main.ts similarity index 72% rename from public/docs/_examples/testing/ts/app/main.ts rename to public/docs/_examples/testing/ts/src/main.ts index 2c89d35a81..fadce2f3c1 100644 --- a/public/docs/_examples/testing/ts/app/main.ts +++ b/public/docs/_examples/testing/ts/src/main.ts @@ -1,5 +1,5 @@ // main app entry point import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/testing/ts/systemjs.config.extras.js b/public/docs/_examples/testing/ts/src/systemjs.config.extras.js similarity index 100% rename from public/docs/_examples/testing/ts/systemjs.config.extras.js rename to public/docs/_examples/testing/ts/src/systemjs.config.extras.js diff --git a/public/docs/_examples/testing/ts/testing/index.ts b/public/docs/_examples/testing/ts/src/testing/index.ts similarity index 100% rename from public/docs/_examples/testing/ts/testing/index.ts rename to public/docs/_examples/testing/ts/src/testing/index.ts diff --git a/public/docs/_examples/testing/ts/testing/jasmine-matchers.d.ts b/public/docs/_examples/testing/ts/src/testing/jasmine-matchers.d.ts similarity index 100% rename from public/docs/_examples/testing/ts/testing/jasmine-matchers.d.ts rename to public/docs/_examples/testing/ts/src/testing/jasmine-matchers.d.ts diff --git a/public/docs/_examples/testing/ts/testing/jasmine-matchers.ts b/public/docs/_examples/testing/ts/src/testing/jasmine-matchers.ts similarity index 100% rename from public/docs/_examples/testing/ts/testing/jasmine-matchers.ts rename to public/docs/_examples/testing/ts/src/testing/jasmine-matchers.ts diff --git a/public/docs/_examples/testing/ts/testing/router-stubs.ts b/public/docs/_examples/testing/ts/src/testing/router-stubs.ts similarity index 100% rename from public/docs/_examples/testing/ts/testing/router-stubs.ts rename to public/docs/_examples/testing/ts/src/testing/router-stubs.ts diff --git a/public/docs/_examples/testing/ts/systemjs.config.extras.web.js b/public/docs/_examples/testing/ts/systemjs.config.extras.web.js deleted file mode 100644 index ed28ad662e..0000000000 --- a/public/docs/_examples/testing/ts/systemjs.config.extras.web.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Web (plunker) version of systemjs.config.extras.js - * It should default to `.ts` extensions rather than `.js` extensions in almost all cases. - */ -System.config({ - packages: { - // barrels - 'app/model': {main:'index.ts', defaultExtension:'ts'}, - 'app/model/testing': {main:'index.ts', defaultExtension:'ts'} - } -}); diff --git a/public/docs/_examples/toh-1/ts/plnkr.json b/public/docs/_examples/toh-1/ts/plnkr.json index 70479d87e5..b5d016f282 100644 --- a/public/docs/_examples/toh-1/ts/plnkr.json +++ b/public/docs/_examples/toh-1/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Tour of Heroes: Part 1", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/toh-1/ts/app/app.component.ts b/public/docs/_examples/toh-1/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/toh-1/ts/app/app.component.ts rename to public/docs/_examples/toh-1/ts/src/app/app.component.ts diff --git a/public/docs/_examples/toh-1/ts/app/app.module.ts b/public/docs/_examples/toh-1/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/toh-1/ts/app/app.module.ts rename to public/docs/_examples/toh-1/ts/src/app/app.module.ts diff --git a/public/docs/_examples/toh-3/ts/index.html b/public/docs/_examples/toh-1/ts/src/index.html similarity index 88% rename from public/docs/_examples/toh-3/ts/index.html rename to public/docs/_examples/toh-1/ts/src/index.html index f6474d9c11..a217238c6c 100644 --- a/public/docs/_examples/toh-3/ts/index.html +++ b/public/docs/_examples/toh-1/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/toh-1/ts/app/main.ts b/public/docs/_examples/toh-1/ts/src/main.ts similarity index 77% rename from public/docs/_examples/toh-1/ts/app/main.ts rename to public/docs/_examples/toh-1/ts/src/main.ts index 62da4340b8..80ece654a5 100644 --- a/public/docs/_examples/toh-1/ts/app/main.ts +++ b/public/docs/_examples/toh-1/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); // #enddocregion diff --git a/public/docs/_examples/toh-2/ts/plnkr.json b/public/docs/_examples/toh-2/ts/plnkr.json index 61add17a65..19c4e7f720 100644 --- a/public/docs/_examples/toh-2/ts/plnkr.json +++ b/public/docs/_examples/toh-2/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Tour of Heroes: Part 2", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/toh-2/ts/app/app.component.ts b/public/docs/_examples/toh-2/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/toh-2/ts/app/app.component.ts rename to public/docs/_examples/toh-2/ts/src/app/app.component.ts diff --git a/public/docs/_examples/toh-2/ts/app/app.module.ts b/public/docs/_examples/toh-2/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/toh-2/ts/app/app.module.ts rename to public/docs/_examples/toh-2/ts/src/app/app.module.ts diff --git a/public/docs/_examples/toh-2/ts/index.html b/public/docs/_examples/toh-2/ts/src/index.html similarity index 88% rename from public/docs/_examples/toh-2/ts/index.html rename to public/docs/_examples/toh-2/ts/src/index.html index f6474d9c11..a217238c6c 100644 --- a/public/docs/_examples/toh-2/ts/index.html +++ b/public/docs/_examples/toh-2/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/toh-2/ts/app/main.ts b/public/docs/_examples/toh-2/ts/src/main.ts similarity index 77% rename from public/docs/_examples/toh-2/ts/app/main.ts rename to public/docs/_examples/toh-2/ts/src/main.ts index 62da4340b8..80ece654a5 100644 --- a/public/docs/_examples/toh-2/ts/app/main.ts +++ b/public/docs/_examples/toh-2/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); // #enddocregion diff --git a/public/docs/_examples/toh-3/ts/plnkr.json b/public/docs/_examples/toh-3/ts/plnkr.json index b6e424dda7..086f8bd05c 100644 --- a/public/docs/_examples/toh-3/ts/plnkr.json +++ b/public/docs/_examples/toh-3/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Tour of Heroes: Part 3", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js" diff --git a/public/docs/_examples/toh-3/ts/app/app.component.ts b/public/docs/_examples/toh-3/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/toh-3/ts/app/app.component.ts rename to public/docs/_examples/toh-3/ts/src/app/app.component.ts diff --git a/public/docs/_examples/toh-3/ts/app/app.module.ts b/public/docs/_examples/toh-3/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/toh-3/ts/app/app.module.ts rename to public/docs/_examples/toh-3/ts/src/app/app.module.ts diff --git a/public/docs/_examples/toh-3/ts/app/hero-detail.component.ts b/public/docs/_examples/toh-3/ts/src/app/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/toh-3/ts/app/hero-detail.component.ts rename to public/docs/_examples/toh-3/ts/src/app/hero-detail.component.ts diff --git a/public/docs/_examples/toh-3/ts/app/hero.ts b/public/docs/_examples/toh-3/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/toh-3/ts/app/hero.ts rename to public/docs/_examples/toh-3/ts/src/app/hero.ts diff --git a/public/docs/_examples/toh-1/ts/index.html b/public/docs/_examples/toh-3/ts/src/index.html similarity index 88% rename from public/docs/_examples/toh-1/ts/index.html rename to public/docs/_examples/toh-3/ts/src/index.html index f6474d9c11..a217238c6c 100644 --- a/public/docs/_examples/toh-1/ts/index.html +++ b/public/docs/_examples/toh-3/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/toh-3/ts/app/main.ts b/public/docs/_examples/toh-3/ts/src/main.ts similarity index 78% rename from public/docs/_examples/toh-3/ts/app/main.ts rename to public/docs/_examples/toh-3/ts/src/main.ts index e6bbb4c282..aa939b3241 100644 --- a/public/docs/_examples/toh-3/ts/app/main.ts +++ b/public/docs/_examples/toh-3/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion pt1 import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); // #enddocregion pt1 diff --git a/public/docs/_examples/toh-4/ts/app/main.ts b/public/docs/_examples/toh-4/ts/app/main.ts deleted file mode 100644 index 2470c9595e..0000000000 --- a/public/docs/_examples/toh-4/ts/app/main.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/toh-4/ts/plnkr.json b/public/docs/_examples/toh-4/ts/plnkr.json index 1b3e442ac0..95987d95ce 100644 --- a/public/docs/_examples/toh-4/ts/plnkr.json +++ b/public/docs/_examples/toh-4/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Tour of Heroes: Part 4", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js", diff --git a/public/docs/_examples/toh-4/ts/app/app.component.1.ts b/public/docs/_examples/toh-4/ts/src/app/app.component.1.ts similarity index 100% rename from public/docs/_examples/toh-4/ts/app/app.component.1.ts rename to public/docs/_examples/toh-4/ts/src/app/app.component.1.ts diff --git a/public/docs/_examples/toh-4/ts/app/app.component.ts b/public/docs/_examples/toh-4/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/toh-4/ts/app/app.component.ts rename to public/docs/_examples/toh-4/ts/src/app/app.component.ts diff --git a/public/docs/_examples/toh-4/ts/app/app.module.ts b/public/docs/_examples/toh-4/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/toh-4/ts/app/app.module.ts rename to public/docs/_examples/toh-4/ts/src/app/app.module.ts diff --git a/public/docs/_examples/toh-4/ts/app/hero-detail.component.ts b/public/docs/_examples/toh-4/ts/src/app/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/toh-4/ts/app/hero-detail.component.ts rename to public/docs/_examples/toh-4/ts/src/app/hero-detail.component.ts diff --git a/public/docs/_examples/toh-4/ts/app/hero.service.1.ts b/public/docs/_examples/toh-4/ts/src/app/hero.service.1.ts similarity index 100% rename from public/docs/_examples/toh-4/ts/app/hero.service.1.ts rename to public/docs/_examples/toh-4/ts/src/app/hero.service.1.ts diff --git a/public/docs/_examples/toh-4/ts/app/hero.service.2.ts b/public/docs/_examples/toh-4/ts/src/app/hero.service.2.ts similarity index 100% rename from public/docs/_examples/toh-4/ts/app/hero.service.2.ts rename to public/docs/_examples/toh-4/ts/src/app/hero.service.2.ts diff --git a/public/docs/_examples/toh-4/ts/app/hero.service.ts b/public/docs/_examples/toh-4/ts/src/app/hero.service.ts similarity index 100% rename from public/docs/_examples/toh-4/ts/app/hero.service.ts rename to public/docs/_examples/toh-4/ts/src/app/hero.service.ts diff --git a/public/docs/_examples/toh-4/ts/app/hero.ts b/public/docs/_examples/toh-4/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/toh-4/ts/app/hero.ts rename to public/docs/_examples/toh-4/ts/src/app/hero.ts diff --git a/public/docs/_examples/toh-4/ts/app/mock-heroes.ts b/public/docs/_examples/toh-4/ts/src/app/mock-heroes.ts similarity index 100% rename from public/docs/_examples/toh-4/ts/app/mock-heroes.ts rename to public/docs/_examples/toh-4/ts/src/app/mock-heroes.ts diff --git a/public/docs/_examples/toh-4/ts/index.html b/public/docs/_examples/toh-4/ts/src/index.html similarity index 88% rename from public/docs/_examples/toh-4/ts/index.html rename to public/docs/_examples/toh-4/ts/src/index.html index f6474d9c11..a217238c6c 100644 --- a/public/docs/_examples/toh-4/ts/index.html +++ b/public/docs/_examples/toh-4/ts/src/index.html @@ -15,7 +15,7 @@ diff --git a/public/docs/_examples/toh-4/ts/app/main.1.ts b/public/docs/_examples/toh-4/ts/src/main.1.ts similarity index 73% rename from public/docs/_examples/toh-4/ts/app/main.1.ts rename to public/docs/_examples/toh-4/ts/src/main.1.ts index 2470c9595e..f22933ba8e 100644 --- a/public/docs/_examples/toh-4/ts/app/main.1.ts +++ b/public/docs/_examples/toh-4/ts/src/main.1.ts @@ -1,4 +1,4 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/toh-4/ts/src/main.ts b/public/docs/_examples/toh-4/ts/src/main.ts new file mode 100644 index 0000000000..f22933ba8e --- /dev/null +++ b/public/docs/_examples/toh-4/ts/src/main.ts @@ -0,0 +1,4 @@ +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/toh-5/ts/plnkr.json b/public/docs/_examples/toh-5/ts/plnkr.json index fbed287e3f..db4b15d160 100644 --- a/public/docs/_examples/toh-5/ts/plnkr.json +++ b/public/docs/_examples/toh-5/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Tour of Heroes: Part 5", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js", diff --git a/public/docs/_examples/toh-5/ts/app/app-routing.module.ts b/public/docs/_examples/toh-5/ts/src/app/app-routing.module.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/app-routing.module.ts rename to public/docs/_examples/toh-5/ts/src/app/app-routing.module.ts diff --git a/public/docs/_examples/toh-5/ts/app/app.component.1.ts b/public/docs/_examples/toh-5/ts/src/app/app.component.1.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/app.component.1.ts rename to public/docs/_examples/toh-5/ts/src/app/app.component.1.ts diff --git a/public/docs/_examples/toh-5/ts/app/app.component.css b/public/docs/_examples/toh-5/ts/src/app/app.component.css similarity index 100% rename from public/docs/_examples/toh-5/ts/app/app.component.css rename to public/docs/_examples/toh-5/ts/src/app/app.component.css diff --git a/public/docs/_examples/toh-5/ts/app/app.component.ts b/public/docs/_examples/toh-5/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/app.component.ts rename to public/docs/_examples/toh-5/ts/src/app/app.component.ts diff --git a/public/docs/_examples/toh-5/ts/app/app.module.1.ts b/public/docs/_examples/toh-5/ts/src/app/app.module.1.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/app.module.1.ts rename to public/docs/_examples/toh-5/ts/src/app/app.module.1.ts diff --git a/public/docs/_examples/toh-5/ts/app/app.module.2.ts b/public/docs/_examples/toh-5/ts/src/app/app.module.2.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/app.module.2.ts rename to public/docs/_examples/toh-5/ts/src/app/app.module.2.ts diff --git a/public/docs/_examples/toh-5/ts/app/app.module.3.ts b/public/docs/_examples/toh-5/ts/src/app/app.module.3.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/app.module.3.ts rename to public/docs/_examples/toh-5/ts/src/app/app.module.3.ts diff --git a/public/docs/_examples/toh-5/ts/app/app.module.ts b/public/docs/_examples/toh-5/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/app.module.ts rename to public/docs/_examples/toh-5/ts/src/app/app.module.ts diff --git a/public/docs/_examples/toh-5/ts/app/dashboard.component.1.html b/public/docs/_examples/toh-5/ts/src/app/dashboard.component.1.html similarity index 100% rename from public/docs/_examples/toh-5/ts/app/dashboard.component.1.html rename to public/docs/_examples/toh-5/ts/src/app/dashboard.component.1.html diff --git a/public/docs/_examples/toh-5/ts/app/dashboard.component.1.ts b/public/docs/_examples/toh-5/ts/src/app/dashboard.component.1.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/dashboard.component.1.ts rename to public/docs/_examples/toh-5/ts/src/app/dashboard.component.1.ts diff --git a/public/docs/_examples/toh-5/ts/app/dashboard.component.css b/public/docs/_examples/toh-5/ts/src/app/dashboard.component.css similarity index 100% rename from public/docs/_examples/toh-5/ts/app/dashboard.component.css rename to public/docs/_examples/toh-5/ts/src/app/dashboard.component.css diff --git a/public/docs/_examples/toh-5/ts/app/dashboard.component.html b/public/docs/_examples/toh-5/ts/src/app/dashboard.component.html similarity index 100% rename from public/docs/_examples/toh-5/ts/app/dashboard.component.html rename to public/docs/_examples/toh-5/ts/src/app/dashboard.component.html diff --git a/public/docs/_examples/toh-5/ts/app/dashboard.component.ts b/public/docs/_examples/toh-5/ts/src/app/dashboard.component.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/dashboard.component.ts rename to public/docs/_examples/toh-5/ts/src/app/dashboard.component.ts diff --git a/public/docs/_examples/toh-5/ts/app/hero-detail.component.1.ts b/public/docs/_examples/toh-5/ts/src/app/hero-detail.component.1.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/hero-detail.component.1.ts rename to public/docs/_examples/toh-5/ts/src/app/hero-detail.component.1.ts diff --git a/public/docs/_examples/toh-5/ts/app/hero-detail.component.css b/public/docs/_examples/toh-5/ts/src/app/hero-detail.component.css similarity index 100% rename from public/docs/_examples/toh-5/ts/app/hero-detail.component.css rename to public/docs/_examples/toh-5/ts/src/app/hero-detail.component.css diff --git a/public/docs/_examples/toh-5/ts/app/hero-detail.component.html b/public/docs/_examples/toh-5/ts/src/app/hero-detail.component.html similarity index 100% rename from public/docs/_examples/toh-5/ts/app/hero-detail.component.html rename to public/docs/_examples/toh-5/ts/src/app/hero-detail.component.html diff --git a/public/docs/_examples/toh-5/ts/app/hero-detail.component.ts b/public/docs/_examples/toh-5/ts/src/app/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/hero-detail.component.ts rename to public/docs/_examples/toh-5/ts/src/app/hero-detail.component.ts diff --git a/public/docs/_examples/toh-5/ts/app/hero.service.ts b/public/docs/_examples/toh-5/ts/src/app/hero.service.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/hero.service.ts rename to public/docs/_examples/toh-5/ts/src/app/hero.service.ts diff --git a/public/docs/_examples/toh-5/ts/app/hero.ts b/public/docs/_examples/toh-5/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/hero.ts rename to public/docs/_examples/toh-5/ts/src/app/hero.ts diff --git a/public/docs/_examples/toh-5/ts/app/heroes.component.css b/public/docs/_examples/toh-5/ts/src/app/heroes.component.css similarity index 100% rename from public/docs/_examples/toh-5/ts/app/heroes.component.css rename to public/docs/_examples/toh-5/ts/src/app/heroes.component.css diff --git a/public/docs/_examples/toh-5/ts/app/heroes.component.html b/public/docs/_examples/toh-5/ts/src/app/heroes.component.html similarity index 100% rename from public/docs/_examples/toh-5/ts/app/heroes.component.html rename to public/docs/_examples/toh-5/ts/src/app/heroes.component.html diff --git a/public/docs/_examples/toh-5/ts/app/heroes.component.ts b/public/docs/_examples/toh-5/ts/src/app/heroes.component.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/heroes.component.ts rename to public/docs/_examples/toh-5/ts/src/app/heroes.component.ts diff --git a/public/docs/_examples/toh-5/ts/app/mock-heroes.ts b/public/docs/_examples/toh-5/ts/src/app/mock-heroes.ts similarity index 100% rename from public/docs/_examples/toh-5/ts/app/mock-heroes.ts rename to public/docs/_examples/toh-5/ts/src/app/mock-heroes.ts diff --git a/public/docs/_examples/toh-5/ts/index.html b/public/docs/_examples/toh-5/ts/src/index.html similarity index 91% rename from public/docs/_examples/toh-5/ts/index.html rename to public/docs/_examples/toh-5/ts/src/index.html index d58a3674c1..cbacc9b83b 100644 --- a/public/docs/_examples/toh-5/ts/index.html +++ b/public/docs/_examples/toh-5/ts/src/index.html @@ -22,7 +22,7 @@ diff --git a/public/docs/_examples/toh-5/ts/app/main.ts b/public/docs/_examples/toh-5/ts/src/main.ts similarity index 78% rename from public/docs/_examples/toh-5/ts/app/main.ts rename to public/docs/_examples/toh-5/ts/src/main.ts index 091a7d82a7..505f60b35b 100644 --- a/public/docs/_examples/toh-5/ts/app/main.ts +++ b/public/docs/_examples/toh-5/ts/src/main.ts @@ -1,6 +1,6 @@ // #docregion // main entry point import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { AppModule } from './app.module'; +import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/toh-6/ts/aot/bs-config.json b/public/docs/_examples/toh-6/ts/aot/bs-config.json deleted file mode 100644 index 7c85d6eddd..0000000000 --- a/public/docs/_examples/toh-6/ts/aot/bs-config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "port": 8000, - "files": ["./aot/**/*.{html,htm,css,js}"], - "server": { "baseDir": "./aot" } -} diff --git a/public/docs/_examples/toh-6/ts/aot/styles.css b/public/docs/_examples/toh-6/ts/aot/styles.css new file mode 100644 index 0000000000..d81835d0cd --- /dev/null +++ b/public/docs/_examples/toh-6/ts/aot/styles.css @@ -0,0 +1,116 @@ +/* #docregion , quickstart, toh */ +/* Master Styles */ +h1 { + color: #369; + font-family: Arial, Helvetica, sans-serif; + font-size: 250%; +} +h2, h3 { + color: #444; + font-family: Arial, Helvetica, sans-serif; + font-weight: lighter; +} +body { + margin: 2em; +} +/* #enddocregion quickstart */ +body, input[text], button { + color: #888; + font-family: Cambria, Georgia; +} +/* #enddocregion toh */ +a { + cursor: pointer; + cursor: hand; +} +button { + font-family: Arial; + background-color: #eee; + border: none; + padding: 5px 10px; + border-radius: 4px; + cursor: pointer; + cursor: hand; +} +button:hover { + background-color: #cfd8dc; +} +button:disabled { + background-color: #eee; + color: #aaa; + cursor: auto; +} + +/* Navigation link styles */ +nav a { + padding: 5px 10px; + text-decoration: none; + margin-right: 10px; + margin-top: 10px; + display: inline-block; + background-color: #eee; + border-radius: 4px; +} +nav a:visited, a:link { + color: #607D8B; +} +nav a:hover { + color: #039be5; + background-color: #CFD8DC; +} +nav a.active { + color: #039be5; +} + +/* items class */ +.items { + margin: 0 0 2em 0; + list-style-type: none; + padding: 0; + width: 24em; +} +.items li { + cursor: pointer; + position: relative; + left: 0; + background-color: #EEE; + margin: .5em; + padding: .3em 0; + height: 1.6em; + border-radius: 4px; +} +.items li:hover { + color: #607D8B; + background-color: #DDD; + left: .1em; +} +.items li.selected { + background-color: #CFD8DC; + color: white; +} +.items li.selected:hover { + background-color: #BBD8DC; +} +.items .text { + position: relative; + top: -3px; +} +.items .badge { + display: inline-block; + font-size: small; + color: white; + padding: 0.8em 0.7em 0 0.7em; + background-color: #607D8B; + line-height: 1em; + position: relative; + left: -1px; + top: -4px; + height: 1.8em; + margin-right: .8em; + border-radius: 4px 0 0 4px; +} +/* #docregion toh */ +/* everywhere else */ +* { + font-family: Arial, Helvetica, sans-serif; +} diff --git a/public/docs/_examples/toh-6/ts/app/main.ts b/public/docs/_examples/toh-6/ts/app/main.ts deleted file mode 100644 index 961a226688..0000000000 --- a/public/docs/_examples/toh-6/ts/app/main.ts +++ /dev/null @@ -1,6 +0,0 @@ -// #docregion -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/toh-6/ts/bs-config.aot.json b/public/docs/_examples/toh-6/ts/bs-config.aot.json new file mode 100644 index 0000000000..e59a7403a0 --- /dev/null +++ b/public/docs/_examples/toh-6/ts/bs-config.aot.json @@ -0,0 +1,14 @@ +{ + "open": false, + "logLevel": "silent", + "port": 8080, + "server": { + "baseDir": "aot", + "routes": { + "/node_modules": "node_modules" + }, + "middleware": { + "0": null + } + } +} diff --git a/public/docs/_examples/toh-6/ts/copy-dist-files.js b/public/docs/_examples/toh-6/ts/copy-dist-files.js index 660dadf55b..080864e99c 100644 --- a/public/docs/_examples/toh-6/ts/copy-dist-files.js +++ b/public/docs/_examples/toh-6/ts/copy-dist-files.js @@ -3,7 +3,7 @@ var fs = require('fs'); var resources = [ 'node_modules/core-js/client/shim.min.js', 'node_modules/zone.js/dist/zone.min.js', - 'styles.css' + 'src/styles.css' ]; resources.map(function(f) { var path = f.split('/'); diff --git a/public/docs/_examples/toh-6/ts/plnkr.json b/public/docs/_examples/toh-6/ts/plnkr.json index 777d9ad1f1..d355bc9ff2 100644 --- a/public/docs/_examples/toh-6/ts/plnkr.json +++ b/public/docs/_examples/toh-6/ts/plnkr.json @@ -1,5 +1,6 @@ { "description": "Tour of Heroes: Part 6", + "basePath": "src/", "files":[ "!**/*.d.ts", "!**/*.js", diff --git a/public/docs/_examples/toh-6/ts/rollup-config.js b/public/docs/_examples/toh-6/ts/rollup-config.js index aeb227689c..d5d07e07e5 100644 --- a/public/docs/_examples/toh-6/ts/rollup-config.js +++ b/public/docs/_examples/toh-6/ts/rollup-config.js @@ -6,11 +6,22 @@ import uglify from 'rollup-plugin-uglify' //paths are relative to the execution path export default { - entry: 'app/main-aot.js', + entry: 'src/main-aot.js', dest: 'aot/dist/build.js', // output a single application bundle sourceMap: true, sourceMapFile: 'aot/dist/build.js.map', format: 'iife', + onwarn: function(warning) { + // Skip certain warnings + + // should intercept ... but doesn't in some rollup versions + if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; } + // intercepts in some rollup versions + if ( warning.indexOf("The 'this' keyword is equivalent to 'undefined'") > -1 ) { return; } + + // console.warn everything else + console.warn( warning.message ); + }, plugins: [ nodeResolve({jsnext: true, module: true}), commonjs({ diff --git a/public/docs/_examples/toh-6/ts/app/app-routing.module.ts b/public/docs/_examples/toh-6/ts/src/app/app-routing.module.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/app-routing.module.ts rename to public/docs/_examples/toh-6/ts/src/app/app-routing.module.ts diff --git a/public/docs/_examples/toh-6/ts/app/app.component.css b/public/docs/_examples/toh-6/ts/src/app/app.component.css similarity index 100% rename from public/docs/_examples/toh-6/ts/app/app.component.css rename to public/docs/_examples/toh-6/ts/src/app/app.component.css diff --git a/public/docs/_examples/toh-6/ts/app/app.component.ts b/public/docs/_examples/toh-6/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/app.component.ts rename to public/docs/_examples/toh-6/ts/src/app/app.component.ts diff --git a/public/docs/_examples/toh-6/ts/app/app.module.ts b/public/docs/_examples/toh-6/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/app.module.ts rename to public/docs/_examples/toh-6/ts/src/app/app.module.ts diff --git a/public/docs/_examples/toh-6/ts/app/dashboard.component.css b/public/docs/_examples/toh-6/ts/src/app/dashboard.component.css similarity index 100% rename from public/docs/_examples/toh-6/ts/app/dashboard.component.css rename to public/docs/_examples/toh-6/ts/src/app/dashboard.component.css diff --git a/public/docs/_examples/toh-6/ts/app/dashboard.component.html b/public/docs/_examples/toh-6/ts/src/app/dashboard.component.html similarity index 100% rename from public/docs/_examples/toh-6/ts/app/dashboard.component.html rename to public/docs/_examples/toh-6/ts/src/app/dashboard.component.html diff --git a/public/docs/_examples/toh-6/ts/app/dashboard.component.ts b/public/docs/_examples/toh-6/ts/src/app/dashboard.component.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/dashboard.component.ts rename to public/docs/_examples/toh-6/ts/src/app/dashboard.component.ts diff --git a/public/docs/_examples/toh-6/ts/app/hero-detail.component.css b/public/docs/_examples/toh-6/ts/src/app/hero-detail.component.css similarity index 100% rename from public/docs/_examples/toh-6/ts/app/hero-detail.component.css rename to public/docs/_examples/toh-6/ts/src/app/hero-detail.component.css diff --git a/public/docs/_examples/toh-6/ts/app/hero-detail.component.html b/public/docs/_examples/toh-6/ts/src/app/hero-detail.component.html similarity index 100% rename from public/docs/_examples/toh-6/ts/app/hero-detail.component.html rename to public/docs/_examples/toh-6/ts/src/app/hero-detail.component.html diff --git a/public/docs/_examples/toh-6/ts/app/hero-detail.component.ts b/public/docs/_examples/toh-6/ts/src/app/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/hero-detail.component.ts rename to public/docs/_examples/toh-6/ts/src/app/hero-detail.component.ts diff --git a/public/docs/_examples/toh-6/ts/app/hero-search.component.css b/public/docs/_examples/toh-6/ts/src/app/hero-search.component.css similarity index 100% rename from public/docs/_examples/toh-6/ts/app/hero-search.component.css rename to public/docs/_examples/toh-6/ts/src/app/hero-search.component.css diff --git a/public/docs/_examples/toh-6/ts/app/hero-search.component.html b/public/docs/_examples/toh-6/ts/src/app/hero-search.component.html similarity index 100% rename from public/docs/_examples/toh-6/ts/app/hero-search.component.html rename to public/docs/_examples/toh-6/ts/src/app/hero-search.component.html diff --git a/public/docs/_examples/toh-6/ts/app/hero-search.component.ts b/public/docs/_examples/toh-6/ts/src/app/hero-search.component.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/hero-search.component.ts rename to public/docs/_examples/toh-6/ts/src/app/hero-search.component.ts diff --git a/public/docs/_examples/toh-6/ts/app/hero-search.service.ts b/public/docs/_examples/toh-6/ts/src/app/hero-search.service.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/hero-search.service.ts rename to public/docs/_examples/toh-6/ts/src/app/hero-search.service.ts diff --git a/public/docs/_examples/toh-6/ts/app/hero.service.ts b/public/docs/_examples/toh-6/ts/src/app/hero.service.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/hero.service.ts rename to public/docs/_examples/toh-6/ts/src/app/hero.service.ts diff --git a/public/docs/_examples/toh-6/ts/app/hero.ts b/public/docs/_examples/toh-6/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/hero.ts rename to public/docs/_examples/toh-6/ts/src/app/hero.ts diff --git a/public/docs/_examples/toh-6/ts/app/heroes.component.css b/public/docs/_examples/toh-6/ts/src/app/heroes.component.css similarity index 100% rename from public/docs/_examples/toh-6/ts/app/heroes.component.css rename to public/docs/_examples/toh-6/ts/src/app/heroes.component.css diff --git a/public/docs/_examples/toh-6/ts/app/heroes.component.html b/public/docs/_examples/toh-6/ts/src/app/heroes.component.html similarity index 100% rename from public/docs/_examples/toh-6/ts/app/heroes.component.html rename to public/docs/_examples/toh-6/ts/src/app/heroes.component.html diff --git a/public/docs/_examples/toh-6/ts/app/heroes.component.ts b/public/docs/_examples/toh-6/ts/src/app/heroes.component.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/heroes.component.ts rename to public/docs/_examples/toh-6/ts/src/app/heroes.component.ts diff --git a/public/docs/_examples/toh-6/ts/app/in-memory-data.service.ts b/public/docs/_examples/toh-6/ts/src/app/in-memory-data.service.ts similarity index 100% rename from public/docs/_examples/toh-6/ts/app/in-memory-data.service.ts rename to public/docs/_examples/toh-6/ts/src/app/in-memory-data.service.ts diff --git a/public/docs/_examples/toh-6/ts/index.html b/public/docs/_examples/toh-6/ts/src/index.html similarity index 88% rename from public/docs/_examples/toh-6/ts/index.html rename to public/docs/_examples/toh-6/ts/src/index.html index 02edd3adf7..18977969bb 100644 --- a/public/docs/_examples/toh-6/ts/index.html +++ b/public/docs/_examples/toh-6/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/toh-6/ts/app/main-aot.ts b/public/docs/_examples/toh-6/ts/src/main-aot.ts similarity index 65% rename from public/docs/_examples/toh-6/ts/app/main-aot.ts rename to public/docs/_examples/toh-6/ts/src/main-aot.ts index f5a9e94209..bd2ca604a3 100644 --- a/public/docs/_examples/toh-6/ts/app/main-aot.ts +++ b/public/docs/_examples/toh-6/ts/src/main-aot.ts @@ -1,6 +1,6 @@ // #docregion import { platformBrowser } from '@angular/platform-browser'; -import { AppModuleNgFactory } from '../aot/app/app.module.ngfactory'; +import { AppModuleNgFactory } from '../aot/src/app/app.module.ngfactory'; platformBrowser().bootstrapModuleFactory(AppModuleNgFactory); diff --git a/public/docs/_examples/toh-6/ts/src/main.ts b/public/docs/_examples/toh-6/ts/src/main.ts new file mode 100644 index 0000000000..f332d1d245 --- /dev/null +++ b/public/docs/_examples/toh-6/ts/src/main.ts @@ -0,0 +1,6 @@ +// #docregion +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/toh-6/ts/tsconfig-aot.json b/public/docs/_examples/toh-6/ts/tsconfig-aot.json index e8bf8c3aee..667ba0df42 100644 --- a/public/docs/_examples/toh-6/ts/tsconfig-aot.json +++ b/public/docs/_examples/toh-6/ts/tsconfig-aot.json @@ -15,8 +15,8 @@ }, "files": [ - "app/app.module.ts", - "app/main-aot.ts" + "src/app/app.module.ts", + "src/main-aot.ts" ], "angularCompilerOptions": { diff --git a/public/docs/_examples/typings.json b/public/docs/_examples/typings.json deleted file mode 100644 index ac640054e5..0000000000 --- a/public/docs/_examples/typings.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "globalDependencies": { - "angular": "registry:dt/angular#1.5.0+20160829152510", - "angular-animate": "registry:dt/angular-animate#1.5.0+20160709061515", - "angular-mocks": "registry:dt/angular-mocks#1.5.0+20160608104721", - "angular-resource": "registry:dt/angular-resource#1.5.0+20160613142217", - "angular-route": "registry:dt/angular-route#1.3.0+20160317120654", - "core-js": "registry:dt/core-js#0.0.0+20160725163759", - "jasmine": "registry:dt/jasmine#2.2.0+20160621224255", - "jquery": "registry:dt/jquery#1.10.0+20160704162008", - "node": "registry:dt/node#6.0.0+20160909174046" - } -} diff --git a/public/docs/_examples/upgrade-module/ts/app/a-to-ajs-providers/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-providers/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/a-to-ajs-providers/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-providers/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/a-to-ajs-providers/hero-detail.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-providers/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/a-to-ajs-providers/hero-detail.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-providers/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/a-to-ajs-providers/heroes.ts b/public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-providers/heroes.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/a-to-ajs-providers/heroes.ts rename to public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-providers/heroes.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/a-to-ajs-transclusion/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-transclusion/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/a-to-ajs-transclusion/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-transclusion/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/a-to-ajs-transclusion/container.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-transclusion/container.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/a-to-ajs-transclusion/container.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-transclusion/container.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/a-to-ajs-transclusion/hero-detail.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-transclusion/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/a-to-ajs-transclusion/hero-detail.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/a-to-ajs-transclusion/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/ajs-a-hybrid-bootstrap/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/ajs-a-hybrid-bootstrap/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/ajs-a-hybrid-bootstrap/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/ajs-a-hybrid-bootstrap/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/ajs-bootstrap/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/ajs-bootstrap/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/ajs-bootstrap/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/ajs-bootstrap/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/ajs-ng-app/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/ajs-ng-app/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/ajs-ng-app/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/ajs-ng-app/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/ajs-to-a-projection/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-projection/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/ajs-to-a-projection/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-projection/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/ajs-to-a-projection/hero-detail.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-projection/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/ajs-to-a-projection/hero-detail.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-projection/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/ajs-to-a-projection/main.controller.ts b/public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-projection/main.controller.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/ajs-to-a-projection/main.controller.ts rename to public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-projection/main.controller.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/ajs-to-a-providers/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-providers/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/ajs-to-a-providers/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-providers/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/ajs-to-a-providers/hero-detail.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-providers/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/ajs-to-a-providers/hero-detail.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-providers/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/ajs-to-a-providers/heroes.service.ts b/public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-providers/heroes.service.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/ajs-to-a-providers/heroes.service.ts rename to public/docs/_examples/upgrade-module/ts/src/app/ajs-to-a-providers/heroes.service.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/downgrade-io/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/downgrade-io/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/downgrade-io/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/downgrade-io/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/downgrade-io/hero-detail.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/downgrade-io/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/downgrade-io/hero-detail.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/downgrade-io/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/downgrade-io/main.controller.ts b/public/docs/_examples/upgrade-module/ts/src/app/downgrade-io/main.controller.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/downgrade-io/main.controller.ts rename to public/docs/_examples/upgrade-module/ts/src/app/downgrade-io/main.controller.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/downgrade-static/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/downgrade-static/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/downgrade-static/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/downgrade-static/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/downgrade-static/hero-detail.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/downgrade-static/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/downgrade-static/hero-detail.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/downgrade-static/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/hero-detail.directive.ts b/public/docs/_examples/upgrade-module/ts/src/app/hero-detail.directive.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/hero-detail.directive.ts rename to public/docs/_examples/upgrade-module/ts/src/app/hero-detail.directive.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/hero.ts b/public/docs/_examples/upgrade-module/ts/src/app/hero.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/hero.ts rename to public/docs/_examples/upgrade-module/ts/src/app/hero.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/upgrade-io/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/upgrade-io/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/upgrade-io/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/upgrade-io/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/upgrade-io/container.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/upgrade-io/container.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/upgrade-io/container.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/upgrade-io/container.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/upgrade-io/hero-detail.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/upgrade-io/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/upgrade-io/hero-detail.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/upgrade-io/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/upgrade-static/app.module.ts b/public/docs/_examples/upgrade-module/ts/src/app/upgrade-static/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/upgrade-static/app.module.ts rename to public/docs/_examples/upgrade-module/ts/src/app/upgrade-static/app.module.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/upgrade-static/container.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/upgrade-static/container.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/upgrade-static/container.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/upgrade-static/container.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/app/upgrade-static/hero-detail.component.ts b/public/docs/_examples/upgrade-module/ts/src/app/upgrade-static/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade-module/ts/app/upgrade-static/hero-detail.component.ts rename to public/docs/_examples/upgrade-module/ts/src/app/upgrade-static/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade-module/ts/index-a-to-ajs-providers.html b/public/docs/_examples/upgrade-module/ts/src/index-a-to-ajs-providers.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-a-to-ajs-providers.html rename to public/docs/_examples/upgrade-module/ts/src/index-a-to-ajs-providers.html diff --git a/public/docs/_examples/upgrade-module/ts/index-a-to-ajs-transclusion.html b/public/docs/_examples/upgrade-module/ts/src/index-a-to-ajs-transclusion.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-a-to-ajs-transclusion.html rename to public/docs/_examples/upgrade-module/ts/src/index-a-to-ajs-transclusion.html diff --git a/public/docs/_examples/upgrade-module/ts/index-ajs-a-hybrid-bootstrap.html b/public/docs/_examples/upgrade-module/ts/src/index-ajs-a-hybrid-bootstrap.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-ajs-a-hybrid-bootstrap.html rename to public/docs/_examples/upgrade-module/ts/src/index-ajs-a-hybrid-bootstrap.html diff --git a/public/docs/_examples/upgrade-module/ts/index-ajs-to-a-projection.html b/public/docs/_examples/upgrade-module/ts/src/index-ajs-to-a-projection.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-ajs-to-a-projection.html rename to public/docs/_examples/upgrade-module/ts/src/index-ajs-to-a-projection.html diff --git a/public/docs/_examples/upgrade-module/ts/index-ajs-to-a-providers.html b/public/docs/_examples/upgrade-module/ts/src/index-ajs-to-a-providers.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-ajs-to-a-providers.html rename to public/docs/_examples/upgrade-module/ts/src/index-ajs-to-a-providers.html diff --git a/public/docs/_examples/upgrade-module/ts/index-bootstrap.html b/public/docs/_examples/upgrade-module/ts/src/index-bootstrap.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-bootstrap.html rename to public/docs/_examples/upgrade-module/ts/src/index-bootstrap.html diff --git a/public/docs/_examples/upgrade-module/ts/index-downgrade-io.html b/public/docs/_examples/upgrade-module/ts/src/index-downgrade-io.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-downgrade-io.html rename to public/docs/_examples/upgrade-module/ts/src/index-downgrade-io.html diff --git a/public/docs/_examples/upgrade-module/ts/index-downgrade-static.html b/public/docs/_examples/upgrade-module/ts/src/index-downgrade-static.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-downgrade-static.html rename to public/docs/_examples/upgrade-module/ts/src/index-downgrade-static.html diff --git a/public/docs/_examples/upgrade-module/ts/index-ng-app.html b/public/docs/_examples/upgrade-module/ts/src/index-ng-app.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-ng-app.html rename to public/docs/_examples/upgrade-module/ts/src/index-ng-app.html diff --git a/public/docs/_examples/upgrade-module/ts/index-upgrade-io.html b/public/docs/_examples/upgrade-module/ts/src/index-upgrade-io.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-upgrade-io.html rename to public/docs/_examples/upgrade-module/ts/src/index-upgrade-io.html diff --git a/public/docs/_examples/upgrade-module/ts/index-upgrade-static.html b/public/docs/_examples/upgrade-module/ts/src/index-upgrade-static.html similarity index 100% rename from public/docs/_examples/upgrade-module/ts/index-upgrade-static.html rename to public/docs/_examples/upgrade-module/ts/src/index-upgrade-static.html diff --git a/public/docs/_examples/upgrade-phonecat-1-typescript/ts/example-config.json b/public/docs/_examples/upgrade-phonecat-1-typescript/ts/example-config.json index e69de29bb2..a8781b9a31 100644 --- a/public/docs/_examples/upgrade-phonecat-1-typescript/ts/example-config.json +++ b/public/docs/_examples/upgrade-phonecat-1-typescript/ts/example-config.json @@ -0,0 +1,4 @@ +{ + "build": "build:upgrade", + "run": "serve:upgrade" +} diff --git a/public/docs/_examples/_boilerplate/tsconfig.json b/public/docs/_examples/upgrade-phonecat-1-typescript/ts/tsconfig.json similarity index 100% rename from public/docs/_examples/_boilerplate/tsconfig.json rename to public/docs/_examples/upgrade-phonecat-1-typescript/ts/tsconfig.json diff --git a/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/example-config.json b/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/example-config.json index 6af3884d8d..401c14f835 100644 --- a/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/example-config.json +++ b/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/example-config.json @@ -1,3 +1,5 @@ { + "build": "build:upgrade", + "run": "serve:upgrade", "unittesting": true } diff --git a/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/tsconfig.json b/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/tsconfig.json new file mode 100644 index 0000000000..f267800f14 --- /dev/null +++ b/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "lib": [ "es2015", "dom" ], + "noImplicitAny": true, + "suppressImplicitAnyIndexErrors": true, + "typeRoots": [ + "../../node_modules/@types/" + ] + }, + "compileOnSave": true, + "exclude": [ + "node_modules/*", + "**/*-aot.ts" + ] +} diff --git a/public/docs/_examples/upgrade-phonecat-3-final/ts/example-config.json b/public/docs/_examples/upgrade-phonecat-3-final/ts/example-config.json index 6af3884d8d..401c14f835 100644 --- a/public/docs/_examples/upgrade-phonecat-3-final/ts/example-config.json +++ b/public/docs/_examples/upgrade-phonecat-3-final/ts/example-config.json @@ -1,3 +1,5 @@ { + "build": "build:upgrade", + "run": "serve:upgrade", "unittesting": true } diff --git a/public/docs/_examples/upgrade-phonecat-3-final/ts/tsconfig.json b/public/docs/_examples/upgrade-phonecat-3-final/ts/tsconfig.json new file mode 100644 index 0000000000..f267800f14 --- /dev/null +++ b/public/docs/_examples/upgrade-phonecat-3-final/ts/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "lib": [ "es2015", "dom" ], + "noImplicitAny": true, + "suppressImplicitAnyIndexErrors": true, + "typeRoots": [ + "../../node_modules/@types/" + ] + }, + "compileOnSave": true, + "exclude": [ + "node_modules/*", + "**/*-aot.ts" + ] +} diff --git a/public/docs/_examples/user-input/ts/app/main.ts b/public/docs/_examples/user-input/ts/app/main.ts deleted file mode 100644 index 6af7a5b2ae..0000000000 --- a/public/docs/_examples/user-input/ts/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/user-input/ts/plnkr.json b/public/docs/_examples/user-input/ts/plnkr.json index 4c260fcf9a..dd8f063d37 100644 --- a/public/docs/_examples/user-input/ts/plnkr.json +++ b/public/docs/_examples/user-input/ts/plnkr.json @@ -1,8 +1,9 @@ { "description": "User Input", + "basePath": "src/", "files": [ "!**/*.d.ts", "!**/*.js" ], "tags": ["input"] -} \ No newline at end of file +} diff --git a/public/docs/_examples/user-input/ts/app/app.component.html b/public/docs/_examples/user-input/ts/src/app/app.component.html similarity index 100% rename from public/docs/_examples/user-input/ts/app/app.component.html rename to public/docs/_examples/user-input/ts/src/app/app.component.html diff --git a/public/docs/_examples/user-input/ts/app/app.component.ts b/public/docs/_examples/user-input/ts/src/app/app.component.ts similarity index 100% rename from public/docs/_examples/user-input/ts/app/app.component.ts rename to public/docs/_examples/user-input/ts/src/app/app.component.ts diff --git a/public/docs/_examples/user-input/ts/app/app.module.ts b/public/docs/_examples/user-input/ts/src/app/app.module.ts similarity index 100% rename from public/docs/_examples/user-input/ts/app/app.module.ts rename to public/docs/_examples/user-input/ts/src/app/app.module.ts diff --git a/public/docs/_examples/user-input/ts/app/click-me.component.ts b/public/docs/_examples/user-input/ts/src/app/click-me.component.ts similarity index 100% rename from public/docs/_examples/user-input/ts/app/click-me.component.ts rename to public/docs/_examples/user-input/ts/src/app/click-me.component.ts diff --git a/public/docs/_examples/user-input/ts/app/click-me2.component.ts b/public/docs/_examples/user-input/ts/src/app/click-me2.component.ts similarity index 100% rename from public/docs/_examples/user-input/ts/app/click-me2.component.ts rename to public/docs/_examples/user-input/ts/src/app/click-me2.component.ts diff --git a/public/docs/_examples/user-input/ts/app/keyup.components.ts b/public/docs/_examples/user-input/ts/src/app/keyup.components.ts similarity index 100% rename from public/docs/_examples/user-input/ts/app/keyup.components.ts rename to public/docs/_examples/user-input/ts/src/app/keyup.components.ts diff --git a/public/docs/_examples/user-input/ts/app/little-tour.component.ts b/public/docs/_examples/user-input/ts/src/app/little-tour.component.ts similarity index 100% rename from public/docs/_examples/user-input/ts/app/little-tour.component.ts rename to public/docs/_examples/user-input/ts/src/app/little-tour.component.ts diff --git a/public/docs/_examples/user-input/ts/app/loop-back.component.ts b/public/docs/_examples/user-input/ts/src/app/loop-back.component.ts similarity index 100% rename from public/docs/_examples/user-input/ts/app/loop-back.component.ts rename to public/docs/_examples/user-input/ts/src/app/loop-back.component.ts diff --git a/public/docs/_examples/user-input/ts/index.html b/public/docs/_examples/user-input/ts/src/index.html similarity index 89% rename from public/docs/_examples/user-input/ts/index.html rename to public/docs/_examples/user-input/ts/src/index.html index cec1f3fb3e..9728814107 100644 --- a/public/docs/_examples/user-input/ts/index.html +++ b/public/docs/_examples/user-input/ts/src/index.html @@ -16,7 +16,7 @@ diff --git a/public/docs/_examples/user-input/ts/src/main.ts b/public/docs/_examples/user-input/ts/src/main.ts new file mode 100644 index 0000000000..311c44b76d --- /dev/null +++ b/public/docs/_examples/user-input/ts/src/main.ts @@ -0,0 +1,5 @@ +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/public/docs/_examples/user-input/ts/user-input-styles.css b/public/docs/_examples/user-input/ts/src/user-input-styles.css similarity index 100% rename from public/docs/_examples/user-input/ts/user-input-styles.css rename to public/docs/_examples/user-input/ts/src/user-input-styles.css diff --git a/public/docs/_examples/webpack/ts/config/webpack.common.js b/public/docs/_examples/webpack/ts/config/webpack.common.js index 5f83bfdde5..49dd91e334 100644 --- a/public/docs/_examples/webpack/ts/config/webpack.common.js +++ b/public/docs/_examples/webpack/ts/config/webpack.common.js @@ -24,7 +24,10 @@ module.exports = { rules: [ { test: /\.ts$/, - loaders: ['awesome-typescript-loader', 'angular2-template-loader'] + loaders: [{ + loader: 'awesome-typescript-loader', + options: { configFileName: helpers.root('src', 'tsconfig.json') } + } , 'angular2-template-loader'] }, { test: /\.html$/, diff --git a/public/docs/_examples/webpack/ts/example-config.json b/public/docs/_examples/webpack/ts/example-config.json index 9e587f892f..e405d0c01a 100644 --- a/public/docs/_examples/webpack/ts/example-config.json +++ b/public/docs/_examples/webpack/ts/example-config.json @@ -1,4 +1,4 @@ { "build": "build:webpack", - "run": "http-server:cli" + "run": "serve:cli" } diff --git a/public/docs/_includes/_hover-card.jade b/public/docs/_includes/_hover-card.jade new file mode 100644 index 0000000000..a76f9948c2 --- /dev/null +++ b/public/docs/_includes/_hover-card.jade @@ -0,0 +1,12 @@ +- var hasIcon = icon ? 'has-icon' : '' +- var iconNumber = number ? number : '' +a(class="hover-card is-button #{hasIcon}" href="#{url}" md-button) + if icon + span(class="hover-card-icon #{icon}") #{iconNumber} + + h3 #{name} + + if cta + p #{cta} + else + p View #{name} Docs diff --git a/public/docs/_includes/styleguide/_code-examples.jade b/public/docs/_includes/styleguide/_code-examples.jade index 0586577c79..f2ecb0fc14 100644 --- a/public/docs/_includes/styleguide/_code-examples.jade +++ b/public/docs/_includes/styleguide/_code-examples.jade @@ -45,14 +45,14 @@ include ../../../_includes/_util-fns #### Example: code-example(format="linenums" language="js"). - +makeExample('styleguide/js/index.html', null, 'index.html') + +makeExample('styleguide/js/src/index.html', null, 'index.html') :marked - This will read the *_examples/styleguide/js/index.html* file and include it + This will read the *_examples/styleguide/js/src/index.html* file and include it with the heading 'index.html'. Note that the file will be properly escaped and color coded according to the extension on the file ( html in this case). - +makeExample('styleguide/js/index.html', null, 'index.html') + +makeExample('styleguide/js/src/index.html', null, 'index.html') :marked The second parameter with a value of 'null' will be described later in this document. @@ -69,12 +69,12 @@ include ../../../_includes/_util-fns #### Example: code-example(format="linenums" language="js"). - +makeTabs('styleguide/js/index.html, styleguide/js/spec.js', null, 'index.html,unit test') + +makeTabs('styleguide/js/src/index.html, styleguide/js/spec.js', null, 'index.html,unit test') :marked This will create two tabs, each with its own title and appropriately color coded. - +makeTabs('styleguide/js/index.html, styleguide/js/spec.js', null, 'index.html,unit test') + +makeTabs('styleguide/js/src/index.html, styleguide/js/spec.js', null, 'index.html,unit test') :marked @@ -182,13 +182,13 @@ include ../../../_includes/_util-fns #### Example code-example(format="linenums" language="js"). - +makeExample('styleguide/js/app.js', 'class-w-annotations', "Extracted region") + +makeExample('styleguide/js/src/app.js', 'class-w-annotations', "Extracted region") :marked is a request to include just the `class-w-annotations` region from the `app.js` file in the `_examples/styleguide` folder and results in the following: - +makeExample('styleguide/js/app.js', 'class-w-annotations', "Extracted region") + +makeExample('styleguide/js/src/app.js', 'class-w-annotations', "Extracted region") :marked @@ -208,7 +208,7 @@ include ../../../_includes/_util-fns #### Example code-example(format="linenums" language="js" escape="none"). - +makeExample('styleguide/js/index.html', null, 'index.html', {pnk: /script (src=.*&quot;)/g}) + +makeExample('styleguide/js/src/index.html', null, 'index.html', {pnk: /script (src=.*&quot;)/g}) :marked Which will mark all of the quoted contents of each `script` tag within the index.html file in pink. @@ -217,20 +217,20 @@ include ../../../_includes/_util-fns Note that expression replacement occurs AFTER the fragment has been included and html escaped. This means that your regular expression must use escaped html text; i.e. the '&quot' in the regex above. - +makeExample('styleguide/js/index.html', null, 'index.html', {pnk: /script (src=.*")/g}) + +makeExample('styleguide/js/src/index.html', null, 'src/index.html', {pnk: /script (src=.*")/g}) :marked A more complicated example might be: code-example(format="linenums" language="js"). - var stylePattern = { pnk: /script (src=.*&quot;)/g, otl: /(\S*my-app.*$)/m }; - +makeExample('styleguide/js/index.html', null, 'index.html', stylePattern ) + +makeExample('styleguide/js/src/index.html', null, 'index.html', stylePattern ) :marked Which applies multiple styles and uses an intermediate javascript object as opposed to a literal. - var stylePattern = { pnk: /script (src=.*")/g, otl: /(\S*my-app.*$)/m }; - +makeExample('styleguide/js/index.html', null, 'index.html', stylePattern ) + +makeExample('styleguide/js/src/index.html', null, 'index.html', stylePattern ) :marked `makeTabs` support for `stylePatterns` is slightly different from the `makeExample` mixin in that you can also @@ -239,10 +239,10 @@ include ../../../_includes/_util-fns code-example(format="linenums" language="js"). -var stylePatterns = [{ pnk: /script (src=.*&quot;)/g }, {pnk: /(result)/ }]; - +makeTabs('styleguide/js/index.html, styleguide/js/spec.js', null, 'index.html,unit test', stylePatterns) + +makeTabs('styleguide/js/src/index.html, styleguide/js/spec.js', null, 'index.html,unit test', stylePatterns) -var stylePatterns = [{ pnk: /script (src=.*")/g }, {pnk: /(result)/ }]; - +makeTabs('styleguide/js/index.html, styleguide/js/spec.js', null, 'index.html,unit test', stylePatterns) + +makeTabs('styleguide/js/src/index.html, styleguide/js/spec.js', null, 'index.html,unit test', stylePatterns) :marked @@ -393,20 +393,20 @@ include ../../../_includes/_util-fns #### Example code-example(). - +makeExample('styleguide/js/app.js', "class-w-annotations")(format="linenums:15") + +makeExample('styleguide/js/src/app.js', "class-w-annotations")(format="linenums:15") :marked Starts the numbering of the example at line 15. - +makeExample('styleguide/js/app.js', "class-w-annotations")(format="linenums:15") + +makeExample('styleguide/js/src/app.js', "class-w-annotations")(format="linenums:15") :marked Or to suppress line numbering completely you can use code-example(). - +makeExample('styleguide/js/app.js', 'class-w-annotations')(format=".") + +makeExample('styleguide/js/src/app.js', 'class-w-annotations')(format=".") - +makeExample('styleguide/js/app.js', 'class-w-annotations')(format=".") + +makeExample('styleguide/js/src/app.js', 'class-w-annotations')(format=".") :marked diff --git a/public/docs/js/latest/guide/forms.jade b/public/docs/js/latest/guide/forms.jade index 2e3a65601b..3f897dfcf5 100644 --- a/public/docs/js/latest/guide/forms.jade +++ b/public/docs/js/latest/guide/forms.jade @@ -38,7 +38,7 @@ include ../_util-fns We start by showing how to bootstrap the application and add the necessary dependencies to use forms. During bootstrap we have to register the new forms module by calling `provideForms()` and pass the result to the provider array. -+makeExample('forms/js/app/main.js','','app/main.js') ++makeExample('forms/js/src/main.js','','src/main.js') :marked The old forms API is going through a deprecation phase. During this transition Angular is supporting both form modules. @@ -114,7 +114,7 @@ figure.image-display Create a new file in the app folder called `hero.js` and give it the following constructor: -+makeExample('forms/js/app/hero.js', null, 'app/hero.js') ++makeExample('forms/js/src/app/hero.js', null, 'src/app/hero.js') :marked It's an anemic model with few requirements and no behavior. Perfect for our demo. @@ -129,7 +129,7 @@ code-example(format=""). :marked We update the `` of the `index.html` to include this javascript file. -+makeExample('forms/js/index.html', 'scripts-hero', 'index.html (excerpt)')(format=".") ++makeExample('forms/js/src/index.html', 'scripts-hero', 'src/index.html (excerpt)')(format=".") .l-main-section :marked @@ -141,7 +141,7 @@ code-example(format=""). Create a new file called `hero-form.component.js` and give it the following definition: -+makeExample('forms/js/app/hero-form.component.js', 'first', 'app/hero-form.component.js') ++makeExample('forms/js/src/app/hero-form.component.js', 'first', 'src/app/hero-form.component.js') :marked There’s nothing special about this component, nothing form-specific, nothing to distinguish it from any component we've written before. @@ -177,7 +177,7 @@ code-example(format=""). :marked Again we update the `` of the `index.html` to include the new javascript file. -+makeExample('forms/js/index.html', 'scripts-hero-form', 'index.html (excerpt)')(format=".") ++makeExample('forms/js/src/index.html', 'scripts-hero-form', 'src/index.html (excerpt)')(format=".") .l-main-section :marked @@ -186,7 +186,7 @@ code-example(format=""). `app.component.js` is the application's root component. It will host our new `HeroFormComponent`. Replace the contents of the "QuickStart" version with the following: -+makeExample('forms/js/app/app.component.js', null, 'app/app.component.js') ++makeExample('forms/js/src/app/app.component.js', null, 'src/app/app.component.js') :marked .l-sub-section @@ -204,7 +204,7 @@ code-example(format=""). Create a new template file called `hero-form.component.html` and give it the following definition: -+makeExample('forms/js/app/hero-form.component.html', 'start', 'app/hero-form.component.html') ++makeExample('forms/js/src/app/hero-form.component.html', 'start', 'src/app/hero-form.component.html') :marked That is plain old HTML 5. We're presenting two of the `Hero` fields, `name` and `alterEgo`, and @@ -231,7 +231,7 @@ code-example(format=""). :marked Let's add the stylesheet. Open index.html and add the following link to the <head>. -+makeExample('forms/js/index.html', 'bootstrap')(format=".") ++makeExample('forms/js/src/index.html', 'bootstrap')(format=".") :marked .l-main-section @@ -245,7 +245,7 @@ code-example(format=""). a technique we might have seen before in the [Displaying Data](./displaying-data.html) chapter. Add the following HTML *immediately below* the *Alter Ego* group. -+makeExample('forms/js/app/hero-form.component.html', 'powers', 'app/hero-form.component.html (excerpt)')(format=".") ++makeExample('forms/js/src/app/hero-form.component.html', 'powers', 'src/app/hero-form.component.html (excerpt)')(format=".") :marked We are repeating the `` tag for each power in the list of Powers. @@ -274,7 +274,7 @@ figure.image-display Find the `` tag for the "Name" and update it like this -+makeExample('forms/js/app/hero-form.component.html', 'ngModel-1','app/hero-form.component.html (excerpt)')(format=".") ++makeExample('forms/js/src/app/hero-form.component.html', 'ngModel-1','src/app/hero-form.component.html (excerpt)')(format=".") .l-sub-section :marked @@ -305,7 +305,7 @@ figure.image-display After revision the core of our form should have three `[(ngModel)]` bindings that look much like this: -+makeExample('forms/js/app/hero-form.component.html', 'ngModel-2', 'app/hero-form.component.html (excerpt)') ++makeExample('forms/js/src/app/hero-form.component.html', 'ngModel-2', 'src/app/hero-form.component.html (excerpt)') :marked If we ran the app right now and changed every Hero model property, the form might display like this: @@ -337,7 +337,7 @@ figure.image-display In fact, we can break the `NgModel` binding into its two separate modes as we do in this re-write of the "Name" `` binding: - +makeExample('forms/js/app/hero-form.component.html', 'ngModel-3','app/hero-form.component.html (excerpt)')(format=".") + +makeExample('forms/js/src/app/hero-form.component.html', 'ngModel-3','src/app/hero-form.component.html (excerpt)')(format=".") :marked
The Property Binding should feel familiar. The Event Binding might seem strange. @@ -375,7 +375,7 @@ figure.image-display We'll explore those effects soon. Right now let's make sure we have `ngModel` and the corresponding name attribute on all three form controls, starting with the *Name* input box. -+makeExample('forms/js/app/hero-form.component.html', 'ngModelName-1', 'app/hero-form.component.html (excerpt)')(format=".") ++makeExample('forms/js/src/app/hero-form.component.html', 'ngModelName-1', 'src/app/hero-form.component.html (excerpt)')(format=".") :marked We set the `name` attribute to "name" which makes sense for our app. Any unique value will do. @@ -412,7 +412,7 @@ table Let's add a temporary [local template variable](./template-syntax.html#local-vars) named **spy** to the "Name" `` tag and use the spy to display those classes. -+makeExample('forms/js/app/hero-form.component.html', 'ngModelName-2','app/hero-form.component.html (excerpt)')(format=".") ++makeExample('forms/js/src/app/hero-form.component.html', 'ngModelName-2','src/app/hero-form.component.html (excerpt)')(format=".") :marked Now run the app and focus on the *Name* input box. @@ -444,12 +444,12 @@ figure.image-display We achieve this effect by adding two styles to a new `forms.css` file that we add to our project as a sibling to `index.html`. -+makeExample('forms/js/forms.css',null,'forms.css')(format=".") ++makeExample('forms/js/src/forms.css',null,'src/forms.css')(format=".") :marked These styles select for the two Angular validity classes and the HTML 5 "required" attribute. We update the `` of the `index.html` to include this style sheet. -+makeExample('forms/js/index.html', 'styles', 'index.html (excerpt)')(format=".") ++makeExample('forms/js/src/index.html', 'styles', 'src/index.html (excerpt)')(format=".") :marked ## Show and Hide Validation Error messages @@ -470,9 +470,9 @@ figure.image-display Here's how we do it for the *name* input box: -var stylePattern = { otl: /(#name="form")|(.*div.*$)|(Name is required)/gm }; -+makeExample('forms/js/app/hero-form.component.html', ++makeExample('forms/js/src/app/hero-form.component.html', 'name-with-error-msg', - 'app/hero-form.component.html (excerpt)', + 'src/app/hero-form.component.html (excerpt)', stylePattern) :marked We need a template reference variable to access the input box's Angular control from within the template. @@ -520,7 +520,7 @@ figure.image-display A "form submit" is useless at the moment. To make it useful, we'll update the `
` tag with another Angular directive, `NgSubmit`, and bind it to the `HeroFormComponent.submit()` method with an event binding -+makeExample('forms/js/app/hero-form.component.html', 'ngSubmit')(format=".") ++makeExample('forms/js/src/app/hero-form.component.html', 'ngSubmit')(format=".") :marked We slipped in something extra there at the end! We defined a @@ -531,7 +531,7 @@ figure.image-display Later in the template we bind the button's `disabled` property to the form's over-all validity via the `heroForm` variable. Here's that bit of markup: -+makeExample('forms/js/app/hero-form.component.html', 'submit-button') ++makeExample('forms/js/src/app/hero-form.component.html', 'submit-button') :marked Re-run the application. The form opens in a valid state and the button is enabled. @@ -564,14 +564,14 @@ figure.image-display Start by wrapping the form in a `
` and bind its `hidden` property to the `HeroFormComponent.submitted` property. -+makeExample('forms/js/app/hero-form.component.html', 'edit-div', 'app/hero-form.component.html (excerpt)')(format=".") ++makeExample('forms/js/src/app/hero-form.component.html', 'edit-div', 'src/app/hero-form.component.html (excerpt)')(format=".") :marked The main form is visible from the start because the the `submitted` property is false until we submit the form, as this fragment from the `HeroFormComponent` reminds us: -+makeExample('forms/js/app/hero-form.component.js', 'submitted')(format=".") ++makeExample('forms/js/src/app/hero-form.component.js', 'submitted')(format=".") :marked When we click the Submit button, the `submitted` flag becomes true and the form disappears @@ -579,7 +579,7 @@ figure.image-display Now we need to show something else while the form is in the submitted state. Add the following block of HTML below the `
` wrapper we just wrote: -+makeExample('forms/js/app/hero-form.component.html', 'submitted', 'app/hero-form.component.html (excerpt)') ++makeExample('forms/js/src/app/hero-form.component.html', 'submitted', 'src/app/hero-form.component.html (excerpt)') :marked There's our hero again, displayed read-only with interpolation bindings. @@ -611,35 +611,38 @@ figure.image-display .filetree .file angular-forms .children - .file app - .children - .file app.component.js - .file hero.js - .file hero-form.component.html - .file hero-form.component.js - .file main.ts .file node_modules ... - .file index.html + .file src + .children + .file app + .children + .file app.component.js + .file hero.js + .file hero-form.component.html + .file hero-form.component.js + .file main.ts + .file forms.css + .file index.html + .file tsconfig.json .file package.json - .file tsconfig.json :marked Here’s the final version of the source: +makeTabs( - `forms/js/app/hero-form.component.js, - forms/js/app/hero-form.component.html, - forms/js/app/hero.js, - forms/js/app/app.module.js, - forms/js/app/app.component.js, - forms/js/app/main.js, - forms/js/index.html, - forms/js/forms.css`, + `forms/js/src/app/hero-form.component.js, + forms/js/src/app/hero-form.component.html, + forms/js/src/app/hero.js, + forms/js/src/app/app.module.js, + forms/js/src/app/app.component.js, + forms/js/src/main.js, + forms/js/src/index.html, + forms/js/src/forms.css`, 'final, final,,,,,', - `hero-form.component.js, - hero-form.component.html, - hero.js, - app.module.js, - app.component.js, + `app/hero-form.component.js, + app/hero-form.component.html, + app/hero.js, + app/app.module.js, + app/app.component.js, main.js, index.html, forms.css`) diff --git a/public/docs/js/latest/quickstart.jade b/public/docs/js/latest/quickstart.jade index 88f159ba45..0011553aa6 100644 --- a/public/docs/js/latest/quickstart.jade +++ b/public/docs/js/latest/quickstart.jade @@ -26,13 +26,15 @@ figure.image-display .filetree .file angular-quickstart .children - .file app + .file src .children - .file app.component.js - .file app.module.js + .file app + .children + .file app.component.js + .file app.module.js .file main.js - .file index.html - .file styles.css + .file index.html + .file styles.css :marked Functionally, it's an `index.html`, `styles.css` and three JavaScript files in an `app/` folder. We can handle that! @@ -109,7 +111,7 @@ code-example(format=""). ### Create an application source sub-folder - We like to keep our application code in a sub-folder off the root called `app/`. + We like to keep our application code in a sub-folder off the root called `src/app/`. Execute the following command in the console window. code-example(format=""). mkdir app @@ -117,12 +119,12 @@ code-example(format=""). :marked ### Add the component file Now add a file named **app.component.js** and paste the following lines: -+makeExample('quickstart/js/app/app.component.js', null, 'app/app.component.js')(format=".") ++makeExample('quickstart/js/src/app/app.component.js', null, 'src/app/app.component.js')(format=".") :marked We're creating a visual component named **`AppComponent`** by chaining the `Component` and `Class` methods that belong to the **global Angular core namespace, `ng.core`**. -+makeExample('quickstart/js/app/app.component.js', 'ng-namespace-funcs', 'app/app.component.js ' + ++makeExample('quickstart/js/src/app/app.component.js', 'ng-namespace-funcs', 'src/app/app.component.js ' + '(component schema)')(format=".") :marked @@ -146,7 +148,7 @@ code-example(format=""). We don't want to pollute the global namespace with anything else. So within each file we surround the code in an IIFE ("Immediately Invoked Function Expression"). -+makeExample('quickstart/js/app/app.component.js', 'iife', 'app/app.component.js (IIFE)')(format=".") ++makeExample('quickstart/js/src/app/app.component.js', 'iife', 'src/app/app.component.js (IIFE)')(format=".") :marked We pass the global `app` namespace object into the IIFE, @@ -155,7 +157,7 @@ code-example(format=""). Most application files *export* one thing by adding that thing to the `app` namespace. Our `app.component.js` file exports the `AppComponent`. -+makeExample('quickstart/js/app/app.component.js', 'export', 'app/app.component.js (export)')(format=".") ++makeExample('quickstart/js/src/app/app.component.js', 'export', 'src/app/app.component.js (export)')(format=".") :marked A more sophisticated application would have child components that descended from @@ -169,7 +171,7 @@ code-example(format=""). provided by another module, we get it from the `app` object. When another module needs to refer to `AppComponent`, it gets it from the `app.AppComponent` like this: -+makeExample('quickstart/js/app/app.module.js', 'import', 'app/app.module.js (import)')(format=".") ++makeExample('quickstart/js/src/app/app.module.js', 'import', 'src/app/app.module.js (import)')(format=".") :marked Angular is also modular. It is a collection of library modules. @@ -186,7 +188,7 @@ code-example(format=""). Our `AppComponent` class has nothing but an empty constructor because we don't need it to do anything in this QuickStart. -+makeExample('quickstart/js/app/app.component.js', 'class','app.component.js (class)')(format=".") ++makeExample('quickstart/js/src/app/app.component.js', 'class','app.component.js (class)')(format=".") :marked ### The Component definition object @@ -195,7 +197,7 @@ code-example(format=""). The configuration object passed to the `ng.core.Component()` method has two fields, a `selector` and a `template`. -+makeExample('quickstart/js/app/app.component.js', 'component','app.component.js (component)')(format=".") ++makeExample('quickstart/js/src/app/app.component.js', 'component','app.component.js (component)')(format=".") :marked The `selector` specifies a simple CSS selector for a host HTML element named `my-app`. @@ -217,9 +219,9 @@ code-example(format=""). Angular apps are composed of [Angular Modules](guide/ngmodule.html) that snuggly contain all our components and everything else we need for our app. - Create the `app/app.module.js` file with the following content: + Create the `src/app/app.module.js` file with the following content: -+makeExample('quickstart/js/app/app.module.js', null, 'app/app.module.js') ++makeExample('quickstart/js/src/app/app.module.js', null, 'src/app/app.module.js') .l-sub-section :marked @@ -228,8 +230,8 @@ code-example(format=""). :marked ### Bootstrap it! - Add a new file , `main.js`, to the `app/` folder as follows: -+makeExample('quickstart/js/app/main.js', null, 'app/main.js')(format=".") + Add a new file , `main.js`, to the `src/app/` folder as follows: ++makeExample('quickstart/js/src/main.js', null, 'src/main.js')(format=".") :marked We need two things to launch the application: 1. Angular's `platformBrowserDynamic().bootstrapModule` function @@ -253,14 +255,14 @@ code-example(format=""). Angular displays our application in a specific location on our `index.html`. It's time to create that file. - We won't put our `index.html` in the `app/` folder. + We won't put our `index.html` in the `src/app/` folder. We'll locate it **up one level, in the project root folder**. code-example(format=""). cd .. :marked Now create the`index.html` file and paste the following lines: -+makeExample('quickstart/js/index.html', null, 'index.html')(format=".") ++makeExample('quickstart/js/src/index.html', null, 'src/index.html')(format=".") :marked There are three noteworthy sections of HTML: @@ -283,7 +285,17 @@ code-example(format=""). Create a `styles.css` file in the *#{_indexHtmlDir}* folder and start styling, perhaps with the minimal styles shown below. For the full set of master styles used by the documentation samples, see [styles.css](https://github.com/angular/angular.io/blob/master/public/docs/_examples/_boilerplate/styles.css). -+makeExample('quickstart/js/styles.1.css', null, 'styles.css')(format=".") ++makeExample('quickstart/js/src/styles.1.css', null, 'src/styles.css')(format=".") + +:marked + ### Configure the server + We're going to use a static server called **lite-server** that loads `index.html` in a browser + and refreshes the browser when application files change. + + The static server will use the `bs-config.json` file as configuration. + This files tells the server that `src/` is the base directory to serve, and that any + requests to `node_modules/` should be routed to `node_modules/` in the root directory + instead of `src/node_modules/` .l-main-section :marked @@ -293,9 +305,8 @@ code-example(format=""). code-example(format=""). npm start :marked - That command runs a static server called **lite-server** that loads `index.html` in a browser - and refreshes the browser when application files change. - + That command runs **lite-server**. + In a few moments, a browser tab should open and display figure.image-display @@ -328,30 +339,36 @@ figure.image-display .file angular-quickstart .children .file node_modules - .file app + .file src .children - .file app.component.js - .file app.module.js + .file app + .children + .file app.component.js + .file app.module.js .file main.js - .file index.html + .file index.html + .file styles.css + .file bs-config.json .file package.json - .file styles.css :marked And here are the files: +makeTabs(` - quickstart/js/app/app.component.js, - quickstart/js/app/app.module.js, - quickstart/js/app/main.js, - quickstart/js/index.html, - quickstart/js/package.1.json, - quickstart/js/styles.1.css + quickstart/js/src/app/app.component.js, + quickstart/js/src/app/app.module.js, + quickstart/js/src/main.js, + quickstart/js/src/index.html, + quickstart/js/src/styles.1.css, + quickstart/js/bs-config.1.json, + quickstart/js/package.1.json `,null, - `app/app.component.js, - app/app.module.js, - app/main.js, - index.html, - package.json, - styles.css`) + `src/app/app.component.js, + src/app/app.module.js, + src/main.js, + src/index.html, + src/styles.css, + bs-config.json, + package.json + `) :marked .l-main-section @@ -391,7 +408,7 @@ figure.image-display :marked ### Appendix: Libraries We loaded the following scripts -+makeExample('quickstart/js/index.html', 'libraries', 'index.html')(format=".") ++makeExample('quickstart/js/src/index.html', 'libraries', 'src/index.html')(format=".") :marked We began with an Internet Explorer polyfill. IE requires a polyfill to run diff --git a/public/docs/ts/latest/cookbook/ajs-quick-reference.jade b/public/docs/ts/latest/cookbook/ajs-quick-reference.jade index 6f661afac8..b02844e4e7 100644 --- a/public/docs/ts/latest/cookbook/ajs-quick-reference.jade +++ b/public/docs/ts/latest/cookbook/ajs-quick-reference.jade @@ -52,7 +52,7 @@ table(width="100%") td :marked ### Bindings/interpolation - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.html', 'interpolation')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.html', 'interpolation')(format="." ) :marked In Angular, a template expression in curly braces still denotes one-way binding. This binds the value of the element to a property of the component. @@ -73,7 +73,7 @@ table(width="100%") td :marked ### Pipes - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'uppercase')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'uppercase')(format="." ) :marked In Angular you use similar syntax with the pipe (|) character to filter output, but now you call them **pipes**. Many (but not all) of the built-in filters from AngularJS are @@ -93,7 +93,7 @@ table(width="100%") td :marked ### Input variables - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'local')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'local')(format="." ) :marked Angular has true template input variables that are explicitly defined using the `let` keyword. @@ -129,9 +129,9 @@ table(width="100%") td :marked ### Bootstrapping - +makeExample('cb-ajs-quick-reference/ts/app/main.ts','','main.ts')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/main.ts','','main.ts')(format="." )
- +makeExample('cb-ajs-quick-reference/ts/app/app.module.1.ts','','app.module.ts')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.module.1.ts','','app.module.ts')(format="." ) :marked Angular doesn't have a bootstrap directive. @@ -160,7 +160,7 @@ table(width="100%") td :marked ### ngClass - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'ngClass')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'ngClass')(format="." ) :marked In Angular, the `ngClass` directive works similarly. It includes/excludes CSS classes based on an expression. @@ -191,7 +191,7 @@ table(width="100%") td :marked ### bind to the `click` event - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'event-binding')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'event-binding')(format="." ) :marked AngularJS event-based directives do not exist in Angular. Rather, define one-way binding from the template view to the component using **event binding**. @@ -223,7 +223,7 @@ table(width="100%") td :marked ### Component decorator - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.ts', 'component')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.ts', 'component')(format="." ) :marked In Angular, the template no longer specifies its associated controller. Rather, the component specifies its associated template as part of the component class decorator. @@ -260,7 +260,7 @@ table(width="100%") td :marked ### bind to the `href` property - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'href')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'href')(format="." ) :marked Angular, uses property binding; there is no built-in *href* directive. Place the element's `href` property in square brackets and set it to a quoted template expression. @@ -268,7 +268,7 @@ table(width="100%") For more information on property binding, see [Template Syntax](../guide/template-syntax.html#property-binding). In Angular, `href` is no longer used for routing. Routing uses `routerLink`, as shown in the third example. - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'router-link')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'router-link')(format="." ) :marked For more information on routing, see [Routing & Navigation](../guide/router.html#router-link). @@ -286,7 +286,7 @@ table(width="100%") td :marked ### *ngIf - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.html', 'ngIf')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.html', 'ngIf')(format="." ) :marked The `*ngIf` directive in Angular works the same as the `ng-if` directive in AngularJS. It removes or recreates a portion of the DOM based on an expression. @@ -306,7 +306,7 @@ table(width="100%") td :marked ### ngModel - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.html', 'ngModel')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.html', 'ngModel')(format="." ) :marked In Angular, **two-way binding** is denoted by `[()]`, descriptively referred to as a "banana in a box". This syntax is a shortcut for defining both property binding (from the component to the view) and event binding (from the view to the component), thereby providing two-way binding. @@ -326,7 +326,7 @@ table(width="100%") td :marked ### *ngFor - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.html', 'ngFor')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.html', 'ngFor')(format="." ) :marked The `*ngFor` directive in Angular is similar to the `ng-repeat` directive in AngularJS. It repeats the associated DOM element for each item in the specified collection. More accurately, it turns the defined element (`tr` in this example) and its contents into a template and @@ -354,7 +354,7 @@ table(width="100%") td :marked ### bind to the `hidden` property - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.html', 'hidden')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.html', 'hidden')(format="." ) :marked Angular, uses property binding; there is no built-in *show* directive. For hiding and showing elements, bind to the HTML `hidden` property. @@ -378,7 +378,7 @@ table(width="100%") td :marked ### bind to the `src` property - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'src')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'src')(format="." ) :marked Angular, uses property binding; there is no built-in *src* directive. Place the `src` property in square brackets and set it to a quoted template expression. @@ -400,7 +400,7 @@ table(width="100%") td :marked ### ngStyle - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'ngStyle')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'ngStyle')(format="." ) :marked In Angular, the `ngStyle` directive works similarly. It sets a CSS style on an HTML element based on an expression. @@ -439,7 +439,7 @@ table(width="100%") td :marked ### ngSwitch - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.html', 'ngSwitch')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.html', 'ngSwitch')(format="." ) :marked In Angular, the `ngSwitch` directive works similarly. It displays an element whose `*ngSwitchCase` matches the current `ngSwitch` expression value. @@ -481,7 +481,7 @@ table(width="100%") td :marked ### currency - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'currency')(format="." ) + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'currency')(format="." ) :marked The Angular `currency` pipe is similar although some of the parameters have changed. tr(style=top) @@ -495,7 +495,7 @@ table(width="100%") td :marked ### date - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'date')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'date')(format=".") :marked The Angular `date` pipe is similar. @@ -523,7 +523,7 @@ table(width="100%") td :marked ### json - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'json')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'json')(format=".") :marked The Angular `json` pipe does the same thing. tr(style=top) @@ -538,7 +538,7 @@ table(width="100%") td :marked ### slice - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'slice')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'slice')(format=".") :marked The `SlicePipe` does the same thing but the *order of the parameters is reversed*, in keeping with the JavaScript `Slice` method. @@ -555,7 +555,7 @@ table(width="100%") td :marked ### lowercase - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'lowercase')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'lowercase')(format=".") :marked The Angular `lowercase` pipe does the same thing. tr(style=top) @@ -569,7 +569,7 @@ table(width="100%") td :marked ### number - +makeExample('cb-ajs-quick-reference/ts/app/app.component.html', 'number')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/app.component.html', 'number')(format=".") :marked The Angular `number` pipe is similar. It provides more functionality when defining @@ -642,7 +642,7 @@ table(width="100%") td :marked ### Angular modules - +makeExample('cb-ajs-quick-reference/ts/app/app.module.1.ts')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/app.module.1.ts')(format=".") :marked Angular modules, defined with the `NgModule` decorator, serve the same purpose: - `imports`: specifies the list of other modules that this module depends upon @@ -668,7 +668,7 @@ table(width="100%") td :marked ### Component Decorator - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.ts', 'component')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.ts', 'component')(format=".") :marked Angular, adds a decorator to the component class to provide any required metadata. The Component decorator declares that the class is a component and provides metadata about @@ -689,7 +689,7 @@ table(width="100%") td :marked ### Component class - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.ts', 'class')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.ts', 'class')(format=".") :marked In Angular, you create a component class. @@ -713,7 +713,7 @@ table(width="100%") td :marked ### Dependency injection - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.ts', 'di')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.ts', 'di')(format=".") :marked In Angular, you pass in dependencies as arguments to the component class constructor. This example injects a `MovieService`. @@ -751,7 +751,7 @@ table(width="100%") td :marked ### Link tag - +makeExample('cb-ajs-quick-reference/ts/index.html', 'style')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/index.html', 'style')(format=".") :marked In Angular, you can continue to use the link tag to define the styles for your application in the `index.html` file. But now you can also encapsulate styles for your components. @@ -759,7 +759,7 @@ table(width="100%") ### StyleUrls In Angular, you can use the `styles` or `styleUrls` property of the `@Component` metadata to define a style sheet for a particular component. - +makeExample('cb-ajs-quick-reference/ts/app/movie-list.component.ts', 'style-url')(format=".") + +makeExample('cb-ajs-quick-reference/ts/src/app/movie-list.component.ts', 'style-url')(format=".") :marked This allows you to set appropriate styles for individual components that won’t leak into other parts of the application. diff --git a/public/docs/ts/latest/cookbook/aot-compiler.jade b/public/docs/ts/latest/cookbook/aot-compiler.jade index 2f811f2bcc..9a72c991f4 100644 --- a/public/docs/ts/latest/cookbook/aot-compiler.jade +++ b/public/docs/ts/latest/cookbook/aot-compiler.jade @@ -96,11 +96,11 @@ a#compile A few minor changes to the lone `app.component` lead to these two class and html files: +makeTabs( - `cb-aot-compiler/ts/app/app.component.html, - cb-aot-compiler/ts/app/app.component.ts`, + `cb-aot-compiler/ts/src/app/app.component.html, + cb-aot-compiler/ts/src/app/app.component.ts`, null, - `app/app.component.html, - app/app.component.ts` + `src/app/app.component.html, + src/app/app.component.ts` )(format='.') :marked @@ -114,7 +114,8 @@ code-example(language="none" class="code-shell"). `ngc` is a drop-in replacement for `tsc` and is configured much the same way. `ngc` requires its own `tsconfig.json` with AOT-oriented settings. - Copy the original `tsconfig.json` to a file called `tsconfig-aot.json`, then modify it to look as follows. + Copy the original `src/tsconfig.json` to a file called `tsconfig-aot.json` (on the project root), + then modify it to look as follows. +makeExample('cb-aot-compiler/ts/tsconfig-aot.json', null, 'tsconfig-aot.json')(format='.') @@ -142,7 +143,7 @@ code-example(language="none" class="code-shell"). JIT-compiled applications that use the SystemJS loader and _component-relative_ URLs *must set the* `@Component.moduleId` *property to* `module.id`. The `module` object is undefined when an AOT-compiled app runs. The app fails with a null reference error unless you assign a global `module` value in the `index.html` like this: -+makeExample('cb-aot-compiler/ts/index.html','moduleId')(format='.') ++makeExample('cb-aot-compiler/ts/src/index.html','moduleId')(format='.') .l-sub-section :marked Setting a global `module` is a temporary expedient. @@ -199,11 +200,11 @@ a#bootstrap Here is AOT bootstrap in `main.ts` next to the original JIT version: +makeTabs( - `cb-aot-compiler/ts/app/main.ts, - cb-aot-compiler/ts/app/main-jit.ts`, + `cb-aot-compiler/ts/src/main.ts, + cb-aot-compiler/ts/src/main-jit.ts`, null, - `app/main.ts, - app/main-jit.ts` + `src/main.ts, + src/main-jit.ts` ) :marked @@ -253,7 +254,7 @@ code-example(format='.'). +makeExample('cb-aot-compiler/ts/rollup-config.js', null, 'rollup-config.js')(format='.') :marked - It tells Rollup that the app entry point is `app/main.js` . + It tells Rollup that the app entry point is `src/app/main.js` . The `dest` attribute tells Rollup to create a bundle called `build.js` in the `dist` folder. It overrides the default `onwarn` method in order to skip annoying messages about the AOT compiler's use of the `this` keyword. @@ -310,7 +311,7 @@ a#load Remove the scripts that concern SystemJS. Instead, load the bundle file using a single `script` tag **_after_** the `` tag: -+makeExample('cb-aot-compiler/ts/index.html','bundle','index.html (load bundle)')(format='.') ++makeExample('cb-aot-compiler/ts/src/index.html','bundle','index.html (load bundle)')(format='.') a#serve .l-main-section @@ -331,17 +332,17 @@ a#source-code Here's the pertinent source code: +makeTabs( - `cb-aot-compiler/ts/app/app.component.html, - cb-aot-compiler/ts/app/app.component.ts, - cb-aot-compiler/ts/app/main.ts, - cb-aot-compiler/ts/index.html, + `cb-aot-compiler/ts/src/app/app.component.html, + cb-aot-compiler/ts/src/app/app.component.ts, + cb-aot-compiler/ts/src/main.ts, + cb-aot-compiler/ts/src/index.html, cb-aot-compiler/ts/tsconfig-aot.json, cb-aot-compiler/ts/rollup-config.js`, null, - `app/app.component.html, - app/app.component.ts, - app/main.ts, - index.html, + `src/app/app.component.html, + src/app/app.component.ts, + src/main.ts, + src/index.html, tsconfig-aot.json, rollup-config.js` ) @@ -372,10 +373,10 @@ a#run-jit * Make a copy of `index.html` and call it `index-jit.html`. * Delete the script at the bottom of `index-jit.html` that loads `bundle.js` * Restore the SystemJS scripts like this: -+makeExample('cb-aot-compiler/ts/index-jit.html','jit','index-jit.html (SystemJS scripts)')(format='.') ++makeExample('cb-aot-compiler/ts/src/index-jit.html','jit','src/index-jit.html (SystemJS scripts)')(format='.') :marked - Notice the slight change to the `system.import` which now specifies `app/main-jit`. + Notice the slight change to the `system.import` which now specifies `src/app/main-jit`. That's the JIT version of the bootstrap file that we preserved [above](#bootstrap) :marked @@ -415,16 +416,15 @@ a#toh ***index.html*** The JIT and AOT apps require their own `index.html` files because they setup and launch so differently. - **Put the AOT version in the `/aot` folder** because two `index.html` files can't be in the same folder. Here they are for comparison: +makeTabs( `toh-6/ts/aot/index.html, - toh-6/ts/index.html`, + toh-6/ts/src/index.html`, null, `aot/index.html (AOT), - index.html (JIT)` + src/index.html (JIT)` ) :marked @@ -441,11 +441,11 @@ a#toh are evident in these `main` files which can and should reside in the same folder: +makeTabs( - `toh-6/ts/app/main-aot.ts, - toh-6/ts/app/main.ts`, + `toh-6/ts/src/main-aot.ts, + toh-6/ts/src/main.ts`, null, - `app/main-aot.ts (AOT), - app/main.ts (JIT)` + `main-aot.ts (AOT), + main.ts (JIT)` ) :marked @@ -459,10 +459,10 @@ a#toh +makeTabs( `toh-6/ts/tsconfig-aot.json, - toh-6/ts/tsconfig.json`, + toh-6/ts/src/tsconfig.json`, null, `tsconfig-aot.json (AOT), - tsconfig.json (JIT)` + src/tsconfig.json (JIT)` ) .callout.is-helpful @@ -500,20 +500,18 @@ a#toh Compiling with AOT presupposes certain supporting files, most of them discussed above. +makeTabs( - `toh-6/ts/aot/index.html, - toh-6/ts/aot/bs-config.json, + `toh-6/ts/src/index.html, toh-6/ts/copy-dist-files.js, toh-6/ts/rollup-config.js, toh-6/ts/tsconfig-aot.json`, null, - `aot/index.html, - aot/bs-config.json, + `src/index.html, copy-dist-files.js, rollup-config.js, tsconfig-aot.json`) :marked Extend the `scripts` section of the `package.json` with these npm scripts: -+makeJson('cb-aot-compiler/ts/package.json', { paths: 'scripts.build:aot, scripts.lite:aot'}, "package.json (convenience scripts)") ++makeJson('cb-aot-compiler/ts/package.json', { paths: 'scripts.build:aot, scripts.serve:aot'}, "package.json (convenience scripts)") :marked Copy the AOT distribution files into the `/aot` folder with the node script: @@ -525,7 +523,7 @@ code-example(language="none" class="code-shell"). :marked Now AOT-compile the app and launch it with the `lite` server: code-example(language="none" class="code-shell"). - npm run build:aot && npm run lite:aot + npm run build:aot && npm run serve:aot :marked ### Inspect the Bundle diff --git a/public/docs/ts/latest/cookbook/component-communication.jade b/public/docs/ts/latest/cookbook/component-communication.jade index 7c4fbab0ed..ab87d707d9 100644 --- a/public/docs/ts/latest/cookbook/component-communication.jade +++ b/public/docs/ts/latest/cookbook/component-communication.jade @@ -40,7 +40,7 @@ include ../_util-fns `HeroChildComponent` has two ***input properties***, typically adorned with [@Input decorations](../guide/template-syntax.html#inputs-outputs). -+makeExample('cb-component-communication/ts/app/hero-child.component.ts') ++makeExample('cb-component-communication/ts/src/app/hero-child.component.ts') :marked The second `@Input` aliases the child component property name `masterName` as `'master'`. @@ -48,7 +48,7 @@ include ../_util-fns binding its `master` string property to the child's `master` alias and each iteration's `hero` instance to the child's `hero` property. -+makeExample('cb-component-communication/ts/app/hero-parent.component.ts') ++makeExample('cb-component-communication/ts/src/app/hero-parent.component.ts') :marked The running application displays three heroes: @@ -75,12 +75,12 @@ figure.image-display The setter of the `name` input property in the child `NameChildComponent` trims the whitespace from a name and replaces an empty value with default text. -+makeExample('cb-component-communication/ts/app/name-child.component.ts') ++makeExample('cb-component-communication/ts/src/app/name-child.component.ts') :marked Here's the `NameParentComponent` demonstrating name variations including a name with all spaces: -+makeExample('cb-component-communication/ts/app/name-parent.component.ts') ++makeExample('cb-component-communication/ts/src/app/name-parent.component.ts') figure.image-display img(src="/resources/images/cookbooks/component-communication/setter.png" alt="Parent-to-child-setter") @@ -109,12 +109,12 @@ figure.image-display :marked This `VersionChildComponent` detects changes to the `major` and `minor` input properties and composes a log message reporting these changes: -+makeExample('cb-component-communication/ts/app/version-child.component.ts') ++makeExample('cb-component-communication/ts/src/app/version-child.component.ts') :marked The `VersionParentComponent` supplies the `minor` and `major` values and binds buttons to methods that change them. -+makeExample('cb-component-communication/ts/app/version-parent.component.ts') ++makeExample('cb-component-communication/ts/src/app/version-parent.component.ts') :marked Here's the output of a button-pushing sequence: @@ -145,7 +145,7 @@ figure.image-display typically adorned with an [@Output decoration](../guide/template-syntax.html#inputs-outputs) as seen in this `VoterComponent`: -+makeExample('cb-component-communication/ts/app/voter.component.ts') ++makeExample('cb-component-communication/ts/src/app/voter.component.ts') :marked Clicking a button triggers emission of a `true` or `false` (the boolean *payload*). @@ -153,7 +153,7 @@ figure.image-display The parent `VoteTakerComponent` binds an event handler (`onVoted`) that responds to the child event payload (`$event`) and updates a counter. -+makeExample('cb-component-communication/ts/app/votetaker.component.ts') ++makeExample('cb-component-communication/ts/src/app/votetaker.component.ts') :marked The framework passes the event argument — represented by `$event` — to the handler method, @@ -186,11 +186,11 @@ figure.image-display We have a child `CountdownTimerComponent` that repeatedly counts down to zero and launches a rocket. It has `start` and `stop` methods that control the clock and it displays a countdown status message in its own template. -+makeExample('cb-component-communication/ts/app/countdown-timer.component.ts') ++makeExample('cb-component-communication/ts/src/app/countdown-timer.component.ts') :marked Let's see the `CountdownLocalVarParentComponent` that hosts the timer component. -+makeExample('cb-component-communication/ts/app/countdown-parent.component.ts', 'lv') ++makeExample('cb-component-communication/ts/src/app/countdown-parent.component.ts', 'lv') :marked The parent component cannot data bind to the child's `start` and `stop` methods nor to its `seconds` property. @@ -244,7 +244,7 @@ a(id="countdown-tests") solely for the purpose of demonstration. :marked Here is the parent, `CountdownViewChildParentComponent`: -+makeExample('cb-component-communication/ts/app/countdown-parent.component.ts', 'vc') ++makeExample('cb-component-communication/ts/src/app/countdown-parent.component.ts', 'vc') :marked It takes a bit more work to get the child view into the parent component *class*. @@ -289,18 +289,18 @@ a(id="countdown-tests") This `MissionService` connects the `MissionControlComponent` to multiple `AstronautComponent` children. -+makeExample('cb-component-communication/ts/app/mission.service.ts') ++makeExample('cb-component-communication/ts/src/app/mission.service.ts') :marked The `MissionControlComponent` both provides the instance of the service that it shares with its children (through the `providers` metadata array) and injects that instance into itself through its constructor: -+makeExample('cb-component-communication/ts/app/missioncontrol.component.ts') ++makeExample('cb-component-communication/ts/src/app/missioncontrol.component.ts') :marked The `AstronautComponent` also injects the service in its constructor. Each `AstronautComponent` is a child of the `MissionControlComponent` and therefore receives its parent's service instance: -+makeExample('cb-component-communication/ts/app/astronaut.component.ts') ++makeExample('cb-component-communication/ts/src/app/astronaut.component.ts') .l-sub-section :marked diff --git a/public/docs/ts/latest/cookbook/component-relative-paths.jade b/public/docs/ts/latest/cookbook/component-relative-paths.jade index 4a0f08bde9..df9845c853 100644 --- a/public/docs/ts/latest/cookbook/component-relative-paths.jade +++ b/public/docs/ts/latest/cookbook/component-relative-paths.jade @@ -7,7 +7,7 @@ include ../_util-fns We identify those files with a URL in the `templateUrl` and `styleUrls` properties of the `@Component` metadata as seen here: -+makeExample('cb-component-relative-paths/ts/app/some.component.ts','absolute-config')(format='.') ++makeExample('cb-component-relative-paths/ts/src/app/some.component.ts','absolute-config')(format='.') :marked By default, we *must* specify the full path back to the application root. We call this an ***absolute path*** because it is *absolute* with respect to the application root. @@ -62,11 +62,11 @@ include ../_util-fns Having adopted this file structure convention, we can specify locations of the template and style files relative to the component class file simply by setting the `moduleId` property of the `@Component` metadata like this -+makeExample('cb-component-relative-paths/ts/app/some.component.ts','module-id')(format='.') ++makeExample('cb-component-relative-paths/ts/src/app/some.component.ts','module-id')(format='.') :marked - We strip the `app/` base path from the `templateUrl` and `styleUrls` and replace it with `./`. + We strip the `src/app/` base path from the `templateUrl` and `styleUrls` and replace it with `./`. The result looks like this: -+makeExample('cb-component-relative-paths/ts/app/some.component.ts','relative-config')(format='.') ++makeExample('cb-component-relative-paths/ts/src/app/some.component.ts','relative-config')(format='.') .alert.is-helpful :marked @@ -80,12 +80,12 @@ include ../_util-fns and download the source code from there or simply read the pertinent source here. +makeTabs( - `cb-component-relative-paths/ts/app/some.component.ts, - cb-component-relative-paths/ts/app/some.component.html, - cb-component-relative-paths/ts/app/some.component.css, - cb-component-relative-paths/ts/app/app.component.ts`, + `cb-component-relative-paths/ts/src/app/some.component.ts, + cb-component-relative-paths/ts/src/app/some.component.html, + cb-component-relative-paths/ts/src/app/some.component.css, + cb-component-relative-paths/ts/src/app/app.component.ts`, null, - `app/some.component.ts, app/some.component.html, app/some.component.css, app/app.component.ts`) + `src/app/some.component.ts, src/app/some.component.html, src/app/some.component.css, src/app/app.component.ts`) a#why-default .l-main-section @@ -125,7 +125,7 @@ a#why-default That knowledge enables us to tell Angular where the *component* file is by setting the `moduleId`: -+makeExample('cb-component-relative-paths/ts/app/some.component.ts','module-id')(format='.') ++makeExample('cb-component-relative-paths/ts/src/app/some.component.ts','module-id')(format='.') a#webpack .l-main-section diff --git a/public/docs/ts/latest/cookbook/dependency-injection.jade b/public/docs/ts/latest/cookbook/dependency-injection.jade index cd4850dc64..fbbca40bd3 100644 --- a/public/docs/ts/latest/cookbook/dependency-injection.jade +++ b/public/docs/ts/latest/cookbook/dependency-injection.jade @@ -59,7 +59,7 @@ include ../_util-fns (the `LoggerService`, `UserContext`, and the `UserService`) in the `@Component` metadata `providers` array. -+makeExample('cb-dependency-injection/ts/app/app.component.ts','import-services','app/app.component.ts (excerpt)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/app.component.ts','import-services','src/app/app.component.ts (excerpt)')(format='.') :marked All of these services are implemented as classes. Service classes can act as their own providers which is why listing them in the `providers` array @@ -72,9 +72,9 @@ include ../_util-fns :marked Now that we've registered these services, Angular can inject them into the constructor of *any* component or service, *anywhere* in the application. -+makeExample('cb-dependency-injection/ts/app/hero-bios.component.ts','ctor','app/hero-bios.component.ts (component constructor injection)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-bios.component.ts','ctor','src/app/hero-bios.component.ts (component constructor injection)')(format='.') -+makeExample('cb-dependency-injection/ts/app/user-context.service.ts','ctor','app/user-context.service.ts (service constructor injection)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/user-context.service.ts','ctor','src/app/user-context.service.ts (service constructor injection)')(format='.') .l-main-section @@ -89,7 +89,7 @@ include ../_util-fns [location strategy](../guide/router.html#location-strategy) by listing its provider in the `providers` list of the `AppModule`. -+makeExample('cb-dependency-injection/ts/app/app.module.ts','providers','app/app.module.ts (providers)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/app.module.ts','providers','src/app/app.module.ts (providers)')(format='.') a(id="injectable") a(id="nested-dependencies") @@ -105,13 +105,13 @@ a(id="nested-dependencies") At each step, the consumer of dependencies simply declares what it requires in its constructor and the framework takes over. For example, we inject both the `LoggerService` and the `UserContext` in the `AppComponent`. -+makeExample('cb-dependency-injection/ts/app/app.component.ts','ctor','app/app.component.ts')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/app.component.ts','ctor','src/app/app.component.ts')(format='.') :marked The `UserContext` in turn has dependencies on both the `LoggerService` (again) and a `UserService` that gathers information about a particular user. -+makeExample('cb-dependency-injection/ts/app/user-context.service.ts','injectables','user-context.service.ts (injection)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/user-context.service.ts','injectables','user-context.service.ts (injection)')(format='.') :marked When Angular creates an`AppComponent`, the dependency injection framework creates an instance of the `LoggerService` and @@ -129,7 +129,7 @@ figure.image-display :marked ### *@Injectable()* Notice the `@Injectable()`decorator on the `UserContextService` class. -+makeExample('cb-dependency-injection/ts/app/user-context.service.ts','injectable','user-context.service.ts (@Injectable)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/user-context.service.ts','injectable','user-context.service.ts (@Injectable)')(format='.') :marked That decorator makes it possible for Angular to identify the types of its two dependencies, `LoggerService` and `UserService`. @@ -175,7 +175,7 @@ figure.image-display We can limit the scope of an injected service to a *branch* of the application hierarchy by providing that service *at the sub-root component for that branch*. Here we provide the `HeroService` to the `HeroesBaseComponent` by listing it in the `providers` array: -+makeExample('cb-dependency-injection/ts/app/sorted-heroes.component.ts','injection','app/sorted-heroes.component.ts (HeroesBaseComponent excerpt)') ++makeExample('cb-dependency-injection/ts/src/app/sorted-heroes.component.ts','injection','src/app/sorted-heroes.component.ts (HeroesBaseComponent excerpt)') :marked When Angular creates the `HeroesBaseComponent`, it also creates a new instance of `HeroService` that is visible only to the component and its children (if any). @@ -209,18 +209,18 @@ figure.image-display Imagine a `HeroBiosComponent` that presents three instances of the `HeroBioComponent`. -+makeExample('cb-dependency-injection/ts/app/hero-bios.component.ts','simple','ap/hero-bios.component.ts') ++makeExample('cb-dependency-injection/ts/src/app/hero-bios.component.ts','simple','ap/hero-bios.component.ts') :marked Each `HeroBioComponent` can edit a single hero's biography. A `HeroBioComponent` relies on a `HeroCacheService` to fetch, cache, and perform other persistence operations on that hero. -+makeExample('cb-dependency-injection/ts/app/hero-cache.service.ts','service','app/hero-cache.service.ts') ++makeExample('cb-dependency-injection/ts/src/app/hero-cache.service.ts','service','src/app/hero-cache.service.ts') :marked Clearly the three instances of the `HeroBioComponent` can't share the same `HeroCacheService`. They'd be competing with each other to determine which hero to cache. Each `HeroBioComponent` gets its *own* `HeroCacheService` instance by listing the `HeroCacheService` in its metadata `providers` array. -+makeExample('cb-dependency-injection/ts/app/hero-bio.component.ts','component','app/hero-bio.component.ts') ++makeExample('cb-dependency-injection/ts/src/app/hero-bio.component.ts','component','src/app/hero-bio.component.ts') :marked The parent `HeroBiosComponent` binds a value to the `heroId`. The `ngOnInit` pass that `id` to the service which fetches and caches the hero. @@ -258,25 +258,25 @@ a(id="qualify-dependency-lookup") ### Demonstration The `HeroBiosAndContactsComponent` is a revision of the `HeroBiosComponent` that we looked at [above](#hero-bios-component). -+makeExample('cb-dependency-injection/ts/app/hero-bios.component.ts','hero-bios-and-contacts','app/hero-bios.component.ts (HeroBiosAndContactsComponent)') ++makeExample('cb-dependency-injection/ts/src/app/hero-bios.component.ts','hero-bios-and-contacts','src/app/hero-bios.component.ts (HeroBiosAndContactsComponent)') :marked Focus on the template: -+makeExample('cb-dependency-injection/ts/app/hero-bios.component.ts','template')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-bios.component.ts','template')(format='.') :marked We've inserted a `` element between the `` tags. Angular *projects* (*transcludes*) the corresponding `HeroContactComponent` into the `HeroBioComponent` view, placing it in the `` slot of the `HeroBioComponent` template: -+makeExample('cb-dependency-injection/ts/app/hero-bio.component.ts','template','app/hero-bio.component.ts (template)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-bio.component.ts','template','src/app/hero-bio.component.ts (template)')(format='.') :marked It looks like this, with the hero's telephone number from `HeroContactComponent` projected above the hero description: figure.image-display img(src="/resources/images/cookbooks/dependency-injection/hero-bio-and-content.png" alt="bio and contact") :marked Here's the `HeroContactComponent` which demonstrates the qualifying decorators that we're talking about in this section: -+makeExample('cb-dependency-injection/ts/app/hero-contact.component.ts','component','app/hero-contact.component.ts') ++makeExample('cb-dependency-injection/ts/src/app/hero-contact.component.ts','component','src/app/hero-contact.component.ts') :marked Focus on the constructor parameters -+makeExample('cb-dependency-injection/ts/app/hero-contact.component.ts','ctor-params','app/hero-contact.component.ts')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-contact.component.ts','ctor-params','src/app/hero-contact.component.ts')(format='.') :marked The `@Host()` function decorating the `heroCache` property ensures that we get a reference to the cache service from the parent `HeroBioComponent`. @@ -318,7 +318,7 @@ figure.image-display To illustrate, we've written a simplified version of the `HighlightDirective` from the [Attribute Directives](../guide/attribute-directives.html) chapter. -+makeExample('cb-dependency-injection/ts/app/highlight.directive.ts','','app/highlight.directive.ts') ++makeExample('cb-dependency-injection/ts/src/app/highlight.directive.ts','','src/app/highlight.directive.ts') :marked The directive sets the background to a highlight color when the user mouses over the DOM element to which it is applied. @@ -329,7 +329,7 @@ figure.image-display The sample code applies the directive's `myHighlight` attribute to two `
` tags, first without a value (yielding the default color) and then with an assigned color value. -+makeExample('cb-dependency-injection/ts/app/app.component.html','highlight','app/app.component.html (highlight)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/app.component.html','highlight','src/app/app.component.html (highlight)')(format='.') :marked The following image shows the effect of mousing over the `` tag. figure.image-display @@ -351,7 +351,7 @@ figure.image-display Angular passes this token to the injector and assigns the result to the parameter. Here's a typical example: -+makeExample('cb-dependency-injection/ts/app/hero-bios.component.ts','ctor','app/hero-bios.component.ts (component constructor injection)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-bios.component.ts','ctor','src/app/hero-bios.component.ts (component constructor injection)')(format='.') :marked Angular asks the injector for the service associated with the `LoggerService` and and assigns the returned value to the `logger` parameter. @@ -372,13 +372,13 @@ figure.image-display Angular initializes the injectors it creates with some providers it cares about. We have to register our _own_ application providers manually, usually in the `providers` array of the `Component` or `Directive` metadata: -+makeExample('cb-dependency-injection/ts/app/app.component.ts','providers','app/app.component.ts (providers)') ++makeExample('cb-dependency-injection/ts/src/app/app.component.ts','providers','src/app/app.component.ts (providers)') :marked ### Defining providers The simple class provider is the most typical by far. We mention the class in the `providers` array and we're done. -+makeExample('cb-dependency-injection/ts/app/hero-bios.component.ts','class-provider','app/hero-bios.component.ts (class provider)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-bios.component.ts','class-provider','src/app/hero-bios.component.ts (class provider)')(format='.') :marked It's that simple because the most common injected service is an instance of a class. But not every dependency can be satisfied by creating a new instance of a class. @@ -390,7 +390,7 @@ figure.image-display img(src="/resources/images/cookbooks/dependency-injection/hero-of-month.png" alt="Hero of the month" width="300px") :marked It's visually simple: a few properties and the output of a logger. The code behind it gives us plenty to talk about. -+makeExample('cb-dependency-injection/ts/app/hero-of-the-month.component.ts','hero-of-the-month','hero-of-the-month.component.ts') ++makeExample('cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts','hero-of-the-month','hero-of-the-month.component.ts') .l-main-section a(id='provide') @@ -416,7 +416,7 @@ a(id='usevalue') The `HeroOfTheMonthComponent` example has two *value providers*. The first provides an instance of the `Hero` class; the second specifies a literal string resource: -+makeExample('cb-dependency-injection/ts/app/hero-of-the-month.component.ts','use-value')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts','use-value')(format='.') :marked The `Hero` provider token is a class which makes sense because the value is a `Hero` and the consumer of the injected hero would want the type information. @@ -428,7 +428,7 @@ a(id='usevalue') The value of a *value provider* must be defined *now*. We can't create the value later. Obviously the title string literal is immediately available. The `someHero` variable in this example was set earlier in the file: -+makeExample('cb-dependency-injection/ts/app/hero-of-the-month.component.ts','some-hero') ++makeExample('cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts','some-hero') :marked The other providers create their values *lazily* when they're needed for injection. @@ -444,7 +444,7 @@ a(id='useclass') or fake the behavior of the real class in a test case. We see two examples in the `HeroOfTheMonthComponent`: -+makeExample('cb-dependency-injection/ts/app/hero-of-the-month.component.ts','use-class')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts','use-class')(format='.') :marked The first provider is the *de-sugared*, expanded form of the most typical case in which the class to be created (`HeroService`) is also the provider's injection token. @@ -459,7 +459,7 @@ a(id='useclass') Components outside the tree continue to receive the original `LoggerService` instance. :marked The `DateLoggerService` inherits from `LoggerService`; it appends the current date/time to each message: -+makeExample('cb-dependency-injection/ts/app/date-logger.service.ts','date-logger-service','app/date-logger.service.ts')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/date-logger.service.ts','date-logger-service','src/app/date-logger.service.ts')(format='.') .l-main-section a(id='useexisting') @@ -469,14 +469,14 @@ a(id='useexisting') The `useExisting` provider maps one token to another. In effect, the first token is an ***alias*** for the service associated with second token, creating ***two ways to access the same service object***. -+makeExample('cb-dependency-injection/ts/app/hero-of-the-month.component.ts','use-existing') ++makeExample('cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts','use-existing') :marked Narrowing an API through an aliasing interface is _one_ important use case for this technique. We're aliasing for that very purpose here. Imagine that the `LoggerService` had a large API (it's actually only three methods and a property). We want to shrink that API surface to just the two members exposed by the `MinimalLogger` [*class-interface*](#class-interface): -+makeExample('cb-dependency-injection/ts/app/date-logger.service.ts','minimal-logger','app/date-logger.service.ts (MinimalLogger)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/date-logger.service.ts','minimal-logger','src/app/date-logger.service.ts (MinimalLogger)')(format='.') :marked The constructor's `logger` parameter is typed as `MinimalLogger` so only its two members are visible in TypeScript: figure.image-display @@ -495,7 +495,7 @@ a(id='usefactory') The `useFactory` provider creates a dependency object by calling a factory function as seen in this example. -+makeExample('cb-dependency-injection/ts/app/hero-of-the-month.component.ts','use-factory') ++makeExample('cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts','use-factory') :marked Use this technique to ***create a dependency object*** with a factory function whose inputs are some ***combination of injected services and local state***. @@ -510,7 +510,7 @@ a(id='usefactory') The `runnersUpFactory` itself isn't the provider factory function. The true provider factory function is the function that `runnersUpFactory` returns. -+makeExample('cb-dependency-injection/ts/app/runners-up.ts','factory-synopsis','runners-up.ts (excerpt)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/runners-up.ts','factory-synopsis','runners-up.ts (excerpt)')(format='.') :marked That returned function takes a winning `Hero` and a `HeroService` as arguments. @@ -545,17 +545,17 @@ a(id="tokens") ### class-interface In the previous *Hero of the Month* example, we used the `MinimalLogger` class as the token for a provider of a `LoggerService`. -+makeExample('cb-dependency-injection/ts/app/hero-of-the-month.component.ts','use-existing') ++makeExample('cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts','use-existing') :marked The `MinimalLogger` is an abstract class. -+makeExample('cb-dependency-injection/ts/app/date-logger.service.ts','minimal-logger')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/date-logger.service.ts','minimal-logger')(format='.') :marked We usually inherit from an abstract class. But `LoggerService` doesn't inherit from `MinimalLogger`. *No class* inherits from it. Instead, we use it like an interface. Look again at the declaration for `DateLoggerService` -+makeExample('cb-dependency-injection/ts/app/date-logger.service.ts','date-logger-service-signature')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/date-logger.service.ts','date-logger-service-signature')(format='.') :marked `DateLoggerService` inherits (extends) from `LoggerService`, not `MinimalLogger`. The `DateLoggerService` *implements* `MinimalLogger` as if `MinimalLogger` were an *interface*. @@ -583,7 +583,7 @@ a(id="tokens") The minimize memory cost, the class should have *no implementation*. The `MinimalLogger` transpiles to this unoptimized, pre-minified JavaScript: - +makeExample('cb-dependency-injection/ts/app/date-logger.service.ts','minimal-logger-transpiled')(format='.') + +makeExample('cb-dependency-injection/ts/src/app/date-logger.service.ts','minimal-logger-transpiled')(format='.') :marked It never grows larger no matter how many members we add *as long as they are typed but not implemented*. @@ -602,10 +602,10 @@ a(id='opaque-token') The `OpaqueToken` has these characteristics. We encountered them twice in the *Hero of the Month* example, in the *title* value provider and in the *runnersUp* factory provider. -+makeExample('cb-dependency-injection/ts/app/hero-of-the-month.component.ts','provide-opaque-token')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts','provide-opaque-token')(format='.') :marked We created the `TITLE` token like this: -+makeExample('cb-dependency-injection/ts/app/hero-of-the-month.component.ts','opaque-token')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/hero-of-the-month.component.ts','opaque-token')(format='.') a(id="di-inheritance") @@ -627,7 +627,7 @@ figure.image-display It demands its own instance of the `HeroService` to get heroes and displays them in the order they arrive from the database. -+makeExample('cb-dependency-injection/ts/app/sorted-heroes.component.ts','heroes-base','app/sorted-heroes.component.ts (HeroesBaseComponent)') ++makeExample('cb-dependency-injection/ts/src/app/sorted-heroes.component.ts','heroes-base','src/app/sorted-heroes.component.ts (HeroesBaseComponent)') .l-sub-section :marked We strongly prefer simple constructors. They should do little more than initialize variables. @@ -646,7 +646,7 @@ figure.image-display We must provide the `HeroService` again for *this* component, then pass it down to the base class inside the constructor. -+makeExample('cb-dependency-injection/ts/app/sorted-heroes.component.ts','sorted-heroes','app/sorted-heroes.component.ts (SortedHeroesComponent)') ++makeExample('cb-dependency-injection/ts/src/app/sorted-heroes.component.ts','sorted-heroes','src/app/sorted-heroes.component.ts (SortedHeroesComponent)') :marked Now take note of the `afterGetHeroes` method. Our first instinct was to create an `ngOnInit` method in `SortedHeroesComponent` and do the sorting there. @@ -687,11 +687,11 @@ a(id="find-parent") In the following example, the parent `AlexComponent` has several children including a `CathyComponent`: a(id='alex') -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','alex-1','parent-finder.component.ts (AlexComponent v.1)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','alex-1','parent-finder.component.ts (AlexComponent v.1)')(format='.') :marked *Cathy* reports whether or not she has access to *Alex* after injecting an `AlexComponent` into her constructor: -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','cathy','parent-finder.component.ts (CathyComponent)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','cathy','parent-finder.component.ts (CathyComponent)')(format='.') :marked We added the [@Optional](#optional) qualifier for safety but the @@ -722,10 +722,10 @@ a(id='alex') The sample's `CraigComponent` explores this question. [Looking back](#alex) we see that the `Alex` component *extends* (*inherits*) from a class named `Base`. -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','alex-class-signature','parent-finder.component.ts (Alex class signature)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','alex-class-signature','parent-finder.component.ts (Alex class signature)')(format='.') :marked The `CraigComponent` tries to inject `Base` into its `alex` constructor parameter and reports if it succeeded. -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','craig','parent-finder.component.ts (CraigComponent)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','craig','parent-finder.component.ts (CraigComponent)')(format='.') :marked Unfortunately, this does not work. The @@ -746,13 +746,13 @@ a(id='alex') that creates an *alternative* way to inject the same component instance and add that provider to the `providers` array of the `@Component` metadata for the `AlexComponent`: a(id="alex-providers") -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','alex-providers','parent-finder.component.ts (AlexComponent providers)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','alex-providers','parent-finder.component.ts (AlexComponent providers)')(format='.') :marked [Parent](#parent-token) is the provider's *class-interface* token. The [*forwardRef*](#forwardref) breaks the circular reference we just created by having the `AlexComponent` refer to itself. *Carol*, the third of *Alex*'s child components, injects the parent into its `parent` parameter, the same way we've done it before: -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','carol-class','parent-finder.component.ts (CarolComponent class)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','carol-class','parent-finder.component.ts (CarolComponent class)')(format='.') :marked Here's *Alex* and family in action: figure.image-display @@ -770,14 +770,14 @@ a(id="parent-tree") *provide* a `Parent` to satisfy *Carol*. Here's *Barry*: -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','barry','parent-finder.component.ts (BarryComponent)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','barry','parent-finder.component.ts (BarryComponent)')(format='.') :marked *Barry*'s `providers` array looks just like [*Alex*'s](#alex-providers). If we're going to keep writing [*alias providers*](#useexisting) like this we should create a [helper function](#provideparent). For now, focus on *Barry*'s constructor: +makeTabs( - 'cb-dependency-injection/ts/app/parent-finder.component.ts, cb-dependency-injection/ts/app/parent-finder.component.ts', + 'cb-dependency-injection/ts/src/app/parent-finder.component.ts, cb-dependency-injection/ts/src/app/parent-finder.component.ts', 'barry-ctor, carol-ctor', 'Barry\'s constructor, Carol\'s constructor')(format='.') :marked @@ -804,19 +804,19 @@ a(id="parent-token") We [learned earlier](#class-interface) that a *class-interface* is an abstract class used as an interface rather than as a base class. Our example defines a `Parent` *class-interface* . -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','parent','parent-finder.component.ts (Parent class-interface)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','parent','parent-finder.component.ts (Parent class-interface)')(format='.') :marked The `Parent` *class-interface* defines a `name` property with a type declaration but *no implementation*., The `name` property is the only member of a parent component that a child component can call. Such a narrowing interface helps decouple the child component class from its parent components. A component that could serve as a parent *should* implement the *class-interface* as the `AliceComponent` does: -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','alice-class-signature','parent-finder.component.ts (AliceComponent class signature)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','alice-class-signature','parent-finder.component.ts (AliceComponent class signature)')(format='.') :marked Doing so adds clarity to the code. But it's not technically necessary. Although the `AlexComponent` has a `name` property (as required by its `Base` class) its class signature doesn't mention `Parent`: -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','alex-class-signature','parent-finder.component.ts (AlexComponent class signature)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','alex-class-signature','parent-finder.component.ts (AlexComponent class signature)')(format='.') .l-sub-section :marked The `AlexComponent` *should* implement `Parent` as a matter of proper style. @@ -828,22 +828,22 @@ a(id="provideparent") Writing variations of the same parent *alias provider* gets old quickly, especially this awful mouthful with a [*forwardRef*](#forwardref): -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','alex-providers')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','alex-providers')(format='.') :marked We can extract that logic into a helper function like this: -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','provide-the-parent')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','provide-the-parent')(format='.') :marked Now we can add a simpler, more meaningful parent provider to our components: -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','alice-providers')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','alice-providers')(format='.') :marked We can do better. The current version of the helper function can only alias the `Parent` *class-interface*. Our application might have a variety of parent types, each with its own *class-interface* token. Here's a revised version that defaults to `parent` but also accepts an optional second parameter for a different parent *class-interface*. -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','provide-parent')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','provide-parent')(format='.') :marked And here's how we could use it with a different parent type: -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','beth-providers')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','beth-providers')(format='.') :marked a(id="forwardref") @@ -870,5 +870,5 @@ a(id="forwardref") appear *above* the class definition. We break the circularity with `forwardRef`: -+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','alex-providers','parent-finder.component.ts (AlexComponent providers)')(format='.') ++makeExample('cb-dependency-injection/ts/src/app/parent-finder.component.ts','alex-providers','parent-finder.component.ts (AlexComponent providers)')(format='.') :marked diff --git a/public/docs/ts/latest/cookbook/dynamic-component-loader.jade b/public/docs/ts/latest/cookbook/dynamic-component-loader.jade index d6a35e56c2..feace0d526 100644 --- a/public/docs/ts/latest/cookbook/dynamic-component-loader.jade +++ b/public/docs/ts/latest/cookbook/dynamic-component-loader.jade @@ -40,7 +40,7 @@ include ../_util-fns The ad banner uses a helper directive called `AdDirective` to mark valid insertion points in the template. -+makeExample('cb-dynamic-component-loader/ts/app/ad.directive.ts',null,'app/ad.directive.ts')(format='.') ++makeExample('cb-dynamic-component-loader/ts/src/app/ad.directive.ts',null,'src/app/ad.directive.ts')(format='.') :marked `AdDirective` injects `ViewContainerRef` to gain access to the view container of the element that will become the host of the dynamically added component. @@ -55,11 +55,11 @@ include ../_util-fns We start by adding a `template` element with the `AdDirective` directive applied. +makeTabs( - `cb-dynamic-component-loader/ts/app/ad-banner.component.ts, - cb-dynamic-component-loader/ts/app/ad.service.ts, - cb-dynamic-component-loader/ts/app/ad-item.ts, - cb-dynamic-component-loader/ts/app/app.module.ts, - cb-dynamic-component-loader/ts/app/app.component.ts`, + `cb-dynamic-component-loader/ts/src/app/ad-banner.component.ts, + cb-dynamic-component-loader/ts/src/app/ad.service.ts, + cb-dynamic-component-loader/ts/src/app/ad-item.ts, + cb-dynamic-component-loader/ts/src/app/app.module.ts, + cb-dynamic-component-loader/ts/src/app/app.component.ts`, null, `ad-banner.component.ts, ad.service.ts, @@ -73,7 +73,7 @@ include ../_util-fns Using a `template` element is recommended since it doesn't render any additional output. -+makeExample('cb-dynamic-component-loader/ts/app/ad-banner.component.ts', 'ad-host' ,'app/ad-banner.component.ts (template)')(format='.') ++makeExample('cb-dynamic-component-loader/ts/src/app/ad-banner.component.ts', 'ad-host' ,'src/app/ad-banner.component.ts (template)')(format='.') :marked ### Resolving Components @@ -94,7 +94,7 @@ include ../_util-fns With dynamically loaded components there are no selector references in the templates since components are loaded at runtime. In order to ensure that the compiler will still generate a factory, dynamically loaded components have to be added to their `NgModule`'s `entryComponents` array. -+makeExample('cb-dynamic-component-loader/ts/app/app.module.ts', 'entry-components' ,'app/app.module.ts (entry components)')(format='.') ++makeExample('cb-dynamic-component-loader/ts/src/app/app.module.ts', 'entry-components' ,'src/app/app.module.ts (entry components)')(format='.') :marked Components are added to the template by calling `createComponent` on the `ViewContainerRef` reference. @@ -106,9 +106,9 @@ include ../_util-fns Two sample components and the `AdComponent` interface are shown below: +makeTabs( - `cb-dynamic-component-loader/ts/app/hero-job-ad.component.ts, - cb-dynamic-component-loader/ts/app/hero-profile.component.ts, - cb-dynamic-component-loader/ts/app/ad.component.ts`, + `cb-dynamic-component-loader/ts/src/app/hero-job-ad.component.ts, + cb-dynamic-component-loader/ts/src/app/hero-profile.component.ts, + cb-dynamic-component-loader/ts/src/app/ad.component.ts`, null, `hero-job-ad.component.ts, hero-profile.component.ts, diff --git a/public/docs/ts/latest/cookbook/dynamic-form.jade b/public/docs/ts/latest/cookbook/dynamic-form.jade index 4968574ab7..71f95a429f 100644 --- a/public/docs/ts/latest/cookbook/dynamic-form.jade +++ b/public/docs/ts/latest/cookbook/dynamic-form.jade @@ -47,8 +47,8 @@ include ../_util-fns We bootstrap our `AppModule` in main.ts. +makeTabs( - `cb-dynamic-form/ts/app/app.module.ts, - cb-dynamic-form/ts/app/main.ts`, + `cb-dynamic-form/ts/src/app/app.module.ts, + cb-dynamic-form/ts/src/main.ts`, null, `app.module.ts, main.ts` @@ -65,7 +65,7 @@ include ../_util-fns We have created `QuestionBase` as the most fundamental question class. -+makeExample('cb-dynamic-form/ts/app/question-base.ts','','app/question-base.ts') ++makeExample('cb-dynamic-form/ts/src/app/question-base.ts','','src/app/question-base.ts') :marked From this base we derived two new classes in `TextboxQuestion` and `DropdownQuestion` that represent Textbox and Dropdown questions. @@ -73,18 +73,18 @@ include ../_util-fns `TextboxQuestion` supports multiple html5 types like text, email, url etc via the `type` property. -+makeExample('cb-dynamic-form/ts/app/question-textbox.ts',null,'app/question-textbox.ts')(format='.') ++makeExample('cb-dynamic-form/ts/src/app/question-textbox.ts',null,'src/app/question-textbox.ts')(format='.') :marked `DropdownQuestion` presents a list of choices in a select box. -+makeExample('cb-dynamic-form/ts/app/question-dropdown.ts',null,'app/question-dropdown.ts')(format='.') ++makeExample('cb-dynamic-form/ts/src/app/question-dropdown.ts',null,'src/app/question-dropdown.ts')(format='.') :marked Next we have defined `QuestionControlService`, a simple service for transforming our questions to a `FormGroup`. In a nutshell, the form group consumes the metadata from the question model and allows us to specify default values and validation rules. -+makeExample('cb-dynamic-form/ts/app/question-control.service.ts',null,'app/question-control.service.ts')(format='.') ++makeExample('cb-dynamic-form/ts/src/app/question-control.service.ts',null,'src/app/question-control.service.ts')(format='.') :marked @@ -94,8 +94,8 @@ include ../_util-fns :marked `DynamicFormComponent` is the entry point and the main container for the form. +makeTabs( - `cb-dynamic-form/ts/app/dynamic-form.component.html, - cb-dynamic-form/ts/app/dynamic-form.component.ts`, + `cb-dynamic-form/ts/src/app/dynamic-form.component.html, + cb-dynamic-form/ts/src/app/dynamic-form.component.ts`, null, `dynamic-form.component.html, dynamic-form.component.ts` @@ -106,8 +106,8 @@ include ../_util-fns the component responsible for rendering the details of each _individual_ question based on values in the data-bound question object. +makeTabs( - `cb-dynamic-form/ts/app/dynamic-form-question.component.html, - cb-dynamic-form/ts/app/dynamic-form-question.component.ts`, + `cb-dynamic-form/ts/src/app/dynamic-form-question.component.html, + cb-dynamic-form/ts/src/app/dynamic-form-question.component.ts`, null, `dynamic-form-question.component.html, dynamic-form-question.component.ts` @@ -134,12 +134,12 @@ include ../_util-fns The key point is that we control the hero job application questions entirely through the objects returned from `QuestionService`. Questionnaire maintenance is a simple matter of adding, updating, and removing objects from the `questions` array. -+makeExample('cb-dynamic-form/ts/app/question.service.ts','','app/question.service.ts') ++makeExample('cb-dynamic-form/ts/src/app/question.service.ts','','src/app/question.service.ts') :marked Finally, we display an instance of the form in the `AppComponent` shell. -+makeExample('cb-dynamic-form/ts/app/app.component.ts','','app.component.ts') ++makeExample('cb-dynamic-form/ts/src/app/app.component.ts','','app.component.ts') :marked diff --git a/public/docs/ts/latest/cookbook/form-validation.jade b/public/docs/ts/latest/cookbook/form-validation.jade index 70bbd1a26c..e71b02cb13 100644 --- a/public/docs/ts/latest/cookbook/form-validation.jade +++ b/public/docs/ts/latest/cookbook/form-validation.jade @@ -50,7 +50,7 @@ a#template1 In the first template validation example, we add more HTML to read that control state and update the display appropriately. Here's an excerpt from the template html for a single input box control bound to the hero name: -+makeExample('cb-form-validation/ts/app/template/hero-form-template1.component.html','name-with-error-msg','template/hero-form-template1.component.html (Hero name)')(format='.') ++makeExample('cb-form-validation/ts/src/app/template/hero-form-template1.component.html','name-with-error-msg','template/hero-form-template1.component.html (Hero name)')(format='.') :marked Note the following: @@ -85,7 +85,7 @@ a#template1 The component class manages the hero model used in the data binding as well as other code to support the view. -+makeExample('cb-form-validation/ts/app/template/hero-form-template1.component.ts','class','template/hero-form-template1.component.ts (class)') ++makeExample('cb-form-validation/ts/src/app/template/hero-form-template1.component.ts','class','template/hero-form-template1.component.ts (class)') :marked Use this template-driven validation technique when working with static forms with simple, standard validation rules. @@ -93,8 +93,8 @@ a#template1 Here are the complete files for the first version of `HeroFormTemplateCompononent` in the template-driven approach: +makeTabs( - `cb-form-validation/ts/app/template/hero-form-template1.component.html, - cb-form-validation/ts/app/template/hero-form-template1.component.ts`, + `cb-form-validation/ts/src/app/template/hero-form-template1.component.html, + cb-form-validation/ts/src/app/template/hero-form-template1.component.ts`, '', `template/hero-form-template1.component.html, template/hero-form-template1.component.ts`) @@ -120,8 +120,8 @@ a#template2 Here's the hero name again, excerpted from the revised template ("Template 2"), next to the original version: +makeTabs( - `cb-form-validation/ts/app/template/hero-form-template2.component.html, - cb-form-validation/ts/app/template/hero-form-template1.component.html`, + `cb-form-validation/ts/src/app/template/hero-form-template2.component.html, + cb-form-validation/ts/src/app/template/hero-form-template1.component.html`, 'name-with-error-msg, name-with-error-msg', `hero-form-template2.component.html (name #2), hero-form-template1.component.html (name #1)`) @@ -146,12 +146,12 @@ a#template2 Look back at the top of the component template where we set the `#heroForm` template variable in the `` element: -+makeExample('cb-form-validation/ts/app/template/hero-form-template1.component.html','form-tag','template/hero-form-template1.component.html (form tag)')(format='.') ++makeExample('cb-form-validation/ts/src/app/template/hero-form-template1.component.html','form-tag','template/hero-form-template1.component.html (form tag)')(format='.') :marked The `heroForm` variable is a reference to the control model that Angular derived from the template. We tell Angular to inject that model into the component class's `currentForm` property using a `@ViewChild` query: -+makeExample('cb-form-validation/ts/app/template/hero-form-template2.component.ts','view-child','template/hero-form-template2.component.ts (heroForm)')(format='.') ++makeExample('cb-form-validation/ts/src/app/template/hero-form-template2.component.ts','view-child','template/hero-form-template2.component.ts (heroForm)')(format='.') :marked Some observations: @@ -168,7 +168,7 @@ a#template2 - When there _is_ a new `heroForm` model, we subscribe to its `valueChanged` _Observable_ property. The `onValueChanged` handler looks for validation errors after every user keystroke. -+makeExample('cb-form-validation/ts/app/template/hero-form-template2.component.ts','handler','template/hero-form-template2.component.ts (handler)')(format='.') ++makeExample('cb-form-validation/ts/src/app/template/hero-form-template2.component.ts','handler','template/hero-form-template2.component.ts (handler)')(format='.') :marked The `onValueChanged` handler interprets user data entry. @@ -186,7 +186,7 @@ a#template2 - the handler composes a consolidated error message for all of the control's errors. We'll need some error messages of course, a set for each validated property, one message per validation rule: -+makeExample('cb-form-validation/ts/app/template/hero-form-template2.component.ts','messages','template/hero-form-template2.component.ts (messages)')(format='.') ++makeExample('cb-form-validation/ts/src/app/template/hero-form-template2.component.ts','messages','template/hero-form-template2.component.ts (messages)')(format='.') :marked Now every time the user makes a change, the `onValueChanged` handler checks for validation errors and produces messages accordingly. @@ -220,7 +220,7 @@ a#template2 We've been reviewing the "Template-driven" approach which requires the `FormsModule` Here's how we imported it in the `HeroFormTemplateModule`. -+makeExample('cb-form-validation/ts/app/template/hero-form-template.module.ts','','template/hero-form-template.module.ts')(format='.') ++makeExample('cb-form-validation/ts/src/app/template/hero-form-template.module.ts','','template/hero-form-template.module.ts')(format='.') .l-sub-section :marked We haven't talked about the `SharedModule` or its `SubmittedComponent` which appears at the bottom of every @@ -254,9 +254,9 @@ a#reactive ### Switch to the _ReactiveFormsModule_ The reactive forms classes and directives come from the Angular `ReactiveFormsModule`, not the `FormsModule`. The application module for the "Reactive Forms" feature in this sample looks like this: -+makeExample('cb-form-validation/ts/app/reactive/hero-form-reactive.module.ts','','app/reactive/hero-form-reactive.module.ts')(format='.') ++makeExample('cb-form-validation/ts/src/app/reactive/hero-form-reactive.module.ts','','src/app/reactive/hero-form-reactive.module.ts')(format='.') :marked - The "Reactive Forms" feature module and component are in the `app/reactive` folder. + The "Reactive Forms" feature module and component are in the `src/app/reactive` folder. Let's focus on the `HeroFormReactiveComponent` there, starting with its template. ### Component template @@ -265,13 +265,13 @@ a#reactive to the `heroForm` property in the component class. The `heroForm` is the control model that the component class builds and maintains. -+makeExample('cb-form-validation/ts/app/reactive/hero-form-reactive.component.html','form-tag')(format='.') ++makeExample('cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.html','form-tag')(format='.') :marked Then we modify the template HTML elements to match the _reactive forms_ style. Here is the "name" portion of the template again, revised for reactive forms and compared with the template-driven version: +makeTabs( - `cb-form-validation/ts/app/reactive/hero-form-reactive.component.html, - cb-form-validation/ts/app/template/hero-form-template2.component.html`, + `cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.html, + cb-form-validation/ts/src/app/template/hero-form-template2.component.html`, 'name-with-error-msg, name-with-error-msg', `hero-form-reactive.component.html (name #3), hero-form-template1.component.html (name #2)`) @@ -312,8 +312,8 @@ a#reactive Here's the section of code devoted to that process, paired with the template-driven code it replaces: +makeTabs( - `cb-form-validation/ts/app/reactive/hero-form-reactive.component.ts, - cb-form-validation/ts/app/template/hero-form-template2.component.ts`, + `cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts, + cb-form-validation/ts/src/app/template/hero-form-template2.component.ts`, 'form-builder, view-child', `reactive/hero-form-reactive.component.ts (FormBuilder), template/hero-form-template2.component.ts (ViewChild)`) @@ -361,23 +361,23 @@ a#reactive 1. when the user chooses to add a new hero The `onSubmit` method simply replaces the `hero` object with the combined values of the form: -+makeExample('cb-form-validation/ts/app/reactive/hero-form-reactive.component.ts','on-submit')(format='.') ++makeExample('cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts','on-submit')(format='.') .l-sub-section :marked This example is "lucky" in that the `heroForm.value` properties _just happen_ to correspond _exactly_ to the hero data object properties. :marked The `addHero` method discards pending changes and creates a brand new `hero` model object. -+makeExample('cb-form-validation/ts/app/reactive/hero-form-reactive.component.ts','add-hero')(format='.') ++makeExample('cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts','add-hero')(format='.') :marked Then it calls `buildForm` again which replaces the previous `heroForm` control model with a new one. The `` tag's `[formGroup]` binding refreshes the page with the new control model. Here's the complete reactive component file, compared to the two template-driven component files. +makeTabs( - `cb-form-validation/ts/app/reactive/hero-form-reactive.component.ts, - cb-form-validation/ts/app/template/hero-form-template2.component.ts, - cb-form-validation/ts/app/template/hero-form-template1.component.ts`, + `cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts, + cb-form-validation/ts/src/app/template/hero-form-template2.component.ts, + cb-form-validation/ts/src/app/template/hero-form-template1.component.ts`, '', `reactive/hero-form-reactive.component.ts (#3), template/hero-form-template2.component.ts (#2), @@ -393,11 +393,11 @@ a#custom-validation :marked ## Custom validation This cookbook sample has a custom `forbiddenNamevalidator` function that's applied to both the - template-driven and the reactive form controls. It's in the `app/shared` folder + template-driven and the reactive form controls. It's in the `src/app/shared` folder and declared in the `SharedModule`. Here's the `forbiddenNamevalidator` function itself: -+makeExample('cb-form-validation/ts/app/shared/forbidden-name.directive.ts','custom-validator', 'shared/forbidden-name.directive.ts (forbiddenNameValidator)')(format='.') ++makeExample('cb-form-validation/ts/src/app/shared/forbidden-name.directive.ts','custom-validator', 'shared/forbidden-name.directive.ts (forbiddenNameValidator)')(format='.') :marked The function is actually a factory that takes a regular expression to detect a _specific_ forbidden name and returns a validator function. @@ -419,20 +419,20 @@ a#custom-validation #### Custom validation directive In the reactive forms component we added a configured `forbiddenNamevalidator` to the bottom of the `'name'` control's validator function list. -+makeExample('cb-form-validation/ts/app/reactive/hero-form-reactive.component.ts','name-validators', 'reactive/hero-form-reactive.component.ts (name validators)')(format='.') ++makeExample('cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts','name-validators', 'reactive/hero-form-reactive.component.ts (name validators)')(format='.') :marked In the template-driven component template, we add the selector (`forbiddenName`) of a custom _attribute directive_ to the name's input box and configured it to reject "bob". -+makeExample('cb-form-validation/ts/app/template/hero-form-template2.component.html','name-input', 'template/hero-form-template2.component.html (name input)')(format='.') ++makeExample('cb-form-validation/ts/src/app/template/hero-form-template2.component.html','name-input', 'template/hero-form-template2.component.html (name input)')(format='.') :marked The corresponding `ForbiddenValidatorDirective` is a wrapper around the `forbiddenNamevalidator`. Angular forms recognizes the directive's role in the validation process because the directive registers itself with the `NG_VALIDATORS` provider, a provider with an extensible collection of validation directives. -+makeExample('cb-form-validation/ts/app/shared/forbidden-name.directive.ts','directive-providers', 'shared/forbidden-name.directive.ts (providers)')(format='.') ++makeExample('cb-form-validation/ts/src/app/shared/forbidden-name.directive.ts','directive-providers', 'shared/forbidden-name.directive.ts (providers)')(format='.') :marked The rest of the directive is unremarkable and we present it here without further comment. -+makeExample('cb-form-validation/ts/app/shared/forbidden-name.directive.ts','directive', 'shared/forbidden-name.directive.ts (directive)') ++makeExample('cb-form-validation/ts/src/app/shared/forbidden-name.directive.ts','directive', 'shared/forbidden-name.directive.ts (directive)') :marked .l-sub-section :marked diff --git a/public/docs/ts/latest/cookbook/i18n.jade b/public/docs/ts/latest/cookbook/i18n.jade index 87e38e989b..3086f03a33 100644 --- a/public/docs/ts/latest/cookbook/i18n.jade +++ b/public/docs/ts/latest/cookbook/i18n.jade @@ -74,11 +74,11 @@ a#i18n-attribute :marked In the accompanying sample, an `

` tag displays a simple English language greeting that you translate into Spanish: -+makeExample('cb-i18n/ts/app/app.component.1.html', 'greeting', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.1.html', 'greeting', 'src/app/app.component.html')(format=".") :marked Add the `i18n` attribute to the tag to mark it for translation. -+makeExample('cb-i18n/ts/app/app.component.1.html', 'i18n-attribute', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.1.html', 'i18n-attribute', 'src/app/app.component.html')(format=".") :marked ### Help the translator with a _description_ and _intent_ @@ -87,7 +87,7 @@ a#i18n-attribute need a description of the message. Assign a description to the i18n attribute: -+makeExample('cb-i18n/ts/app/app.component.1.html', 'i18n-attribute-desc', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.1.html', 'i18n-attribute-desc', 'src/app/app.component.html')(format=".") :marked In order to deliver a correct translation, the translator may need to @@ -96,7 +96,7 @@ a#i18n-attribute In front of the description, add some contextual meaning to the assigned string, separating it from the description with the `|` character (`|`): -+makeExample('cb-i18n/ts/app/app.component.html', 'i18n-attribute-meaning', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.html', 'i18n-attribute-meaning', 'src/app/app.component.html')(format=".") :marked While all appearances of a message with the _same_ meaning have the _same_ translation, @@ -114,12 +114,12 @@ a#i18n-attribute (1) Wrap the text in an `` element. The `` is never renderered: -+makeExample('cb-i18n/ts/app/app.component.html', 'i18n-ng-container', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.html', 'i18n-ng-container', 'src/app/app.component.html')(format=".") :marked (2) Wrap the text in a pair of HTML comments: -+makeExample('cb-i18n/ts/app/app.component.html', 'i18n-with-comment', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.html', 'i18n-with-comment', 'src/app/app.component.html')(format=".") .l-main-section a#translate-attributes @@ -127,7 +127,7 @@ a#translate-attributes ## Add _i18n-..._ translation attributes You've added an image to your template. You care about accessibility too so you add a `title` attribute: -+makeExample('cb-i18n/ts/app/app.component.1.html', 'i18n-title', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.1.html', 'i18n-title', 'src/app/app.component.html')(format=".") :marked The `title` attribute needs to be translated. @@ -136,7 +136,7 @@ a#translate-attributes To translate the `title` on the `img` tag from the previous example, write: -+makeExample('cb-i18n/ts/app/app.component.html', 'i18n-title-translate', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.html', 'i18n-title-translate', 'src/app/app.component.html')(format=".") :marked You can also assign a meaning and a description with the `i18n-x="|"` syntax. @@ -154,7 +154,7 @@ a#cardinality Here's how you could mark up the component template to display the phrase appropriate to the number of wolves: -+makeExample('cb-i18n/ts/app/app.component.html', 'i18n-plural', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.html', 'i18n-plural', 'src/app/app.component.html')(format=".") :marked * The first parameter is the key. It is bound to the component property (`wolves`) @@ -203,7 +203,7 @@ a#select property, which outputs either an "m" or an "f". The message maps those values to the appropriate translation: -+makeExample('cb-i18n/ts/app/app.component.html', 'i18n-select', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.html', 'i18n-select', 'src/app/app.component.html')(format=".") a#ng-xi18n .l-main-section @@ -305,11 +305,11 @@ a#localization-folder Localization and internationalization are different but closely related terms. :marked - This cookbook follows that suggestion. It has a `locale` folder under the project root. + This cookbook follows that suggestion. It has a `locale` folder under the `src/`. Assets within the folder carry a filename extension that matches a language-culture code from a well-known codeset. - Make a copy of the `messages.xlf` file in the `locale` folder and + Make a copy of the `messages.xlf` file, put it in the `locale` folder and rename it `messages.es.xlf`for the Spanish language translation. Do the same for each target language. @@ -321,13 +321,13 @@ a#localization-folder This sample file is easy to translate without a special editor or knowledge of Spanish. Open `messages.es.xlf` and find the first `` section: -+makeExample('cb-i18n/ts/locale/messages.es.xlf.html', 'translated-hello', 'locale/messages.es.xlf ()')(format=".") ++makeExample('cb-i18n/ts/src/locale/messages.es.xlf.html', 'translated-hello', 'src/locale/messages.es.xlf ()')(format=".") :marked This XML element represents the translation of the `

` greeting tag you marked with the `i18n` attribute. Using the _source_, _description_, and _meaning_ elements to guide your translation, replace the `` tag with the Spanish greeting: -+makeExample('cb-i18n/ts/locale/messages.es.xlf.html', 'translated-hello', 'locale/messages.es.xlf (, after translation)')(format=".") ++makeExample('cb-i18n/ts/src/locale/messages.es.xlf.html', 'translated-hello', 'src/locale/messages.es.xlf (, after translation)')(format=".") .alert.is-important :marked @@ -339,7 +339,7 @@ a#localization-folder :marked Translate the other text nodes the same way: -+makeExample('cb-i18n/ts/locale/messages.es.xlf.html', 'translated-other-nodes', 'locale/messages.es.xlf ()')(format=".") ++makeExample('cb-i18n/ts/src/locale/messages.es.xlf.html', 'translated-other-nodes', 'src/locale/messages.es.xlf ()')(format=".") a#translate-plural-select :marked @@ -358,13 +358,13 @@ a#translate-plural-select ### Translate _plural_ To translate a `plural`, translate its ICU format match values: -+makeExample('cb-i18n/ts/locale/messages.es.xlf.html', 'translated-plural', 'locale/messages.es.xlf ()')(format=".") ++makeExample('cb-i18n/ts/src/locale/messages.es.xlf.html', 'translated-plural', 'src/locale/messages.es.xlf ()')(format=".") :marked ### Translate _select_ The `select` behaves a little differently. Here again is the ICU format message in the component template: -+makeExample('cb-i18n/ts/app/app.component.html', 'i18n-select', 'app/app.component.html')(format=".") ++makeExample('cb-i18n/ts/src/app/app.component.html', 'i18n-select', 'src/app/app.component.html')(format=".") :marked The extraction tool broke that into _two_ translation units. @@ -373,17 +373,17 @@ a#translate-plural-select In place of the `select` is a placeholder, ``, that represents the `select` message. Translate the text and leave the placeholder where it is. -+makeExample('cb-i18n/ts/locale/messages.es.xlf.html', 'translate-select-1', 'locale/messages.es.xlf ()')(format=".") ++makeExample('cb-i18n/ts/src/locale/messages.es.xlf.html', 'translate-select-1', 'src/locale/messages.es.xlf ()')(format=".") :marked The second translation unit, immediately below the first one, contains the `select` message. Translate that. -+makeExample('cb-i18n/ts/locale/messages.es.xlf.html', 'translate-select-2', 'locale/messages.es.xlf ()')(format=".") ++makeExample('cb-i18n/ts/src/locale/messages.es.xlf.html', 'translate-select-2', 'src/locale/messages.es.xlf ()')(format=".") :marked Here they are together, after translation: -+makeExample('cb-i18n/ts/locale/messages.es.xlf.html', 'translated-select', 'locale/messages.es.xlf ()')(format=".") ++makeExample('cb-i18n/ts/src/locale/messages.es.xlf.html', 'translated-select', 'src/locale/messages.es.xlf ()')(format=".") .l-main-content :marked @@ -397,17 +397,17 @@ a#translate-plural-select When the previous steps finish, the sample app _and_ its translation file are as follows: +makeTabs(` - cb-i18n/ts/app/app.component.html, - cb-i18n/ts/app/app.component.ts, - cb-i18n/ts/app/app.module.ts, - cb-i18n/ts/app/main.1.ts, - cb-i18n/ts/locale/messages.es.xlf.html + cb-i18n/ts/src/app/app.component.html, + cb-i18n/ts/src/app/app.component.ts, + cb-i18n/ts/src/app/app.module.ts, + cb-i18n/ts/src/main.1.ts, + cb-i18n/ts/src/locale/messages.es.xlf.html `, '', ` - app/app.component.html, - app/app.component.ts, - app/app.module.ts, - app/main.ts, - locale/messages.es.xlf + src/app/app.component.html, + src/app/app.component.ts, + src/app/app.module.ts, + src/main.ts, + src/locale/messages.es.xlf `) a#merge @@ -446,7 +446,7 @@ a#jit 4. Bootstrapping the application with those providers. Open `index.html` and revise the launch script as follows: -+makeExample('cb-i18n/ts/index.html', 'i18n', 'index.html (launch script)')(format='.') ++makeExample('cb-i18n/ts/src/index.html', 'i18n', 'index.html (launch script)')(format='.') :marked In this sample, the user's language is hardcoded as a global `document.locale` variable in the `index.html`. @@ -461,8 +461,8 @@ a#text-plugin You'll need it to import the language translation file. SystemJS doesn't ship with a raw text plugin but it's easy to add. - Create the following `systemjs-text-plugin.js` in the root folder: -+makeExample('cb-i18n/ts/systemjs-text-plugin.js', null, 'systemjs-text-plugin.js')(format='.') + Create the following `systemjs-text-plugin.js` in the `src/` folder: ++makeExample('cb-i18n/ts/src/systemjs-text-plugin.js', null, 'src/systemjs-text-plugin.js')(format='.') :marked ### Create translation providers @@ -473,10 +473,10 @@ a#text-plugin * `TRANSLATIONS_FORMAT` is the format of the file: `xlf`, `xlif` or `xtb`. * `LOCALE_ID` is the locale of the target language. - The `getTranslationProviders` function in the following `app/i18n-providers.ts` + The `getTranslationProviders` function in the following `src/app/i18n-providers.ts` creates those providers based on the user's _locale_ and the corresponding translation file: -+makeExample('cb-i18n/ts/app/i18n-providers.ts', null, 'app/i18n-providers.ts') ++makeExample('cb-i18n/ts/src/app/i18n-providers.ts', null, 'src/app/i18n-providers.ts') :marked 1. It gets the locale from the global `document.locale` variable that was set in `index.html`. @@ -501,8 +501,8 @@ a#text-plugin You'll create an _options_ object with the translation providers from `getTranslationProviders` and pass it to `bootstrapModule`. - Open the `app/main.ts` and modify the bootstrap code as follows: -+makeExample('cb-i18n/ts/app/main.ts', null, 'app/main.ts')(format=".") + Open the `src/main.ts` and modify the bootstrap code as follows: ++makeExample('cb-i18n/ts/src/main.ts', null, 'src/main.ts')(format=".") :marked Notice that it waits for the `getTranslationProviders` promise to resolve before bootstrapping the app. diff --git a/public/docs/ts/latest/cookbook/ngmodule-faq.jade b/public/docs/ts/latest/cookbook/ngmodule-faq.jade index 51e6d5c0b6..d3df90e07a 100644 --- a/public/docs/ts/latest/cookbook/ngmodule-faq.jade +++ b/public/docs/ts/latest/cookbook/ngmodule-faq.jade @@ -565,7 +565,7 @@ a#q-is-it-loaded Certain Angular modules (such as `BrowserModule`) implements such a guard as does this Angular Module chapter sample's `CoreModule` constructor. -+makeExample('ngmodule/ts/app/core/core.module.ts', 'ctor', 'app/core/core.module.ts (Constructor)')(format='.') ++makeExample('ngmodule/ts/src/app/core/core.module.ts', 'ctor', 'src/app/core/core.module.ts (Constructor)')(format='.') :marked .l-hr @@ -970,10 +970,10 @@ code-example(format='.'). :marked Here's an _Angular Module_ class with imports, exports, and declarations. -+makeExample('ngmodule/ts/app/contact/contact.module.2.ts', 'class')(format=".") ++makeExample('ngmodule/ts/src/app/contact/contact.module.2.ts', 'class')(format=".") :marked Of course we use _JavaScript_ modules to write _Angular_ modules as seen in the complete `contact.module.ts` file: -+makeExample('ngmodule/ts/app/contact/contact.module.2.ts', '', 'app/contact/contact.module.ts')(format=".") ++makeExample('ngmodule/ts/src/app/contact/contact.module.2.ts', '', 'src/app/contact/contact.module.ts')(format=".") .l-hr diff --git a/public/docs/ts/latest/cookbook/set-document-title.jade b/public/docs/ts/latest/cookbook/set-document-title.jade index 2ef4dc7f5d..832738239e 100644 --- a/public/docs/ts/latest/cookbook/set-document-title.jade +++ b/public/docs/ts/latest/cookbook/set-document-title.jade @@ -51,7 +51,7 @@ code-example(format=''). Let's inject the `Title` service into the root `AppComponent` and expose a bindable `setTitle` method that calls it: -+makeExample( "cb-set-document-title/ts/app/app.component.ts", "class", "app/app.component.ts (class)" )(format='.') ++makeExample( "cb-set-document-title/ts/src/app/app.component.ts", "class", "src/app/app.component.ts (class)" )(format='.') :marked We bind that method to three anchor tags and, voilà! figure.image-display @@ -61,11 +61,11 @@ figure.image-display Here's the complete solution +makeTabs( - `cb-set-document-title/ts/app/main.ts, - cb-set-document-title/ts/app/app.module.ts, - cb-set-document-title/ts/app/app.component.ts`, + `cb-set-document-title/ts/src/main.ts, + cb-set-document-title/ts/src/app/app.module.ts, + cb-set-document-title/ts/src/app/app.component.ts`, '', - 'app/main.ts, app/app.module.ts, app/app.component.ts' ) + 'src/main.ts, src/app/app.module.ts, src/app/app.component.ts' ) // Todo: tie this back to the router so we can see how to use this Title service to (re)set the title diff --git a/public/docs/ts/latest/cookbook/ts-to-js.jade b/public/docs/ts/latest/cookbook/ts-to-js.jade index 7f9cf9dac0..bd89b29375 100644 --- a/public/docs/ts/latest/cookbook/ts-to-js.jade +++ b/public/docs/ts/latest/cookbook/ts-to-js.jade @@ -82,10 +82,10 @@ a#modularity Anything you can import from `@angular` is a nested member of this `ng` object: +makeTabs(` - cb-ts-to-js/ts/app/app.module.ts, - cb-ts-to-js/js-es6-decorators/app/app.module.es6, - cb-ts-to-js/js-es6/app/app.module.es6, - cb-ts-to-js/js/app/app.module.js + cb-ts-to-js/ts/src/app/app.module.ts, + cb-ts-to-js/js-es6-decorators/src/app/app.module.es6, + cb-ts-to-js/js-es6/src/app/app.module.es6, + cb-ts-to-js/js/src/app/app.module.js `, 'ng2import,ng2import,ng2import,ng2import', ` TypeScript, @@ -120,10 +120,10 @@ a#modularity Here is a `HeroComponent` as it might be defined and "exported" in each of the four language variants. +makeTabs(` - cb-ts-to-js/ts/app/hero.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero.component.es6, - cb-ts-to-js/js-es6/app/hero.component.es6, - cb-ts-to-js/js/app/hero.component.js + cb-ts-to-js/ts/src/app/hero.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero.component.es6, + cb-ts-to-js/js-es6/src/app/hero.component.es6, + cb-ts-to-js/js/src/app/hero.component.js `, 'appexport,appexport,appexport,appexport', ` TypeScript, @@ -140,10 +140,10 @@ a#modularity In _ES5_ you use the shared namespace object to access "exported" entities from other files. +makeTabs(` - cb-ts-to-js/ts/app/app.module.ts, - cb-ts-to-js/js-es6-decorators/app/app.module.es6, - cb-ts-to-js/js-es6/app/app.module.es6, - cb-ts-to-js/js/app/app.module.js + cb-ts-to-js/ts/src/app/app.module.ts, + cb-ts-to-js/js-es6-decorators/src/app/app.module.es6, + cb-ts-to-js/js-es6/src/app/app.module.es6, + cb-ts-to-js/js/src/app/app.module.js `, 'appimport,appimport,appimport,appimport', ` TypeScript, @@ -188,10 +188,10 @@ a#class-metadata Use the constructor function pattern instead, adding methods to the prototype. +makeTabs(` - cb-ts-to-js/ts/app/hero.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero.component.es6, - cb-ts-to-js/js-es6/app/hero.component.es6, - cb-ts-to-js/js/app/hero.component.js + cb-ts-to-js/ts/src/app/hero.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero.component.es6, + cb-ts-to-js/js-es6/src/app/hero.component.es6, + cb-ts-to-js/js/src/app/hero.component.js `, 'class,class,class,constructorproto', ` TypeScript, @@ -217,10 +217,10 @@ a#class-metadata See these variations side-by-side: +makeTabs(` - cb-ts-to-js/ts/app/hero.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero.component.es6, - cb-ts-to-js/js-es6/app/hero.component.es6, - cb-ts-to-js/js/app/hero.component.js + cb-ts-to-js/ts/src/app/hero.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero.component.es6, + cb-ts-to-js/js-es6/src/app/hero.component.es6, + cb-ts-to-js/js/src/app/hero.component.js `, 'metadata,metadata,metadata,metadata', ` TypeScript, @@ -233,14 +233,14 @@ a#class-metadata ***External Template file*** A large component template is often kept in a separate template file. -+makeExample('cb-ts-to-js/ts/app/hero-title.component.html', '', 'app/hero-title.component.html')(format='.') ++makeExample('cb-ts-to-js/ts/src/app/hero-title.component.html', '', 'src/app/hero-title.component.html')(format='.') :marked The component (`HeroTitleComponent` in this case) then references the template file in its metadata `templateUrl` property: +makeTabs(` - cb-ts-to-js/ts/app/hero-title.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero-title.component.es6, - cb-ts-to-js/js-es6/app/hero-title.component.es6, - cb-ts-to-js/js/app/hero-title.component.js`, + cb-ts-to-js/ts/src/app/hero-title.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero-title.component.es6, + cb-ts-to-js/js-es6/src/app/hero-title.component.es6, + cb-ts-to-js/js/src/app/hero-title.component.js`, 'templateUrl, templateUrl, templateUrl, templateUrl', `TypeScript, ES6 JavaScript with decorators, @@ -281,8 +281,8 @@ a#dsl next to the original _ES5_ version for comparison: +makeTabs(` - cb-ts-to-js/js/app/hero.component.js, - cb-ts-to-js/js/app/hero.component.js + cb-ts-to-js/js/src/app/hero.component.js, + cb-ts-to-js/js/src/app/hero.component.js `, 'dsl,', ` @@ -304,7 +304,7 @@ a#dsl _TypeScript_ and _ES6_ support with getters and setters. Here's an example of a read-only _TypeScript_ property with a getter that prepares a toggle-button label for the next clicked state: -+makeExample('cb-ts-to-js/ts/app/hero-queries.component.ts', 'defined-property', 'ts/app/hero-queries.component.ts')(format='.') ++makeExample('cb-ts-to-js/ts/src/app/hero-queries.component.ts', 'defined-property', 'ts/src/app/hero-queries.component.ts')(format='.') :marked This _TypeScript_ "getter" property is transpiled to an _ES5_ @@ -313,7 +313,7 @@ a#dsl The _ES5 DSL_ does not support _defined properties_ directly but you can still create them by extracting the "class" prototype and adding the _defined property_ in raw JavaScript like this: -+makeExample('cb-ts-to-js/js/app/hero-queries.component.js', 'defined-property','js/app/hero-queries.component.ts')(format='.') ++makeExample('cb-ts-to-js/js/src/app/hero-queries.component.js', 'defined-property','js/src/app/hero-queries.component.ts')(format='.') :marked ### DSL for other classes @@ -350,11 +350,11 @@ a#interfaces Just implement the methods and ignore interfaces when translating code samples from _TypeScript_ to JavaScript. +makeTabs(` - cb-ts-to-js/ts/app/hero-lifecycle.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero-lifecycle.component.es6, - cb-ts-to-js/js-es6/app/hero-lifecycle.component.es6, - cb-ts-to-js/js/app/hero-lifecycle.component.js, - cb-ts-to-js/js/app/hero-lifecycle.component.js + cb-ts-to-js/ts/src/app/hero-lifecycle.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero-lifecycle.component.es6, + cb-ts-to-js/js-es6/src/app/hero-lifecycle.component.es6, + cb-ts-to-js/js/src/app/hero-lifecycle.component.js, + cb-ts-to-js/js/src/app/hero-lifecycle.component.js `, ',,,,dsl', ` TypeScript, @@ -385,11 +385,11 @@ a#io-decorators combined in the metadata `inputs` and `outputs` _arrays_. +makeTabs(` - cb-ts-to-js/ts/app/confirm.component.ts, - cb-ts-to-js/js-es6-decorators/app/confirm.component.es6, - cb-ts-to-js/js-es6/app/confirm.component.es6, - cb-ts-to-js/js/app/confirm.component.js, - cb-ts-to-js/js/app/confirm.component.js + cb-ts-to-js/ts/src/app/confirm.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/confirm.component.es6, + cb-ts-to-js/js-es6/src/app/confirm.component.es6, + cb-ts-to-js/js/src/app/confirm.component.js, + cb-ts-to-js/js/src/app/confirm.component.js `, ',,,,dsl', ` TypeScript, @@ -444,11 +444,11 @@ a#io-decorators This format should be familiar to AngularJS developers. +makeTabs(` - cb-ts-to-js/ts/app/hero-di.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero-di.component.es6, - cb-ts-to-js/js-es6/app/hero-di.component.es6, - cb-ts-to-js/js/app/hero-di.component.js, - cb-ts-to-js/js/app/hero-di.component.js + cb-ts-to-js/ts/src/app/hero-di.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero-di.component.es6, + cb-ts-to-js/js-es6/src/app/hero-di.component.es6, + cb-ts-to-js/js/src/app/hero-di.component.js, + cb-ts-to-js/js/src/app/hero-di.component.js `, ',,,,dsl', ` TypeScript, @@ -478,11 +478,11 @@ a#io-decorators array as before. Create a new instance of `ng.core.Inject(token)` for each parameter. +makeTabs(` - cb-ts-to-js/ts/app/hero-di-inject.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero-di-inject.component.es6, - cb-ts-to-js/js-es6/app/hero-di-inject.component.es6, - cb-ts-to-js/js/app/hero-di-inject.component.js, - cb-ts-to-js/js/app/hero-di-inject.component.js + cb-ts-to-js/ts/src/app/hero-di-inject.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero-di-inject.component.es6, + cb-ts-to-js/js-es6/src/app/hero-di-inject.component.es6, + cb-ts-to-js/js/src/app/hero-di-inject.component.js, + cb-ts-to-js/js/src/app/hero-di-inject.component.js `, ',,,,dsl', ` TypeScript, @@ -514,11 +514,11 @@ a#io-decorators array as before. Use a nested array to define a parameter's complete injection specification. +makeTabs(` - cb-ts-to-js/ts/app/hero-title.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero-title.component.es6, - cb-ts-to-js/js-es6/app/hero-title.component.es6, - cb-ts-to-js/js/app/hero-title.component.js, - cb-ts-to-js/js/app/hero-title.component.js + cb-ts-to-js/ts/src/app/hero-title.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero-title.component.es6, + cb-ts-to-js/js-es6/src/app/hero-title.component.es6, + cb-ts-to-js/js/src/app/hero-title.component.js, + cb-ts-to-js/js/src/app/hero-title.component.js `, ',,,,dsl', ` TypeScript, @@ -560,11 +560,11 @@ a#host-binding * Each value identifies the corresponding component property or method. +makeTabs(` - cb-ts-to-js/ts/app/hero-host.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero-host.component.es6, - cb-ts-to-js/js-es6/app/hero-host.component.es6, - cb-ts-to-js/js/app/hero-host.component.js, - cb-ts-to-js/js/app/hero-host.component.js + cb-ts-to-js/ts/src/app/hero-host.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero-host.component.es6, + cb-ts-to-js/js-es6/src/app/hero-host.component.es6, + cb-ts-to-js/js/src/app/hero-host.component.js, + cb-ts-to-js/js/src/app/hero-host.component.js `, ',,,,dsl', ` TypeScript, @@ -584,8 +584,8 @@ a#host-binding can be expressed as component or directive metadata in both _TypeScript_ and _ES6-with-decorators_. These particular _TypeScript_ and _ES6_ code snippets happen to be identical. +makeTabs(` - cb-ts-to-js/ts/app/hero-host-meta.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero-host-meta.component.es6 + cb-ts-to-js/ts/src/app/hero-host-meta.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero-host-meta.component.es6 `, '', ` TypeScript, @@ -618,10 +618,10 @@ a#view-child-decorators * each _value_ is a new instance of either `ViewChild` or `ViewChildren`. +makeTabs(` - cb-ts-to-js/ts/app/hero-queries.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero-queries.component.es6, - cb-ts-to-js/js-es6/app/hero-queries.component.es6, - cb-ts-to-js/js/app/hero-queries.component.js + cb-ts-to-js/ts/src/app/hero-queries.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero-queries.component.es6, + cb-ts-to-js/js-es6/src/app/hero-queries.component.es6, + cb-ts-to-js/js/src/app/hero-queries.component.js `, 'view, view, view, view', ` TypeScript, @@ -640,10 +640,10 @@ a#view-child-decorators [`@ViewChildren`](../api/core/index/ViewChildren-decorator.html). +makeTabs(` - cb-ts-to-js/ts/app/hero-queries.component.ts, - cb-ts-to-js/js-es6-decorators/app/hero-queries.component.es6, - cb-ts-to-js/js-es6/app/hero-queries.component.es6, - cb-ts-to-js/js/app/hero-queries.component.js + cb-ts-to-js/ts/src/app/hero-queries.component.ts, + cb-ts-to-js/js-es6-decorators/src/app/hero-queries.component.es6, + cb-ts-to-js/js-es6/src/app/hero-queries.component.es6, + cb-ts-to-js/js/src/app/hero-queries.component.js `, 'content, content, content, content', ` TypeScript, diff --git a/public/docs/ts/latest/glossary.jade b/public/docs/ts/latest/glossary.jade index 59a8b8230f..4d78201c45 100644 --- a/public/docs/ts/latest/glossary.jade +++ b/public/docs/ts/latest/glossary.jade @@ -608,7 +608,7 @@ a#Q The only difference, from a consumer perspective, is that the *scoped package* name begins with the Angular *scope name*, `@angular`. - +makeExcerpt('architecture/ts/app/app.component.ts', 'import', '') + +makeExcerpt('architecture/ts/src/app/app.component.ts', 'import', '') a#snake-case :marked diff --git a/public/docs/ts/latest/guide/animations.jade b/public/docs/ts/latest/guide/animations.jade index 14d189b283..0ac55c3420 100644 --- a/public/docs/ts/latest/guide/animations.jade +++ b/public/docs/ts/latest/guide/animations.jade @@ -51,14 +51,14 @@ figure Animations are defined inside `@Component` metadata. Before you can add animations, you need to import a few animation-specific functions: -+makeExample('animations/ts/app/hero-list-basic.component.ts', 'imports')(format=".") ++makeExample('animations/ts/src/app/hero-list-basic.component.ts', 'imports')(format=".") :marked With these, you can define an *animation trigger* called `heroState` in the component metadata. It uses animations to transition between two states: `active` and `inactive`. When a hero is active, the element appears in a slightly larger size and lighter color. -+makeExample('animations/ts/app/hero-list-basic.component.ts', 'animationdef')(format=".") ++makeExample('animations/ts/src/app/hero-list-basic.component.ts', 'animationdef')(format=".") .alert.is-helpful :marked @@ -69,7 +69,7 @@ figure Now, using the `[@triggerName]` syntax, attach the animation that you just defined to one or more elements in the component's template. -+makeExample('animations/ts/app/hero-list-basic.component.ts', 'template')(format=".") ++makeExample('animations/ts/src/app/hero-list-basic.component.ts', 'template')(format=".") :marked Here, the animation trigger applies to every element repeated by an `ngFor`. Each of @@ -79,7 +79,7 @@ figure With this setup, an animated transition appears whenever a hero object changes state. Here's the full component implementation: -+makeExample('animations/ts/app/hero-list-basic.component.ts') ++makeExample('animations/ts/src/app/hero-list-basic.component.ts') :marked ## States and transitions @@ -95,7 +95,7 @@ figure You can define *styles* for each animation state: -+makeExample('animations/ts/app/hero-list-basic.component.ts', 'states')(format=".") ++makeExample('animations/ts/src/app/hero-list-basic.component.ts', 'states')(format=".") :marked These `state` definitions specify the *end styles* of each state. @@ -105,7 +105,7 @@ figure After you define states, you can define *transitions* between the states. Each transition controls the timing of switching between one set of styles and the next: -+makeExample('animations/ts/app/hero-list-basic.component.ts', 'transitions')(format=".") ++makeExample('animations/ts/src/app/hero-list-basic.component.ts', 'transitions')(format=".") figure.image-display img(src="/resources/images/devguide/animations/ng_animate_transitions_inactive_active.png" alt="In Angular animations you define states and transitions between states" width="400") @@ -114,13 +114,13 @@ figure.image-display If several transitions have the same timing configuration, you can combine them into the same `transition` definition: -+makeExample('animations/ts/app/hero-list-combined-transitions.component.ts', 'transitions')(format=".") ++makeExample('animations/ts/src/app/hero-list-combined-transitions.component.ts', 'transitions')(format=".") :marked When both directions of a transition have the same timing, as in the previous example, you can use the shorthand syntax `<=>`: -+makeExample('animations/ts/app/hero-list-twoway.component.ts', 'transitions')(format=".") ++makeExample('animations/ts/src/app/hero-list-twoway.component.ts', 'transitions')(format=".") :marked You can also apply a style during an animation but not keep it around @@ -129,7 +129,7 @@ figure.image-display When the transition finishes, none of these styles are kept because they're not defined in a `state`. -+makeExample('animations/ts/app/hero-list-inline-styles.component.ts', 'transitions')(format=".") ++makeExample('animations/ts/src/app/hero-list-inline-styles.component.ts', 'transitions')(format=".") :marked ### The wildcard state `*` @@ -171,7 +171,7 @@ figure * Enter: `void => *` * Leave: `* => void` -+makeExample('animations/ts/app/hero-list-enter-leave.component.ts', 'animationdef')(format=".") ++makeExample('animations/ts/src/app/hero-list-enter-leave.component.ts', 'animationdef')(format=".") :marked Note that in this case the styles are applied to the void state directly in the @@ -207,7 +207,7 @@ figure.image-display img(src="/resources/images/devguide/animations/ng_animate_transitions_inactive_active_void.png" alt="This example transitions between active, inactive, and void states" width="400") -+makeExample('animations/ts/app/hero-list-enter-leave-states.component.ts', 'animationdef')(format=".") ++makeExample('animations/ts/src/app/hero-list-enter-leave-states.component.ts', 'animationdef')(format=".") :marked ## Animatable properties and units @@ -244,7 +244,7 @@ figure In this example, the leave animation takes whatever height the element has before it leaves and animates from that height to zero: -+makeExample('animations/ts/app/hero-list-auto.component.ts', 'animationdef')(format=".") ++makeExample('animations/ts/src/app/hero-list-auto.component.ts', 'animationdef')(format=".") :marked ## Animation timing @@ -290,7 +290,7 @@ figure 200 milliseconds but they have different easings. The leave begins after a slight delay: -+makeExample('animations/ts/app/hero-list-timings.component.ts', 'animationdef')(format=".") ++makeExample('animations/ts/src/app/hero-list-timings.component.ts', 'animationdef')(format=".") :marked ## Multi-step animations with keyframes @@ -307,7 +307,7 @@ figure This example adds some "bounce" to the enter and leave animations with keyframes: -+makeExample('animations/ts/app/hero-list-multistep.component.ts', 'animationdef')(format=".") ++makeExample('animations/ts/src/app/hero-list-multistep.component.ts', 'animationdef')(format=".") :marked Note that the offsets are *not* defined in terms of absolute time. They are relative @@ -334,7 +334,7 @@ figure enter and leave allows for two different timing configurations. Both are applied to the same element in parallel, but run independently of each other: -+makeExample('animations/ts/app/hero-list-groups.component.ts', 'animationdef')(format=".") ++makeExample('animations/ts/src/app/hero-list-groups.component.ts', 'animationdef')(format=".") :marked One group animates the element transform and width; the other group animates the opacity. @@ -347,7 +347,7 @@ figure In the keyframes example, you have a `trigger` called `@flyInOut`. There you can hook those callbacks like this: -+makeExample('animations/ts/app/hero-list-multistep.component.ts', 'template')(format=".") ++makeExample('animations/ts/src/app/hero-list-multistep.component.ts', 'template')(format=".") :marked The callbacks receive an `AnimationTransitionEvent` which contains useful properties such as `fromState`, diff --git a/public/docs/ts/latest/guide/appmodule.jade b/public/docs/ts/latest/guide/appmodule.jade index 24dce3423c..1941335d97 100644 --- a/public/docs/ts/latest/guide/appmodule.jade +++ b/public/docs/ts/latest/guide/appmodule.jade @@ -9,7 +9,7 @@ include ../_util-fns The [setup](setup.html) instructions produce a new project with the following minimal `AppModule`. You'll evolve this module as your application grows. -+makeExample('setup/ts/app/app.module.ts','', 'app/app.module.ts')(format='.') ++makeExample('setup/ts/src/app/app.module.ts','', 'src/app/app.module.ts')(format='.') :marked After the `import` statements, you come to a class adorned with the @@ -103,8 +103,8 @@ l-main-section and you'll run it in a browser. You can learn about other options later. The recommended place to bootstrap a JIT-compiled browser application is in a separate file - in the `app` folder named `app/main.ts` -+makeExample('setup/ts/app/main.ts','','app/main.ts')(format='.') + in the `src` folder named `src/main.ts` ++makeExample('setup/ts/src/main.ts','','src/main.ts')(format='.') :marked This code creates a browser platform for dynamic (JIT) compilation and bootstraps the `AppModule` described above. @@ -115,7 +115,7 @@ l-main-section The `AppComponent` selector — here and in most documentation samples — is `my-app` so Angular looks for a `` tag in the `index.html` like this one ... -+makeExample('setup/ts/index.html','my-app')(format='.') ++makeExample('setup/ts/src/index.html','my-app')(format='.') :marked ... and displays the `AppComponent` there. @@ -135,4 +135,4 @@ l-main-section live code in the _QuickStart_ plunker. Remove the following `