From ec4c1edff44f0730a00b6120ec317082a6480ed5 Mon Sep 17 00:00:00 2001 From: Tero Parviainen Date: Mon, 11 Apr 2016 15:36:53 +0300 Subject: [PATCH] docs(upgrade): add E2E tests, update PhoneCat dependencies closes #1070 Separates UpgradeAdapter reference guide examples from the PhoneCat tutorial examples and update dependencies for phonecat upgrade examples --- public/docs/_examples/protractor.config.js | 9 +- .../_examples/upgrade-adapter/e2e-spec.js | 197 +++++++++++++++ .../_examples/upgrade-adapter/ts/.gitignore | 1 + .../app}/1-2-hybrid-bootstrap/app.module.ts | 4 +- .../app.module.ts | 4 +- .../upgrade_adapter.ts | 0 .../ts/app/1-bootstrap/app.module.ts | 12 + .../ts/app/1-ng-app/app.module.ts | 6 + .../ts/app}/1-to-2-projection/app.module.ts | 0 .../hero-detail.component.ts | 0 .../app/1-to-2-projection/main.controller.ts | 5 + .../ts/app}/1-to-2-providers/app.module.ts | 0 .../1-to-2-providers/hero-detail.component.ts | 0 .../app}/1-to-2-providers/heroes.service.ts | 0 .../app}/1-to-2-providers/upgrade_adapter.ts | 0 .../ts/app}/2-to-1-providers/app.module.ts | 0 .../2-to-1-providers/hero-detail.component.ts | 11 + .../ts/app}/2-to-1-providers/heroes.ts | 0 .../app}/2-to-1-providers/upgrade_adapter.ts | 0 .../ts/app}/2-to-1-transclusion/app.module.ts | 0 .../container.component.ts | 2 +- .../hero-detail.component.ts | 2 +- .../2-to-1-transclusion/upgrade_adapter.ts | 0 .../ts/app}/downgrade-io/app.module.ts | 0 .../downgrade-io/hero-detail.component.ts | 0 .../ts/app}/downgrade-io/main.controller.ts | 2 +- .../ts/app}/downgrade-static/app.module.ts | 0 .../downgrade-static/hero-detail.component.ts | 0 .../ts/app}/hero-detail.directive.ts | 0 .../app/js => upgrade-adapter/ts/app}/hero.ts | 0 .../ts/app}/upgrade-io/app.module.ts | 0 .../ts/app}/upgrade-io/container.component.ts | 4 +- .../app/upgrade-io/hero-detail.component.ts | 17 ++ .../ts/app}/upgrade-io/upgrade_adapter.ts | 0 .../ts/app}/upgrade-static/app.module.ts | 0 .../upgrade-static/container.component.ts | 0 .../upgrade-static/hero-detail.component.ts | 0 .../ts/app}/upgrade-static/upgrade_adapter.ts | 0 .../ts/example-config.json} | 0 .../ts/index-1-2-hybrid-bootstrap.html | 34 +++ ...x-1-2-hybrid-shared-adapter-bootstrap.html | 34 +++ .../ts/index-1-to-2-projection.html | 43 ++++ .../ts/index-1-to-2-providers.html | 37 +++ .../ts/index-2-to-1-providers.html | 37 +++ .../ts/index-2-to-1-transclusion.html | 36 +++ .../upgrade-adapter/ts/index-bootstrap.html | 11 + .../ts/index-downgrade-io.html | 50 ++++ .../ts/index-downgrade-static.html | 38 +++ .../ts}/index-ng-app.html | 6 +- .../upgrade-adapter/ts/index-upgrade-io.html | 36 +++ .../ts/index-upgrade-static.html | 36 +++ .../{upgrade => upgrade-phonecat}/README.md | 0 .../ts/classes/.bowerrc | 0 .../ts/classes/.gitignore | 0 .../ts/classes/app/css}/.gitkeep | 0 .../ts/classes/app/css/animations.css | 0 .../ts/classes/app/css/app.css | 0 .../ts/classes/app/img}/.gitkeep | 0 .../app/img/glyphicons-halflings-white.png | Bin .../classes/app/img/glyphicons-halflings.png | Bin .../ts/classes/app/index.html | 0 .../ts/classes/app/js/app.module.ts | 0 .../classes/app/js/core/checkmark.filter.ts | 0 .../ts/classes/app/js/core/core.module.ts | 0 .../ts/classes/app/js/core/phone.factory.ts | 0 .../phone_detail/phone_detail.controller.ts | 0 .../app/js/phone_detail/phone_detail.html | 0 .../js/phone_detail/phone_detail.module.ts | 0 .../js/phone_list/phone_list.controller.ts | 0 .../classes/app/js/phone_list/phone_list.html | 0 .../app/js/phone_list/phone_list.module.ts | 0 .../ts/classes}/bower.json | 12 +- .../ts/classes/package.1.json | 6 +- .../ts/classes/test/e2e/scenarios.js | 0 .../ts/classes/test/jasmine_matchers.d.ts | 0 .../ts/classes}/test/karma.conf.1.js | 0 .../ts/classes/test/karma_test_shim.js | 0 .../ts/classes/test/protractor-conf.js | 0 .../test/unit/checkmark.filter.spec.ts | 0 .../classes/test/unit/phone.factory.spec.ts | 0 .../test/unit/phone_detail.controller.spec.ts | 0 .../test/unit/phone_list.controller.spec.ts | 0 .../ts/classes/tsconfig.1.json | 0 .../ts/ng2_components/.bowerrc | 0 .../ts/ng2_components/.gitignore | 0 .../ts/ng2_components/app/css}/.gitkeep | 0 .../ts/ng2_components/app/css/animations.css | 0 .../ts/ng2_components/app/css/app.css | 0 .../ts/ng2_components/app/img}/.gitkeep | 0 .../app/img/glyphicons-halflings-white.png | Bin .../app/img/glyphicons-halflings.png | Bin .../ts/ng2_components/app/index.html | 0 .../ts/ng2_components/app/js/app.module.ts | 0 .../app/js/core/checkmark.pipe.ts | 0 .../ng2_components/app/js/core/core.module.ts | 0 .../app/js/core/phones.service.ts | 0 .../app/js/core/upgrade_adapter.ts | 0 .../js/phone_detail/phone_detail.component.ts | 0 .../app/js/phone_detail/phone_detail.html | 0 .../js/phone_detail/phone_detail.module.ts | 0 .../phone_detail_without_pipes.component.ts | 0 .../app/js/phone_list/order_by.pipe.ts | 0 .../app/js/phone_list/phone_filter.pipe.ts | 0 .../app/js/phone_list/phone_list.component.ts | 0 .../app/js/phone_list/phone_list.html | 0 .../app/js/phone_list/phone_list.module.ts | 0 .../phone_list/phone_list_without_async.html | 0 .../phone_list_without_pipes.component.ts | 0 .../phone_list/phone_list_without_pipes.html | 0 .../ts/ng2_components}/bower.json | 12 +- .../ts/ng2_components}/package.1.json | 11 +- .../ts/ng2_components/test/e2e/scenarios.js | 0 .../ts/ng2_components/test/karma.conf.1.js | 0 .../ts/ng2_components/test/karma_test_shim.js | 0 .../ts/ng2_components/test/protractor-conf.js | 0 .../test/unit/checkmark.pipe.spec.ts | 0 .../test/unit/order_by.pipe.spec.ts | 0 .../test/unit/phone_detail.component.spec.ts | 0 .../test/unit/phone_filter.pipe.spec.ts | 0 .../test/unit/phone_list.component.spec.ts | 0 .../test/unit/phones.service.spec.ts | 0 .../ts/ng2_components/tsconfig.1.json | 0 .../ts/ng2_final/.bowerrc | 0 .../ts/ng2_final/.gitignore | 0 .../ts/ng2_final/app/css}/.gitkeep | 0 .../ts/ng2_final/app/css/animations.css | 0 .../ts/ng2_final/app/css/app.css | 0 .../ts/ng2_final/app/img}/.gitkeep | 0 .../app/img/glyphicons-halflings-white.png | Bin .../app/img/glyphicons-halflings.png | Bin .../ts/ng2_final/app/index.html | 0 .../ts/ng2_final/app/js/app.component.ts | 0 .../ng2_final/app/js/core/checkmark.pipe.ts | 0 .../ng2_final/app/js/core/phones.service.ts | 0 .../ng2_final/app/js/core/upgrade_adapter.ts | 0 .../ts/ng2_final/app/js/main.ts | 0 .../js/phone_detail/phone_detail.component.ts | 0 .../app/js/phone_detail/phone_detail.html | 0 .../app/js/phone_list/order_by.pipe.ts | 0 .../app/js/phone_list/phone_filter.pipe.ts | 0 .../app/js/phone_list/phone_list.component.ts | 0 .../app/js/phone_list/phone_list.html | 0 .../ts/ng2_final/bower.json | 12 +- .../ts/ng2_final}/package.1.json | 11 +- .../ts/ng2_final/test/e2e/scenarios.js | 0 .../ts/ng2_final/test/karma.conf.1.js | 0 .../ts/ng2_final/test/karma_test_shim.js | 0 .../ts/ng2_final/test/protractor-conf.js | 0 .../test/unit/checkmark.pipe.spec.ts | 0 .../ng2_final/test/unit/order_by.pipe.spec.ts | 0 .../test/unit/phone_detail.component.spec.ts | 0 .../test/unit/phone_filter.pipe.spec.ts | 0 .../test/unit/phone_list.component.spec.ts | 2 +- .../test/unit/phones.service.spec.ts | 0 .../ts/ng2_final/tsconfig.1.json | 0 .../ts/ng2_initial/.bowerrc | 0 .../ts/ng2_initial/.gitignore | 0 .../ts/ng2_initial/app/css}/.gitkeep | 0 .../ts/ng2_initial/app/css/animations.css | 0 .../ts/ng2_initial/app/css/app.css | 0 .../ts/ng2_initial/app/img}/.gitkeep | 0 .../app/img/glyphicons-halflings-white.png | Bin .../app/img/glyphicons-halflings.png | Bin .../ts/ng2_initial/app/index.html | 0 .../ts/ng2_initial/app/js/app.module.ts | 0 .../app/js/core/checkmark.filter.ts | 0 .../ts/ng2_initial/app/js/core/core.module.ts | 0 .../ng2_initial/app/js/core/phones.service.ts | 0 .../app/js/core/upgrade_adapter.ts | 0 .../phone_detail/phone_detail.controller.ts | 0 .../app/js/phone_detail/phone_detail.html | 0 .../js/phone_detail/phone_detail.module.ts | 0 .../js/phone_list/phone_list.controller.ts | 0 .../app/js/phone_list/phone_list.html | 0 .../app/js/phone_list/phone_list.module.ts | 0 .../ts/ng2_initial/bower.json | 12 +- .../ts/ng2_initial/package.1.json | 11 +- .../ts/ng2_initial/test/e2e/scenarios.js | 0 .../ts/ng2_initial/test/karma.conf.1.js | 0 .../ts/ng2_initial/test/karma_test_shim.js | 0 .../ts/ng2_initial/test/protractor-conf.js | 0 .../test/unit/checkmark.filter.spec.ts | 0 .../test/unit/phone_detail.controller.spec.ts | 0 .../test/unit/phone_list.controller.spec.ts | 0 .../test/unit/phones.service.spec.ts | 0 .../ts/ng2_initial/tsconfig.1.json | 0 .../ts/typescript-conversion/.bowerrc | 0 .../ts/typescript-conversion/.gitignore | 0 .../typescript-conversion/app/css}/.gitkeep | 0 .../app/css/animations.css | 0 .../ts/typescript-conversion/app/css/app.css | 0 .../ts/typescript-conversion/app/img/.gitkeep | 0 .../app/img/glyphicons-halflings-white.png | Bin .../app/img/glyphicons-halflings.png | Bin .../ts/typescript-conversion/app/index.html | 0 .../app/js/app.module.ts | 0 .../app/js/core/checkmark.filter.ts | 0 .../app/js/core/core.module.ts | 0 .../app/js/core/phone.factory.ts | 0 .../phone_detail/phone_detail.controller.ts | 0 .../app/js/phone_detail/phone_detail.html | 0 .../js/phone_detail/phone_detail.module.ts | 0 .../js/phone_list/phone_list.controller.ts | 0 .../app/js/phone_list/phone_list.html | 0 .../app/js/phone_list/phone_list.module.ts | 0 .../ts/typescript-conversion/bower.json | 20 ++ .../ts/typescript-conversion/package.1.json | 6 +- .../test/e2e/scenarios.js | 0 .../test/jasmine_matchers.d.ts | 0 .../test/karma.conf.1.js | 4 +- .../test/karma_test_shim.js | 0 .../test/protractor-conf.js | 0 .../test/unit/checkmark.filter.spec.ts | 0 .../test/unit/phone.factory.spec.ts | 0 .../test/unit/phone_detail.controller.spec.ts | 0 .../test/unit/phone_list.controller.spec.ts | 0 .../ts/typescript-conversion/tsconfig.1.json | 0 public/docs/_examples/upgrade/.gitignore | 3 - .../_examples/upgrade/ts/adapter/.gitignore | 2 - .../app/index-1-2-hybrid-bootstrap.html | 22 -- ...x-1-2-hybrid-shared-adapter-bootstrap.html | 22 -- .../adapter/app/index-1-to-2-projection.html | 32 --- .../adapter/app/index-1-to-2-providers.html | 26 -- .../adapter/app/index-2-to-1-providers.html | 26 -- .../app/index-2-to-1-transclusion.html | 25 -- .../ts/adapter/app/index-bootstrap.html | 11 - .../ts/adapter/app/index-downgrade-io.html | 39 --- .../adapter/app/index-downgrade-static.html | 27 --- .../ts/adapter/app/index-upgrade-io.html | 25 -- .../ts/adapter/app/index-upgrade-static.html | 25 -- .../app/js/1-autobootstrap/app.module.ts | 3 - .../adapter/app/js/1-bootstrap/app.module.ts | 8 - .../ts/adapter/app/js/1-ng-app/app.module.ts | 4 - .../js/1-to-2-projection/main.controller.ts | 5 - .../2-to-1-providers/hero-detail.component.ts | 9 - .../js/upgrade-io/hero-detail.component.ts | 17 -- .../_examples/upgrade/ts/adapter/package.json | 26 -- .../upgrade/ts/adapter/tsconfig.json | 14 -- .../_examples/upgrade/ts/classes/typings.json | 10 - .../upgrade/ts/ng2_components/typings.json | 11 - .../upgrade/ts/ng2_final/typings.json | 6 - .../upgrade/ts/ng2_initial/typings.json | 11 - .../ts/typescript-conversion/bower.json | 20 -- .../ts/typescript-conversion/typings.json | 10 - public/docs/ts/latest/guide/upgrade.jade | 228 +++++++++--------- 245 files changed, 843 insertions(+), 617 deletions(-) create mode 100644 public/docs/_examples/upgrade-adapter/e2e-spec.js create mode 100644 public/docs/_examples/upgrade-adapter/ts/.gitignore rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/1-2-hybrid-bootstrap/app.module.ts (80%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/1-2-hybrid-shared-adapter-bootstrap/app.module.ts (78%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/1-2-hybrid-shared-adapter-bootstrap/upgrade_adapter.ts (100%) create mode 100644 public/docs/_examples/upgrade-adapter/ts/app/1-bootstrap/app.module.ts create mode 100644 public/docs/_examples/upgrade-adapter/ts/app/1-ng-app/app.module.ts rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/1-to-2-projection/app.module.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/1-to-2-projection/hero-detail.component.ts (100%) create mode 100644 public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/main.controller.ts rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/1-to-2-providers/app.module.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/1-to-2-providers/hero-detail.component.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/1-to-2-providers/heroes.service.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/1-to-2-providers/upgrade_adapter.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/2-to-1-providers/app.module.ts (100%) create mode 100644 public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/hero-detail.component.ts rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/2-to-1-providers/heroes.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/2-to-1-providers/upgrade_adapter.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/2-to-1-transclusion/app.module.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/2-to-1-transclusion/container.component.ts (86%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/2-to-1-transclusion/hero-detail.component.ts (83%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/2-to-1-transclusion/upgrade_adapter.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/downgrade-io/app.module.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/downgrade-io/hero-detail.component.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/downgrade-io/main.controller.ts (85%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/downgrade-static/app.module.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/downgrade-static/hero-detail.component.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/hero-detail.directive.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/hero.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/upgrade-io/app.module.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/upgrade-io/container.component.ts (88%) create mode 100644 public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/upgrade-io/upgrade_adapter.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/upgrade-static/app.module.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/upgrade-static/container.component.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/upgrade-static/hero-detail.component.ts (100%) rename public/docs/_examples/{upgrade/ts/adapter/app/js => upgrade-adapter/ts/app}/upgrade-static/upgrade_adapter.ts (100%) rename public/docs/_examples/{upgrade/ts/classes/app/css/.gitkeep => upgrade-adapter/ts/example-config.json} (100%) create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-1-2-hybrid-bootstrap.html create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-1-2-hybrid-shared-adapter-bootstrap.html create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-1-to-2-projection.html create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-1-to-2-providers.html create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-2-to-1-providers.html create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-2-to-1-transclusion.html create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-bootstrap.html create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-downgrade-io.html create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-downgrade-static.html rename public/docs/_examples/{upgrade/ts/adapter/app => upgrade-adapter/ts}/index-ng-app.html (51%) create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-upgrade-io.html create mode 100644 public/docs/_examples/upgrade-adapter/ts/index-upgrade-static.html rename public/docs/_examples/{upgrade => upgrade-phonecat}/README.md (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/.bowerrc (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/.gitignore (100%) rename public/docs/_examples/{upgrade/ts/classes/app/img => upgrade-phonecat/ts/classes/app/css}/.gitkeep (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/css/animations.css (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/css/app.css (100%) rename public/docs/_examples/{upgrade/ts/ng2_components/app/css => upgrade-phonecat/ts/classes/app/img}/.gitkeep (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/img/glyphicons-halflings-white.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/img/glyphicons-halflings.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/index.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/app.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/core/checkmark.filter.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/core/core.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/core/phone.factory.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/phone_detail/phone_detail.controller.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/phone_detail/phone_detail.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/phone_detail/phone_detail.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/phone_list/phone_list.controller.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/phone_list/phone_list.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/app/js/phone_list/phone_list.module.ts (100%) rename public/docs/_examples/{upgrade/ts/ng2_components => upgrade-phonecat/ts/classes}/bower.json (64%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/package.1.json (93%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/test/e2e/scenarios.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/test/jasmine_matchers.d.ts (100%) rename public/docs/_examples/{upgrade/ts/typescript-conversion => upgrade-phonecat/ts/classes}/test/karma.conf.1.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/test/karma_test_shim.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/test/protractor-conf.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/test/unit/checkmark.filter.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/test/unit/phone.factory.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/test/unit/phone_detail.controller.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/test/unit/phone_list.controller.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/classes/tsconfig.1.json (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/.bowerrc (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/.gitignore (100%) rename public/docs/_examples/{upgrade/ts/ng2_components/app/img => upgrade-phonecat/ts/ng2_components/app/css}/.gitkeep (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/css/animations.css (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/css/app.css (100%) rename public/docs/_examples/{upgrade/ts/ng2_final/app/css => upgrade-phonecat/ts/ng2_components/app/img}/.gitkeep (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/img/glyphicons-halflings-white.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/img/glyphicons-halflings.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/index.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/app.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/core/checkmark.pipe.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/core/core.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/core/phones.service.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/core/upgrade_adapter.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_detail/phone_detail.component.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_detail/phone_detail.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_detail/phone_detail.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_detail/phone_detail_without_pipes.component.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_list/order_by.pipe.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_list/phone_filter.pipe.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_list/phone_list.component.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_list/phone_list.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_list/phone_list.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_list/phone_list_without_async.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.component.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.html (100%) rename public/docs/_examples/{upgrade/ts/classes => upgrade-phonecat/ts/ng2_components}/bower.json (64%) rename public/docs/_examples/{upgrade/ts/ng2_final => upgrade-phonecat/ts/ng2_components}/package.1.json (88%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/e2e/scenarios.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/karma.conf.1.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/karma_test_shim.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/protractor-conf.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/unit/checkmark.pipe.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/unit/order_by.pipe.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/unit/phone_detail.component.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/unit/phone_filter.pipe.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/unit/phone_list.component.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/test/unit/phones.service.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_components/tsconfig.1.json (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/.bowerrc (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/.gitignore (100%) rename public/docs/_examples/{upgrade/ts/ng2_final/app/img => upgrade-phonecat/ts/ng2_final/app/css}/.gitkeep (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/css/animations.css (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/css/app.css (100%) rename public/docs/_examples/{upgrade/ts/ng2_initial/app/css => upgrade-phonecat/ts/ng2_final/app/img}/.gitkeep (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/img/glyphicons-halflings-white.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/img/glyphicons-halflings.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/index.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/app.component.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/core/checkmark.pipe.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/core/phones.service.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/core/upgrade_adapter.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/main.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/phone_detail/phone_detail.component.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/phone_detail/phone_detail.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/phone_list/order_by.pipe.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/phone_list/phone_filter.pipe.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/phone_list/phone_list.component.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/app/js/phone_list/phone_list.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/bower.json (64%) rename public/docs/_examples/{upgrade/ts/ng2_components => upgrade-phonecat/ts/ng2_final}/package.1.json (88%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/e2e/scenarios.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/karma.conf.1.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/karma_test_shim.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/protractor-conf.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/unit/checkmark.pipe.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/unit/order_by.pipe.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/unit/phone_detail.component.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/unit/phone_filter.pipe.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/unit/phone_list.component.spec.ts (99%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/test/unit/phones.service.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_final/tsconfig.1.json (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/.bowerrc (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/.gitignore (100%) rename public/docs/_examples/{upgrade/ts/ng2_initial/app/img => upgrade-phonecat/ts/ng2_initial/app/css}/.gitkeep (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/css/animations.css (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/css/app.css (100%) rename public/docs/_examples/{upgrade/ts/typescript-conversion/app/css => upgrade-phonecat/ts/ng2_initial/app/img}/.gitkeep (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/img/glyphicons-halflings-white.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/img/glyphicons-halflings.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/index.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/app.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/core/checkmark.filter.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/core/core.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/core/phones.service.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/core/upgrade_adapter.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/phone_detail/phone_detail.controller.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/phone_detail/phone_detail.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/phone_detail/phone_detail.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/phone_list/phone_list.controller.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/phone_list/phone_list.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/app/js/phone_list/phone_list.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/bower.json (64%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/package.1.json (88%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/test/e2e/scenarios.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/test/karma.conf.1.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/test/karma_test_shim.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/test/protractor-conf.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/test/unit/checkmark.filter.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/test/unit/phone_detail.controller.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/test/unit/phone_list.controller.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/test/unit/phones.service.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/ng2_initial/tsconfig.1.json (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/.bowerrc (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/.gitignore (100%) rename public/docs/_examples/{upgrade/ts/typescript-conversion/app/img => upgrade-phonecat/ts/typescript-conversion/app/css}/.gitkeep (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/css/animations.css (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/css/app.css (100%) create mode 100644 public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/img/.gitkeep rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/img/glyphicons-halflings-white.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/img/glyphicons-halflings.png (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/index.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/app.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/core/checkmark.filter.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/core/core.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/core/phone.factory.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/phone_detail/phone_detail.controller.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/phone_detail/phone_detail.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/phone_detail/phone_detail.module.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/phone_list/phone_list.controller.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/phone_list/phone_list.html (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/app/js/phone_list/phone_list.module.ts (100%) create mode 100644 public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/bower.json rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/package.1.json (93%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/test/e2e/scenarios.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/test/jasmine_matchers.d.ts (100%) rename public/docs/_examples/{upgrade/ts/classes => upgrade-phonecat/ts/typescript-conversion}/test/karma.conf.1.js (96%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/test/karma_test_shim.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/test/protractor-conf.js (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/test/unit/checkmark.filter.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/test/unit/phone.factory.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/test/unit/phone_detail.controller.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/test/unit/phone_list.controller.spec.ts (100%) rename public/docs/_examples/{upgrade => upgrade-phonecat}/ts/typescript-conversion/tsconfig.1.json (100%) delete mode 100644 public/docs/_examples/upgrade/.gitignore delete mode 100644 public/docs/_examples/upgrade/ts/adapter/.gitignore delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-1-2-hybrid-bootstrap.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-1-2-hybrid-shared-adapter-bootstrap.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-1-to-2-projection.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-1-to-2-providers.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-2-to-1-providers.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-2-to-1-transclusion.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-bootstrap.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-downgrade-io.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-downgrade-static.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-upgrade-io.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/index-upgrade-static.html delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/js/1-autobootstrap/app.module.ts delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/js/1-bootstrap/app.module.ts delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/js/1-ng-app/app.module.ts delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-projection/main.controller.ts delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/hero-detail.component.ts delete mode 100644 public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/hero-detail.component.ts delete mode 100644 public/docs/_examples/upgrade/ts/adapter/package.json delete mode 100644 public/docs/_examples/upgrade/ts/adapter/tsconfig.json delete mode 100644 public/docs/_examples/upgrade/ts/classes/typings.json delete mode 100644 public/docs/_examples/upgrade/ts/ng2_components/typings.json delete mode 100644 public/docs/_examples/upgrade/ts/ng2_final/typings.json delete mode 100644 public/docs/_examples/upgrade/ts/ng2_initial/typings.json delete mode 100644 public/docs/_examples/upgrade/ts/typescript-conversion/bower.json delete mode 100644 public/docs/_examples/upgrade/ts/typescript-conversion/typings.json diff --git a/public/docs/_examples/protractor.config.js b/public/docs/_examples/protractor.config.js index 1a128f4ca9..47484d7028 100644 --- a/public/docs/_examples/protractor.config.js +++ b/public/docs/_examples/protractor.config.js @@ -32,7 +32,7 @@ exports.config = { // doesn't seem to work. // resultJsonOutputFile: "foo.json", - + onPrepare: function() { //// SpecReporter //var SpecReporter = require('jasmine-spec-reporter'); @@ -60,6 +60,12 @@ exports.config = { global.describeIf = describeIf; global.itIf = itIf; global.sendKeys = sendKeys; + + // Allow changing bootstrap mode to NG1 for upgrade tests + global.setProtractorToNg1Mode = function() { + browser.useAllAngular2AppRoots = false; + browser.rootEl = 'body'; + }; }, jasmineNodeOpts: { @@ -187,4 +193,3 @@ function Reporter(options) { } } - diff --git a/public/docs/_examples/upgrade-adapter/e2e-spec.js b/public/docs/_examples/upgrade-adapter/e2e-spec.js new file mode 100644 index 0000000000..6e00bfafef --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/e2e-spec.js @@ -0,0 +1,197 @@ +describe('Upgrade Tests', function () { + + // Protractor doesn't support the UpgradeAdapter's asynchronous + // bootstrap with Angular 1 at the moment. Get around it by + // waiting for an element to get `ng-scope` class. + function waitForNg1AsyncBootstrap() { + browser.ignoreSynchronization = true; + browser.driver.wait(function() { + return element(by.css('.ng-scope')).isPresent(); + }, 5000); + } + + describe('NG1 Auto-bootstrap', function() { + + beforeAll(function () { + browser.get('/index-ng-app.html'); + setProtractorToNg1Mode(); + }); + + it('bootstraps as expected', function () { + expect(element(by.css('#message')).getText()).toEqual('Hello world'); + }); + + }); + + describe('NG1 JavaScript Bootstrap', function() { + + beforeAll(function () { + browser.get('/index-bootstrap.html'); + setProtractorToNg1Mode(); + }); + + it('bootstraps as expected', function () { + expect(element(by.css('#message')).getText()).toEqual('Hello world'); + }); + + }); + + describe('NG1-2 Hybrid Bootstrap', function() { + + beforeAll(function () { + browser.get('/index-1-2-hybrid-bootstrap.html'); + setProtractorToNg1Mode(); + }); + + it('bootstraps as expected', function () { + expect(element(by.css('#message')).getText()).toEqual('Hello world'); + }); + + }); + + describe('NG1-2 Hybrid Bootstrap with Shared UpgradeAdapter', function() { + + beforeAll(function () { + browser.get('/index-1-2-hybrid-shared-adapter-bootstrap.html'); + setProtractorToNg1Mode(); + }); + + it('bootstraps as expected', function () { + expect(element(by.css('#message')).getText()).toEqual('Hello world'); + }); + + }); + + describe('Upgraded static component', function() { + + beforeAll(function () { + browser.get('/index-upgrade-static.html'); + setProtractorToNg1Mode(); + waitForNg1AsyncBootstrap(); + }); + + it('renders', function () { + expect(element(by.css('h2')).getText()).toEqual('Windstorm details!'); + }); + + }); + + + describe('Upgraded component with IO', function() { + + beforeAll(function () { + browser.get('/index-upgrade-io.html'); + setProtractorToNg1Mode(); + waitForNg1AsyncBootstrap(); + }); + + it('has inputs', function () { + expect(element(by.css('h2')).getText()).toEqual('Windstorm details!'); + }); + + it('has outputs', function () { + element(by.buttonText('Delete')).click(); + expect(element(by.css('h2')).getText()).toEqual('Ex-Windstorm details!'); + }); + + }); + + + describe('Downgraded static component', function() { + + beforeAll(function () { + browser.get('/index-downgrade-static.html'); + setProtractorToNg1Mode(); + waitForNg1AsyncBootstrap(); + }); + + it('renders', function () { + expect(element(by.css('h2')).getText()).toEqual('Windstorm details!'); + }); + + }); + + describe('Downgraded component with IO', function() { + + beforeAll(function () { + browser.get('/index-downgrade-io.html'); + setProtractorToNg1Mode(); + waitForNg1AsyncBootstrap(); + }); + + it('has inputs', function () { + expect(element.all(by.css('h2')).first().getText()).toEqual('Windstorm details!'); + }); + + it('has outputs', function () { + element.all(by.buttonText('Delete')).first().click(); + expect(element.all(by.css('h2')).first().getText()).toEqual('Ex-Windstorm details!'); + }); + + it('supports ng-repeat', function () { + expect(element.all(by.css('hero-detail')).count()).toBe(3); + }); + + }); + + + describe('Downgraded component with content projection', function() { + + beforeAll(function () { + browser.get('/index-1-to-2-projection.html'); + setProtractorToNg1Mode(); + waitForNg1AsyncBootstrap(); + }); + + it('can be transcluded into', function () { + expect(element(by.css('hero-detail')).getText()).toContain('Specific powers of controlling winds'); + }); + + }); + + + describe('Upgraded component with transclusion', function() { + + beforeAll(function () { + browser.get('/index-2-to-1-transclusion.html'); + setProtractorToNg1Mode(); + waitForNg1AsyncBootstrap(); + }); + + it('can be projected into', function () { + expect(element(by.css('hero-detail')).getText()).toContain('Specific powers of controlling winds'); + }); + + }); + + + describe('Upgrading NG1 Providers', function() { + + beforeAll(function () { + browser.get('/index-1-to-2-providers.html'); + setProtractorToNg1Mode(); + waitForNg1AsyncBootstrap(); + }); + + it('works', function () { + expect(element(by.css('h2')).getText()).toBe('1: Windstorm'); + }); + + }); + + + describe('Downgrading NG2 Providers', function() { + + beforeAll(function () { + browser.get('/index-2-to-1-providers.html'); + setProtractorToNg1Mode(); + waitForNg1AsyncBootstrap(); + }); + + it('works', function () { + expect(element(by.css('h2')).getText()).toBe('1: Windstorm'); + }); + + }); + +}); diff --git a/public/docs/_examples/upgrade-adapter/ts/.gitignore b/public/docs/_examples/upgrade-adapter/ts/.gitignore new file mode 100644 index 0000000000..2cb7d2a2e9 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/.gitignore @@ -0,0 +1 @@ +**/*.js diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-2-hybrid-bootstrap/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-bootstrap/app.module.ts similarity index 80% rename from public/docs/_examples/upgrade/ts/adapter/app/js/1-2-hybrid-bootstrap/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-bootstrap/app.module.ts index fcf7a21bab..903de63b9c 100644 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/1-2-hybrid-bootstrap/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-bootstrap/app.module.ts @@ -6,7 +6,9 @@ import {UpgradeAdapter} from 'angular2/upgrade'; // #enddocregion bootstrap angular.module('heroApp', []) - .run(() => console.log('running')); + .controller('MainCtrl', function() { + this.message = 'Hello world'; + }); // #docregion bootstrap diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-2-hybrid-shared-adapter-bootstrap/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-shared-adapter-bootstrap/app.module.ts similarity index 78% rename from public/docs/_examples/upgrade/ts/adapter/app/js/1-2-hybrid-shared-adapter-bootstrap/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-shared-adapter-bootstrap/app.module.ts index 5a85c9ea1b..39e2e092c4 100644 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/1-2-hybrid-shared-adapter-bootstrap/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-shared-adapter-bootstrap/app.module.ts @@ -6,7 +6,9 @@ import {upgradeAdapter} from './upgrade_adapter'; declare var angular:any; angular.module('heroApp', []) - .run(() => console.log('running')); + .controller('MainCtrl', function() { + this.message = 'Hello world'; + }); // #docregion bootstrap diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-2-hybrid-shared-adapter-bootstrap/upgrade_adapter.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-shared-adapter-bootstrap/upgrade_adapter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/1-2-hybrid-shared-adapter-bootstrap/upgrade_adapter.ts rename to public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-shared-adapter-bootstrap/upgrade_adapter.ts diff --git a/public/docs/_examples/upgrade-adapter/ts/app/1-bootstrap/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-bootstrap/app.module.ts new file mode 100644 index 0000000000..c4b56a5ca6 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/app/1-bootstrap/app.module.ts @@ -0,0 +1,12 @@ +declare var angular:any; + +angular.module('heroApp', []) + .controller('MainCtrl', function() { + this.message = 'Hello world'; + }); + +document.addEventListener('DOMContentLoaded', function() { + // #docregion bootstrap + angular.bootstrap(document.body, ['heroApp'], {strictDi: true}); + // #enddocregion bootstrap +}); diff --git a/public/docs/_examples/upgrade-adapter/ts/app/1-ng-app/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-ng-app/app.module.ts new file mode 100644 index 0000000000..427c605de3 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/app/1-ng-app/app.module.ts @@ -0,0 +1,6 @@ +declare var angular:any; + +angular.module('heroApp', []) + .controller('MainCtrl', function() { + this.message = 'Hello world'; + }); diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-projection/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-projection/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-projection/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-projection/hero-detail.component.ts rename to public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/main.controller.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/main.controller.ts new file mode 100644 index 0000000000..e4754e710d --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/main.controller.ts @@ -0,0 +1,5 @@ +import {Hero} from '../Hero'; + +export class MainController { + hero = new Hero(1, 'Windstorm', 'Specific powers of controlling winds'); +} diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-providers/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-providers/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-providers/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-providers/hero-detail.component.ts rename to public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-providers/heroes.service.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/heroes.service.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-providers/heroes.service.ts rename to public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/heroes.service.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-providers/upgrade_adapter.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/upgrade_adapter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-providers/upgrade_adapter.ts rename to public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/upgrade_adapter.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/app.module.ts diff --git a/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/hero-detail.component.ts new file mode 100644 index 0000000000..36bb5368aa --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/hero-detail.component.ts @@ -0,0 +1,11 @@ +import {Heroes} from './heroes'; + +// #docregion +export const heroDetailComponent = { + template: ` +

{{$ctrl.hero.id}}: {{$ctrl.hero.name}}

+ `, + controller: ['heroes', function(heroes:Heroes) { + this.hero = heroes.get()[0]; + }] +}; diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/heroes.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/heroes.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/heroes.ts rename to public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/heroes.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/upgrade_adapter.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/upgrade_adapter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/upgrade_adapter.ts rename to public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/upgrade_adapter.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/container.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/container.component.ts similarity index 86% rename from public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/container.component.ts rename to public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/container.component.ts index 25921aea75..d60b35ce89 100644 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/container.component.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/container.component.ts @@ -16,5 +16,5 @@ const HeroDetail = upgradeAdapter.upgradeNg1Component('heroDetail'); directives: [HeroDetail] }) export class ContainerComponent { - hero = new Hero(1, 'Windstorm', 'a descr'); + hero = new Hero(1, 'Windstorm', 'Specific powers of controlling winds'); } diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/hero-detail.component.ts similarity index 83% rename from public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/hero-detail.component.ts rename to public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/hero-detail.component.ts index 65a28d049a..a8f842781d 100644 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/hero-detail.component.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/hero-detail.component.ts @@ -4,7 +4,7 @@ export const heroDetailComponent = { hero: '=' }, template: ` -

{{hero.name}}

+

{{$ctrl.hero.name}}

diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/upgrade_adapter.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/upgrade_adapter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-transclusion/upgrade_adapter.ts rename to public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/upgrade_adapter.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-io/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-io/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-io/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-io/hero-detail.component.ts rename to public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-io/main.controller.ts b/public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/main.controller.ts similarity index 85% rename from public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-io/main.controller.ts rename to public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/main.controller.ts index 382b11fc7c..a43140429e 100644 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-io/main.controller.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/main.controller.ts @@ -7,6 +7,6 @@ export class MainController { new Hero(3, 'Spiderman') ] onDelete(hero:Hero) { - console.log('del', hero); + hero.name = 'Ex-' + hero.name; } } diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-static/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/downgrade-static/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-static/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/downgrade-static/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-static/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/downgrade-static/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/downgrade-static/hero-detail.component.ts rename to public/docs/_examples/upgrade-adapter/ts/app/downgrade-static/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/hero-detail.directive.ts b/public/docs/_examples/upgrade-adapter/ts/app/hero-detail.directive.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/hero-detail.directive.ts rename to public/docs/_examples/upgrade-adapter/ts/app/hero-detail.directive.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/hero.ts b/public/docs/_examples/upgrade-adapter/ts/app/hero.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/hero.ts rename to public/docs/_examples/upgrade-adapter/ts/app/hero.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/container.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/container.component.ts similarity index 88% rename from public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/container.component.ts rename to public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/container.component.ts index 495a4d110f..14c2fd77b2 100644 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/container.component.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/container.component.ts @@ -17,7 +17,7 @@ const HeroDetail = upgradeAdapter.upgradeNg1Component('heroDetail'); }) export class ContainerComponent { hero = new Hero(1, 'Windstorm'); - heroDeleted(event) { - console.log(event); + heroDeleted(hero:Hero) { + hero.name = 'Ex-' + hero.name; } } diff --git a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts new file mode 100644 index 0000000000..3295fe9382 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts @@ -0,0 +1,17 @@ +// #docregion +export const heroDetail = { + bindings: { + hero: '=', + deleted: '&' + }, + template: ` +

{{$ctrl.hero.name}} details!

+
{{$ctrl.hero.id}}
+ + `, + controller: function() { + this.onDelete = () => { + this.deleted(this.hero); + }; + } +}; diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/upgrade_adapter.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/upgrade_adapter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/upgrade_adapter.ts rename to public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/upgrade_adapter.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-static/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-static/app.module.ts rename to public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-static/container.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/container.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-static/container.component.ts rename to public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/container.component.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-static/hero-detail.component.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/hero-detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-static/hero-detail.component.ts rename to public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/hero-detail.component.ts diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-static/upgrade_adapter.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/upgrade_adapter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-static/upgrade_adapter.ts rename to public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/upgrade_adapter.ts diff --git a/public/docs/_examples/upgrade/ts/classes/app/css/.gitkeep b/public/docs/_examples/upgrade-adapter/ts/example-config.json similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/css/.gitkeep rename to public/docs/_examples/upgrade-adapter/ts/example-config.json diff --git a/public/docs/_examples/upgrade-adapter/ts/index-1-2-hybrid-bootstrap.html b/public/docs/_examples/upgrade-adapter/ts/index-1-2-hybrid-bootstrap.html new file mode 100644 index 0000000000..f05b5e3f10 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-1-2-hybrid-bootstrap.html @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + +
{{ mainCtrl.message }}
+ + diff --git a/public/docs/_examples/upgrade-adapter/ts/index-1-2-hybrid-shared-adapter-bootstrap.html b/public/docs/_examples/upgrade-adapter/ts/index-1-2-hybrid-shared-adapter-bootstrap.html new file mode 100644 index 0000000000..9c9b9f07eb --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-1-2-hybrid-shared-adapter-bootstrap.html @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + +
{{ mainCtrl.message }}
+ + diff --git a/public/docs/_examples/upgrade-adapter/ts/index-1-to-2-projection.html b/public/docs/_examples/upgrade-adapter/ts/index-1-to-2-projection.html new file mode 100644 index 0000000000..b2790e9060 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-1-to-2-projection.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + +
+ + +

{{mainCtrl.hero.description}}

+
+
+ +
+ + diff --git a/public/docs/_examples/upgrade-adapter/ts/index-1-to-2-providers.html b/public/docs/_examples/upgrade-adapter/ts/index-1-to-2-providers.html new file mode 100644 index 0000000000..f27b20bd58 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-1-to-2-providers.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/docs/_examples/upgrade-adapter/ts/index-2-to-1-providers.html b/public/docs/_examples/upgrade-adapter/ts/index-2-to-1-providers.html new file mode 100644 index 0000000000..421367d4c4 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-2-to-1-providers.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/docs/_examples/upgrade-adapter/ts/index-2-to-1-transclusion.html b/public/docs/_examples/upgrade-adapter/ts/index-2-to-1-transclusion.html new file mode 100644 index 0000000000..8c0d48b978 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-2-to-1-transclusion.html @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/docs/_examples/upgrade-adapter/ts/index-bootstrap.html b/public/docs/_examples/upgrade-adapter/ts/index-bootstrap.html new file mode 100644 index 0000000000..932e1626a2 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-bootstrap.html @@ -0,0 +1,11 @@ + + + + + + + + +
{{ mainCtrl.message }}
+ + diff --git a/public/docs/_examples/upgrade-adapter/ts/index-downgrade-io.html b/public/docs/_examples/upgrade-adapter/ts/index-downgrade-io.html new file mode 100644 index 0000000000..56bc296d74 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-downgrade-io.html @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + +
+ + +
+ +
+ + diff --git a/public/docs/_examples/upgrade-adapter/ts/index-downgrade-static.html b/public/docs/_examples/upgrade-adapter/ts/index-downgrade-static.html new file mode 100644 index 0000000000..851a4a4e93 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-downgrade-static.html @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-ng-app.html b/public/docs/_examples/upgrade-adapter/ts/index-ng-app.html similarity index 51% rename from public/docs/_examples/upgrade/ts/adapter/app/index-ng-app.html rename to public/docs/_examples/upgrade-adapter/ts/index-ng-app.html index f83324ae4c..b6a803dbcd 100644 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-ng-app.html +++ b/public/docs/_examples/upgrade-adapter/ts/index-ng-app.html @@ -2,10 +2,10 @@ + + -
- - +
{{ mainCtrl.message }}
diff --git a/public/docs/_examples/upgrade-adapter/ts/index-upgrade-io.html b/public/docs/_examples/upgrade-adapter/ts/index-upgrade-io.html new file mode 100644 index 0000000000..0ae08e33a7 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-upgrade-io.html @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/docs/_examples/upgrade-adapter/ts/index-upgrade-static.html b/public/docs/_examples/upgrade-adapter/ts/index-upgrade-static.html new file mode 100644 index 0000000000..63f9a8cef7 --- /dev/null +++ b/public/docs/_examples/upgrade-adapter/ts/index-upgrade-static.html @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/docs/_examples/upgrade/README.md b/public/docs/_examples/upgrade-phonecat/README.md similarity index 100% rename from public/docs/_examples/upgrade/README.md rename to public/docs/_examples/upgrade-phonecat/README.md diff --git a/public/docs/_examples/upgrade/ts/classes/.bowerrc b/public/docs/_examples/upgrade-phonecat/ts/classes/.bowerrc similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/.bowerrc rename to public/docs/_examples/upgrade-phonecat/ts/classes/.bowerrc diff --git a/public/docs/_examples/upgrade/ts/classes/.gitignore b/public/docs/_examples/upgrade-phonecat/ts/classes/.gitignore similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/.gitignore rename to public/docs/_examples/upgrade-phonecat/ts/classes/.gitignore diff --git a/public/docs/_examples/upgrade/ts/classes/app/img/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/classes/app/css/.gitkeep similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/img/.gitkeep rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/css/.gitkeep diff --git a/public/docs/_examples/upgrade/ts/classes/app/css/animations.css b/public/docs/_examples/upgrade-phonecat/ts/classes/app/css/animations.css similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/css/animations.css rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/css/animations.css diff --git a/public/docs/_examples/upgrade/ts/classes/app/css/app.css b/public/docs/_examples/upgrade-phonecat/ts/classes/app/css/app.css similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/css/app.css rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/css/app.css diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/css/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/classes/app/img/.gitkeep similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/css/.gitkeep rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/img/.gitkeep diff --git a/public/docs/_examples/upgrade/ts/classes/app/img/glyphicons-halflings-white.png b/public/docs/_examples/upgrade-phonecat/ts/classes/app/img/glyphicons-halflings-white.png similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/img/glyphicons-halflings-white.png rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/img/glyphicons-halflings-white.png diff --git a/public/docs/_examples/upgrade/ts/classes/app/img/glyphicons-halflings.png b/public/docs/_examples/upgrade-phonecat/ts/classes/app/img/glyphicons-halflings.png similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/img/glyphicons-halflings.png rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/img/glyphicons-halflings.png diff --git a/public/docs/_examples/upgrade/ts/classes/app/index.html b/public/docs/_examples/upgrade-phonecat/ts/classes/app/index.html similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/index.html rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/index.html diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/app.module.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/app.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/core/checkmark.filter.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/core/checkmark.filter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/core/checkmark.filter.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/core/checkmark.filter.ts diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/core/core.module.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/core/core.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/core/core.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/core/core.module.ts diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/core/phone.factory.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/core/phone.factory.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/core/phone.factory.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/core/phone.factory.ts diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/phone_detail/phone_detail.controller.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_detail/phone_detail.controller.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/phone_detail/phone_detail.controller.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_detail/phone_detail.controller.ts diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/phone_detail/phone_detail.html b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_detail/phone_detail.html similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/phone_detail/phone_detail.html rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_detail/phone_detail.html diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/phone_detail/phone_detail.module.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_detail/phone_detail.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/phone_detail/phone_detail.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_detail/phone_detail.module.ts diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/phone_list/phone_list.controller.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_list/phone_list.controller.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/phone_list/phone_list.controller.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_list/phone_list.controller.ts diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/phone_list/phone_list.html b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_list/phone_list.html similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/phone_list/phone_list.html rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_list/phone_list.html diff --git a/public/docs/_examples/upgrade/ts/classes/app/js/phone_list/phone_list.module.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_list/phone_list.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/app/js/phone_list/phone_list.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/app/js/phone_list/phone_list.module.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/bower.json b/public/docs/_examples/upgrade-phonecat/ts/classes/bower.json similarity index 64% rename from public/docs/_examples/upgrade/ts/ng2_components/bower.json rename to public/docs/_examples/upgrade-phonecat/ts/classes/bower.json index 3f8ec94656..0179178b02 100644 --- a/public/docs/_examples/upgrade/ts/ng2_components/bower.json +++ b/public/docs/_examples/upgrade-phonecat/ts/classes/bower.json @@ -6,15 +6,15 @@ "license": "MIT", "private": true, "dependencies": { - "angular": "1.5.0", - "angular-mocks": "1.5.0", + "angular": "1.5.3", + "angular-mocks": "1.5.3", "jquery": "~2.1.1", "bootstrap": "~3.1.1", - "angular-route": "1.5.0", - "angular-resource": "1.5.0", - "angular-animate": "1.5.0" + "angular-route": "1.5.3", + "angular-resource": "1.5.3", + "angular-animate": "1.5.3" }, "resolutions": { - "angular": "1.5.0" + "angular": "1.5.3" } } diff --git a/public/docs/_examples/upgrade/ts/classes/package.1.json b/public/docs/_examples/upgrade-phonecat/ts/classes/package.1.json similarity index 93% rename from public/docs/_examples/upgrade/ts/classes/package.1.json rename to public/docs/_examples/upgrade-phonecat/ts/classes/package.1.json index 10fb943821..0b7b72bf3e 100644 --- a/public/docs/_examples/upgrade/ts/classes/package.1.json +++ b/public/docs/_examples/upgrade-phonecat/ts/classes/package.1.json @@ -6,7 +6,7 @@ "repository": "https://github.com/angular/angular-phonecat", "license": "MIT", "dependencies": { - "systemjs": "0.19.22" + "systemjs": "0.19.25" }, "devDependencies": { "karma": "^0.12.16", @@ -18,8 +18,8 @@ "tmp": "0.0.23", "bower": "^1.3.1", "shelljs": "^0.2.6", - "typescript": "1.8.2", - "typings": "^0.6.8" + "typescript": "1.8.9", + "typings": "^0.7.12" }, "scripts": { "postinstall": "bower install", diff --git a/public/docs/_examples/upgrade/ts/classes/test/e2e/scenarios.js b/public/docs/_examples/upgrade-phonecat/ts/classes/test/e2e/scenarios.js similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/test/e2e/scenarios.js rename to public/docs/_examples/upgrade-phonecat/ts/classes/test/e2e/scenarios.js diff --git a/public/docs/_examples/upgrade/ts/classes/test/jasmine_matchers.d.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/test/jasmine_matchers.d.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/test/jasmine_matchers.d.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/test/jasmine_matchers.d.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/test/karma.conf.1.js b/public/docs/_examples/upgrade-phonecat/ts/classes/test/karma.conf.1.js similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/test/karma.conf.1.js rename to public/docs/_examples/upgrade-phonecat/ts/classes/test/karma.conf.1.js diff --git a/public/docs/_examples/upgrade/ts/classes/test/karma_test_shim.js b/public/docs/_examples/upgrade-phonecat/ts/classes/test/karma_test_shim.js similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/test/karma_test_shim.js rename to public/docs/_examples/upgrade-phonecat/ts/classes/test/karma_test_shim.js diff --git a/public/docs/_examples/upgrade/ts/classes/test/protractor-conf.js b/public/docs/_examples/upgrade-phonecat/ts/classes/test/protractor-conf.js similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/test/protractor-conf.js rename to public/docs/_examples/upgrade-phonecat/ts/classes/test/protractor-conf.js diff --git a/public/docs/_examples/upgrade/ts/classes/test/unit/checkmark.filter.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/test/unit/checkmark.filter.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/test/unit/checkmark.filter.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/test/unit/checkmark.filter.spec.ts diff --git a/public/docs/_examples/upgrade/ts/classes/test/unit/phone.factory.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/test/unit/phone.factory.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/test/unit/phone.factory.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/test/unit/phone.factory.spec.ts diff --git a/public/docs/_examples/upgrade/ts/classes/test/unit/phone_detail.controller.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/test/unit/phone_detail.controller.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/test/unit/phone_detail.controller.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/test/unit/phone_detail.controller.spec.ts diff --git a/public/docs/_examples/upgrade/ts/classes/test/unit/phone_list.controller.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/classes/test/unit/phone_list.controller.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/test/unit/phone_list.controller.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/classes/test/unit/phone_list.controller.spec.ts diff --git a/public/docs/_examples/upgrade/ts/classes/tsconfig.1.json b/public/docs/_examples/upgrade-phonecat/ts/classes/tsconfig.1.json similarity index 100% rename from public/docs/_examples/upgrade/ts/classes/tsconfig.1.json rename to public/docs/_examples/upgrade-phonecat/ts/classes/tsconfig.1.json diff --git a/public/docs/_examples/upgrade/ts/ng2_components/.bowerrc b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/.bowerrc similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/.bowerrc rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/.bowerrc diff --git a/public/docs/_examples/upgrade/ts/ng2_components/.gitignore b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/.gitignore similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/.gitignore rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/.gitignore diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/img/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/css/.gitkeep similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/img/.gitkeep rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/css/.gitkeep diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/css/animations.css b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/css/animations.css similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/css/animations.css rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/css/animations.css diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/css/app.css b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/css/app.css similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/css/app.css rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/css/app.css diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/css/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/img/.gitkeep similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/css/.gitkeep rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/img/.gitkeep diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/img/glyphicons-halflings-white.png b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/img/glyphicons-halflings-white.png similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/img/glyphicons-halflings-white.png rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/img/glyphicons-halflings-white.png diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/img/glyphicons-halflings.png b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/img/glyphicons-halflings.png similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/img/glyphicons-halflings.png rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/img/glyphicons-halflings.png diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/index.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/index.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/index.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/index.html diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/app.module.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/app.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/core/checkmark.pipe.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/core/checkmark.pipe.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/core/checkmark.pipe.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/core/checkmark.pipe.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/core/core.module.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/core/core.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/core/core.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/core/core.module.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/core/phones.service.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/core/phones.service.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/core/phones.service.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/core/phones.service.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/core/upgrade_adapter.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/core/upgrade_adapter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/core/upgrade_adapter.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/core/upgrade_adapter.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_detail/phone_detail.component.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_detail/phone_detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_detail/phone_detail.component.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_detail/phone_detail.component.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_detail/phone_detail.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_detail/phone_detail.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_detail/phone_detail.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_detail/phone_detail.html diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_detail/phone_detail.module.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_detail/phone_detail.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_detail/phone_detail.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_detail/phone_detail.module.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_detail/phone_detail_without_pipes.component.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_detail/phone_detail_without_pipes.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_detail/phone_detail_without_pipes.component.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_detail/phone_detail_without_pipes.component.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/order_by.pipe.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/order_by.pipe.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/order_by.pipe.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/order_by.pipe.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_filter.pipe.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_filter.pipe.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_filter.pipe.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_filter.pipe.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list.component.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list.component.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list.component.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list.html diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list.module.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list.module.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list_without_async.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list_without_async.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list_without_async.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list_without_async.html diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.component.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.component.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.component.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/app/js/phone_list/phone_list_without_pipes.html diff --git a/public/docs/_examples/upgrade/ts/classes/bower.json b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/bower.json similarity index 64% rename from public/docs/_examples/upgrade/ts/classes/bower.json rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/bower.json index 3f8ec94656..0179178b02 100644 --- a/public/docs/_examples/upgrade/ts/classes/bower.json +++ b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/bower.json @@ -6,15 +6,15 @@ "license": "MIT", "private": true, "dependencies": { - "angular": "1.5.0", - "angular-mocks": "1.5.0", + "angular": "1.5.3", + "angular-mocks": "1.5.3", "jquery": "~2.1.1", "bootstrap": "~3.1.1", - "angular-route": "1.5.0", - "angular-resource": "1.5.0", - "angular-animate": "1.5.0" + "angular-route": "1.5.3", + "angular-resource": "1.5.3", + "angular-animate": "1.5.3" }, "resolutions": { - "angular": "1.5.0" + "angular": "1.5.3" } } diff --git a/public/docs/_examples/upgrade/ts/ng2_final/package.1.json b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/package.1.json similarity index 88% rename from public/docs/_examples/upgrade/ts/ng2_final/package.1.json rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/package.1.json index b446ef5d92..add11fe0cf 100644 --- a/public/docs/_examples/upgrade/ts/ng2_final/package.1.json +++ b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/package.1.json @@ -6,13 +6,12 @@ "repository": "https://github.com/angular/angular-phonecat", "license": "MIT", "dependencies": { - "angular2": "2.0.0-beta.7", - "es6-promise": "^3.0.2", + "angular2": "2.0.0-beta.14", "es6-shim": "^0.35.0", "reflect-metadata": "0.1.2", "rxjs": "5.0.0-beta.2", - "zone.js": "0.5.15", - "systemjs": "0.19.22" + "zone.js": "0.6.6", + "systemjs": "0.19.25" }, "devDependencies": { "karma": "^0.12.16", @@ -24,8 +23,8 @@ "tmp": "0.0.23", "bower": "^1.3.1", "shelljs": "^0.2.6", - "typescript": "1.8.2", - "typings": "^0.6.8" + "typescript": "1.8.9", + "typings": "^0.7.12" }, "scripts": { "postinstall": "bower install", diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/e2e/scenarios.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/e2e/scenarios.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/e2e/scenarios.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/e2e/scenarios.js diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/karma.conf.1.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/karma.conf.1.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/karma.conf.1.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/karma.conf.1.js diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/karma_test_shim.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/karma_test_shim.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/karma_test_shim.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/karma_test_shim.js diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/protractor-conf.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/protractor-conf.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/protractor-conf.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/protractor-conf.js diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/unit/checkmark.pipe.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/checkmark.pipe.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/unit/checkmark.pipe.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/checkmark.pipe.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/unit/order_by.pipe.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/order_by.pipe.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/unit/order_by.pipe.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/order_by.pipe.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/unit/phone_detail.component.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/phone_detail.component.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/unit/phone_detail.component.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/phone_detail.component.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/unit/phone_filter.pipe.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/phone_filter.pipe.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/unit/phone_filter.pipe.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/phone_filter.pipe.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/unit/phone_list.component.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/phone_list.component.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/unit/phone_list.component.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/phone_list.component.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/test/unit/phones.service.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/phones.service.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/test/unit/phones.service.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/test/unit/phones.service.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_components/tsconfig.1.json b/public/docs/_examples/upgrade-phonecat/ts/ng2_components/tsconfig.1.json similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_components/tsconfig.1.json rename to public/docs/_examples/upgrade-phonecat/ts/ng2_components/tsconfig.1.json diff --git a/public/docs/_examples/upgrade/ts/ng2_final/.bowerrc b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/.bowerrc similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/.bowerrc rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/.bowerrc diff --git a/public/docs/_examples/upgrade/ts/ng2_final/.gitignore b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/.gitignore similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/.gitignore rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/.gitignore diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/img/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/css/.gitkeep similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/img/.gitkeep rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/css/.gitkeep diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/css/animations.css b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/css/animations.css similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/css/animations.css rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/css/animations.css diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/css/app.css b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/css/app.css similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/css/app.css rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/css/app.css diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/css/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/img/.gitkeep similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/css/.gitkeep rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/img/.gitkeep diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/img/glyphicons-halflings-white.png b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/img/glyphicons-halflings-white.png similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/img/glyphicons-halflings-white.png rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/img/glyphicons-halflings-white.png diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/img/glyphicons-halflings.png b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/img/glyphicons-halflings.png similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/img/glyphicons-halflings.png rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/img/glyphicons-halflings.png diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/index.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/index.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/index.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/index.html diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/app.component.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/app.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/app.component.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/app.component.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/core/checkmark.pipe.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/core/checkmark.pipe.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/core/checkmark.pipe.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/core/checkmark.pipe.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/core/phones.service.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/core/phones.service.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/core/phones.service.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/core/phones.service.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/core/upgrade_adapter.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/core/upgrade_adapter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/core/upgrade_adapter.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/core/upgrade_adapter.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/main.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/main.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/main.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/main.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_detail/phone_detail.component.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_detail/phone_detail.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_detail/phone_detail.component.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_detail/phone_detail.component.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_detail/phone_detail.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_detail/phone_detail.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_detail/phone_detail.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_detail/phone_detail.html diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_list/order_by.pipe.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_list/order_by.pipe.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_list/order_by.pipe.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_list/order_by.pipe.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_list/phone_filter.pipe.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_list/phone_filter.pipe.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_list/phone_filter.pipe.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_list/phone_filter.pipe.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_list/phone_list.component.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_list/phone_list.component.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_list/phone_list.component.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_list/phone_list.component.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_list/phone_list.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_list/phone_list.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/app/js/phone_list/phone_list.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/app/js/phone_list/phone_list.html diff --git a/public/docs/_examples/upgrade/ts/ng2_final/bower.json b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/bower.json similarity index 64% rename from public/docs/_examples/upgrade/ts/ng2_final/bower.json rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/bower.json index 3f8ec94656..0179178b02 100644 --- a/public/docs/_examples/upgrade/ts/ng2_final/bower.json +++ b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/bower.json @@ -6,15 +6,15 @@ "license": "MIT", "private": true, "dependencies": { - "angular": "1.5.0", - "angular-mocks": "1.5.0", + "angular": "1.5.3", + "angular-mocks": "1.5.3", "jquery": "~2.1.1", "bootstrap": "~3.1.1", - "angular-route": "1.5.0", - "angular-resource": "1.5.0", - "angular-animate": "1.5.0" + "angular-route": "1.5.3", + "angular-resource": "1.5.3", + "angular-animate": "1.5.3" }, "resolutions": { - "angular": "1.5.0" + "angular": "1.5.3" } } diff --git a/public/docs/_examples/upgrade/ts/ng2_components/package.1.json b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/package.1.json similarity index 88% rename from public/docs/_examples/upgrade/ts/ng2_components/package.1.json rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/package.1.json index b446ef5d92..add11fe0cf 100644 --- a/public/docs/_examples/upgrade/ts/ng2_components/package.1.json +++ b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/package.1.json @@ -6,13 +6,12 @@ "repository": "https://github.com/angular/angular-phonecat", "license": "MIT", "dependencies": { - "angular2": "2.0.0-beta.7", - "es6-promise": "^3.0.2", + "angular2": "2.0.0-beta.14", "es6-shim": "^0.35.0", "reflect-metadata": "0.1.2", "rxjs": "5.0.0-beta.2", - "zone.js": "0.5.15", - "systemjs": "0.19.22" + "zone.js": "0.6.6", + "systemjs": "0.19.25" }, "devDependencies": { "karma": "^0.12.16", @@ -24,8 +23,8 @@ "tmp": "0.0.23", "bower": "^1.3.1", "shelljs": "^0.2.6", - "typescript": "1.8.2", - "typings": "^0.6.8" + "typescript": "1.8.9", + "typings": "^0.7.12" }, "scripts": { "postinstall": "bower install", diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/e2e/scenarios.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/e2e/scenarios.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/test/e2e/scenarios.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/e2e/scenarios.js diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/karma.conf.1.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/karma.conf.1.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/test/karma.conf.1.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/karma.conf.1.js diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/karma_test_shim.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/karma_test_shim.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/test/karma_test_shim.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/karma_test_shim.js diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/protractor-conf.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/protractor-conf.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/test/protractor-conf.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/protractor-conf.js diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/unit/checkmark.pipe.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/checkmark.pipe.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/test/unit/checkmark.pipe.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/checkmark.pipe.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/unit/order_by.pipe.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/order_by.pipe.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/test/unit/order_by.pipe.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/order_by.pipe.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/unit/phone_detail.component.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/phone_detail.component.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/test/unit/phone_detail.component.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/phone_detail.component.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/unit/phone_filter.pipe.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/phone_filter.pipe.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/test/unit/phone_filter.pipe.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/phone_filter.pipe.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/unit/phone_list.component.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/phone_list.component.spec.ts similarity index 99% rename from public/docs/_examples/upgrade/ts/ng2_final/test/unit/phone_list.component.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/phone_list.component.spec.ts index a051e75baf..a05cd640f6 100644 --- a/public/docs/_examples/upgrade/ts/ng2_final/test/unit/phone_list.component.spec.ts +++ b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/phone_list.component.spec.ts @@ -2,7 +2,7 @@ import {provide, ApplicationRef} from 'angular2/core'; import {HTTP_PROVIDERS} from 'angular2/http'; import { - ROUTER_PROVIDERS + ROUTER_PROVIDERS, ROUTER_PRIMARY_COMPONENT, LocationStrategy } from 'angular2/router'; diff --git a/public/docs/_examples/upgrade/ts/ng2_final/test/unit/phones.service.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/phones.service.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/test/unit/phones.service.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/test/unit/phones.service.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_final/tsconfig.1.json b/public/docs/_examples/upgrade-phonecat/ts/ng2_final/tsconfig.1.json similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_final/tsconfig.1.json rename to public/docs/_examples/upgrade-phonecat/ts/ng2_final/tsconfig.1.json diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/.bowerrc b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/.bowerrc similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/.bowerrc rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/.bowerrc diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/.gitignore b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/.gitignore similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/.gitignore rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/.gitignore diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/img/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/css/.gitkeep similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/img/.gitkeep rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/css/.gitkeep diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/css/animations.css b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/css/animations.css similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/css/animations.css rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/css/animations.css diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/css/app.css b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/css/app.css similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/css/app.css rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/css/app.css diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/css/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/img/.gitkeep similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/css/.gitkeep rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/img/.gitkeep diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/img/glyphicons-halflings-white.png b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/img/glyphicons-halflings-white.png similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/img/glyphicons-halflings-white.png rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/img/glyphicons-halflings-white.png diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/img/glyphicons-halflings.png b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/img/glyphicons-halflings.png similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/img/glyphicons-halflings.png rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/img/glyphicons-halflings.png diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/index.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/index.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/index.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/index.html diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/app.module.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/app.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/core/checkmark.filter.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/core/checkmark.filter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/core/checkmark.filter.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/core/checkmark.filter.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/core/core.module.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/core/core.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/core/core.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/core/core.module.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/core/phones.service.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/core/phones.service.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/core/phones.service.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/core/phones.service.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/core/upgrade_adapter.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/core/upgrade_adapter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/core/upgrade_adapter.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/core/upgrade_adapter.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_detail/phone_detail.controller.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_detail/phone_detail.controller.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_detail/phone_detail.controller.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_detail/phone_detail.controller.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_detail/phone_detail.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_detail/phone_detail.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_detail/phone_detail.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_detail/phone_detail.html diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_detail/phone_detail.module.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_detail/phone_detail.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_detail/phone_detail.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_detail/phone_detail.module.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_list/phone_list.controller.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_list/phone_list.controller.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_list/phone_list.controller.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_list/phone_list.controller.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_list/phone_list.html b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_list/phone_list.html similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_list/phone_list.html rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_list/phone_list.html diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_list/phone_list.module.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_list/phone_list.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/app/js/phone_list/phone_list.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/app/js/phone_list/phone_list.module.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/bower.json b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/bower.json similarity index 64% rename from public/docs/_examples/upgrade/ts/ng2_initial/bower.json rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/bower.json index 3f8ec94656..0179178b02 100644 --- a/public/docs/_examples/upgrade/ts/ng2_initial/bower.json +++ b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/bower.json @@ -6,15 +6,15 @@ "license": "MIT", "private": true, "dependencies": { - "angular": "1.5.0", - "angular-mocks": "1.5.0", + "angular": "1.5.3", + "angular-mocks": "1.5.3", "jquery": "~2.1.1", "bootstrap": "~3.1.1", - "angular-route": "1.5.0", - "angular-resource": "1.5.0", - "angular-animate": "1.5.0" + "angular-route": "1.5.3", + "angular-resource": "1.5.3", + "angular-animate": "1.5.3" }, "resolutions": { - "angular": "1.5.0" + "angular": "1.5.3" } } diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/package.1.json b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/package.1.json similarity index 88% rename from public/docs/_examples/upgrade/ts/ng2_initial/package.1.json rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/package.1.json index b446ef5d92..add11fe0cf 100644 --- a/public/docs/_examples/upgrade/ts/ng2_initial/package.1.json +++ b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/package.1.json @@ -6,13 +6,12 @@ "repository": "https://github.com/angular/angular-phonecat", "license": "MIT", "dependencies": { - "angular2": "2.0.0-beta.7", - "es6-promise": "^3.0.2", + "angular2": "2.0.0-beta.14", "es6-shim": "^0.35.0", "reflect-metadata": "0.1.2", "rxjs": "5.0.0-beta.2", - "zone.js": "0.5.15", - "systemjs": "0.19.22" + "zone.js": "0.6.6", + "systemjs": "0.19.25" }, "devDependencies": { "karma": "^0.12.16", @@ -24,8 +23,8 @@ "tmp": "0.0.23", "bower": "^1.3.1", "shelljs": "^0.2.6", - "typescript": "1.8.2", - "typings": "^0.6.8" + "typescript": "1.8.9", + "typings": "^0.7.12" }, "scripts": { "postinstall": "bower install", diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/test/e2e/scenarios.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/e2e/scenarios.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/test/e2e/scenarios.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/e2e/scenarios.js diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/test/karma.conf.1.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/karma.conf.1.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/test/karma.conf.1.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/karma.conf.1.js diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/test/karma_test_shim.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/karma_test_shim.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/test/karma_test_shim.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/karma_test_shim.js diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/test/protractor-conf.js b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/protractor-conf.js similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/test/protractor-conf.js rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/protractor-conf.js diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/test/unit/checkmark.filter.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/unit/checkmark.filter.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/test/unit/checkmark.filter.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/unit/checkmark.filter.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/test/unit/phone_detail.controller.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/unit/phone_detail.controller.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/test/unit/phone_detail.controller.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/unit/phone_detail.controller.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/test/unit/phone_list.controller.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/unit/phone_list.controller.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/test/unit/phone_list.controller.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/unit/phone_list.controller.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/test/unit/phones.service.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/unit/phones.service.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/test/unit/phones.service.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/test/unit/phones.service.spec.ts diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/tsconfig.1.json b/public/docs/_examples/upgrade-phonecat/ts/ng2_initial/tsconfig.1.json similarity index 100% rename from public/docs/_examples/upgrade/ts/ng2_initial/tsconfig.1.json rename to public/docs/_examples/upgrade-phonecat/ts/ng2_initial/tsconfig.1.json diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/.bowerrc b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/.bowerrc similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/.bowerrc rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/.bowerrc diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/.gitignore b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/.gitignore similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/.gitignore rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/.gitignore diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/img/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/css/.gitkeep similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/img/.gitkeep rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/css/.gitkeep diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/css/animations.css b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/css/animations.css similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/css/animations.css rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/css/animations.css diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/css/app.css b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/css/app.css similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/css/app.css rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/css/app.css diff --git a/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/img/.gitkeep b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/img/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/img/glyphicons-halflings-white.png b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/img/glyphicons-halflings-white.png similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/img/glyphicons-halflings-white.png rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/img/glyphicons-halflings-white.png diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/img/glyphicons-halflings.png b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/img/glyphicons-halflings.png similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/img/glyphicons-halflings.png rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/img/glyphicons-halflings.png diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/index.html b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/index.html similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/index.html rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/index.html diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/app.module.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/app.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/app.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/app.module.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/core/checkmark.filter.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/core/checkmark.filter.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/core/checkmark.filter.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/core/checkmark.filter.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/core/core.module.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/core/core.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/core/core.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/core/core.module.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/core/phone.factory.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/core/phone.factory.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/core/phone.factory.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/core/phone.factory.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_detail/phone_detail.controller.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_detail/phone_detail.controller.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_detail/phone_detail.controller.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_detail/phone_detail.controller.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_detail/phone_detail.html b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_detail/phone_detail.html similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_detail/phone_detail.html rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_detail/phone_detail.html diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_detail/phone_detail.module.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_detail/phone_detail.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_detail/phone_detail.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_detail/phone_detail.module.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_list/phone_list.controller.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_list/phone_list.controller.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_list/phone_list.controller.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_list/phone_list.controller.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_list/phone_list.html b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_list/phone_list.html similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_list/phone_list.html rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_list/phone_list.html diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_list/phone_list.module.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_list/phone_list.module.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/app/js/phone_list/phone_list.module.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/app/js/phone_list/phone_list.module.ts diff --git a/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/bower.json b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/bower.json new file mode 100644 index 0000000000..0179178b02 --- /dev/null +++ b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/bower.json @@ -0,0 +1,20 @@ +{ + "name": "angular-phonecat", + "description": "A starter project for AngularJS", + "version": "0.0.0", + "homepage": "https://github.com/angular/angular-phonecat", + "license": "MIT", + "private": true, + "dependencies": { + "angular": "1.5.3", + "angular-mocks": "1.5.3", + "jquery": "~2.1.1", + "bootstrap": "~3.1.1", + "angular-route": "1.5.3", + "angular-resource": "1.5.3", + "angular-animate": "1.5.3" + }, + "resolutions": { + "angular": "1.5.3" + } +} diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/package.1.json b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/package.1.json similarity index 93% rename from public/docs/_examples/upgrade/ts/typescript-conversion/package.1.json rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/package.1.json index cbbef829f1..cec9c37aee 100644 --- a/public/docs/_examples/upgrade/ts/typescript-conversion/package.1.json +++ b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/package.1.json @@ -6,7 +6,7 @@ "repository": "https://github.com/angular/angular-phonecat", "license": "MIT", "dependencies": { - "systemjs": "0.19.22" + "systemjs": "0.19.25" }, "devDependencies": { "bower": "^1.3.1", @@ -18,8 +18,8 @@ "protractor": "^3.0.0", "shelljs": "^0.2.6", "tmp": "0.0.23", - "typescript": "^1.8.2", - "typings": "^0.6.8" + "typescript": "^1.8.9", + "typings": "^0.7.12" }, "scripts": { "postinstall": "bower install", diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/test/e2e/scenarios.js b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/e2e/scenarios.js similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/test/e2e/scenarios.js rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/e2e/scenarios.js diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/test/jasmine_matchers.d.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/jasmine_matchers.d.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/test/jasmine_matchers.d.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/jasmine_matchers.d.ts diff --git a/public/docs/_examples/upgrade/ts/classes/test/karma.conf.1.js b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/karma.conf.1.js similarity index 96% rename from public/docs/_examples/upgrade/ts/classes/test/karma.conf.1.js rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/karma.conf.1.js index 646cdeb55a..8f2e7d178f 100644 --- a/public/docs/_examples/upgrade/ts/classes/test/karma.conf.1.js +++ b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/karma.conf.1.js @@ -32,9 +32,7 @@ module.exports = function(config){ junitReporter : { outputFile: 'test_out/unit.xml', suite: 'unit' - }, - - logLevel: 'LOG_DEBUG' + } }); }; diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/test/karma_test_shim.js b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/karma_test_shim.js similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/test/karma_test_shim.js rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/karma_test_shim.js diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/test/protractor-conf.js b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/protractor-conf.js similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/test/protractor-conf.js rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/protractor-conf.js diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/test/unit/checkmark.filter.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/unit/checkmark.filter.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/test/unit/checkmark.filter.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/unit/checkmark.filter.spec.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/test/unit/phone.factory.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/unit/phone.factory.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/test/unit/phone.factory.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/unit/phone.factory.spec.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/test/unit/phone_detail.controller.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/unit/phone_detail.controller.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/test/unit/phone_detail.controller.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/unit/phone_detail.controller.spec.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/test/unit/phone_list.controller.spec.ts b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/unit/phone_list.controller.spec.ts similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/test/unit/phone_list.controller.spec.ts rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/test/unit/phone_list.controller.spec.ts diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/tsconfig.1.json b/public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/tsconfig.1.json similarity index 100% rename from public/docs/_examples/upgrade/ts/typescript-conversion/tsconfig.1.json rename to public/docs/_examples/upgrade-phonecat/ts/typescript-conversion/tsconfig.1.json diff --git a/public/docs/_examples/upgrade/.gitignore b/public/docs/_examples/upgrade/.gitignore deleted file mode 100644 index 6e8b20ba28..0000000000 --- a/public/docs/_examples/upgrade/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -!karma.conf.js -!package.json -!tsconfig.json diff --git a/public/docs/_examples/upgrade/ts/adapter/.gitignore b/public/docs/_examples/upgrade/ts/adapter/.gitignore deleted file mode 100644 index 0caf9d9ce2..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -app/**/*.js -app/**/*.js.map diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-1-2-hybrid-bootstrap.html b/public/docs/_examples/upgrade/ts/adapter/app/index-1-2-hybrid-bootstrap.html deleted file mode 100644 index 0c6ab1c17a..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-1-2-hybrid-bootstrap.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-1-2-hybrid-shared-adapter-bootstrap.html b/public/docs/_examples/upgrade/ts/adapter/app/index-1-2-hybrid-shared-adapter-bootstrap.html deleted file mode 100644 index 7d2f2748b7..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-1-2-hybrid-shared-adapter-bootstrap.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-1-to-2-projection.html b/public/docs/_examples/upgrade/ts/adapter/app/index-1-to-2-projection.html deleted file mode 100644 index 089a668b26..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-1-to-2-projection.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -
- - -

{{mainCtrl.hero.description}}

-
-
- -
- - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-1-to-2-providers.html b/public/docs/_examples/upgrade/ts/adapter/app/index-1-to-2-providers.html deleted file mode 100644 index 7a14dd0db9..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-1-to-2-providers.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-2-to-1-providers.html b/public/docs/_examples/upgrade/ts/adapter/app/index-2-to-1-providers.html deleted file mode 100644 index 6fa63fae06..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-2-to-1-providers.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-2-to-1-transclusion.html b/public/docs/_examples/upgrade/ts/adapter/app/index-2-to-1-transclusion.html deleted file mode 100644 index f99223054a..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-2-to-1-transclusion.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-bootstrap.html b/public/docs/_examples/upgrade/ts/adapter/app/index-bootstrap.html deleted file mode 100644 index aa89f22ced..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-bootstrap.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -
- - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-downgrade-io.html b/public/docs/_examples/upgrade/ts/adapter/app/index-downgrade-io.html deleted file mode 100644 index caccf11655..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-downgrade-io.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - -
- - -
- - -
- - -
- -
- - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-downgrade-static.html b/public/docs/_examples/upgrade/ts/adapter/app/index-downgrade-static.html deleted file mode 100644 index dbbd02859f..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-downgrade-static.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-upgrade-io.html b/public/docs/_examples/upgrade/ts/adapter/app/index-upgrade-io.html deleted file mode 100644 index aa8a57cc6a..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-upgrade-io.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/index-upgrade-static.html b/public/docs/_examples/upgrade/ts/adapter/app/index-upgrade-static.html deleted file mode 100644 index b0a85ce95c..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/index-upgrade-static.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-autobootstrap/app.module.ts b/public/docs/_examples/upgrade/ts/adapter/app/js/1-autobootstrap/app.module.ts deleted file mode 100644 index aaf3a2ca85..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/1-autobootstrap/app.module.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare var angular:any; - -angular.module('heroApp', []); diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-bootstrap/app.module.ts b/public/docs/_examples/upgrade/ts/adapter/app/js/1-bootstrap/app.module.ts deleted file mode 100644 index cc58467d56..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/1-bootstrap/app.module.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare var angular:any; - -angular.module('heroApp', []) - .run(() => console.log('running')); - -// #docregion bootstrap -angular.bootstrap(document.body, ['heroApp'], {strictDi: true}); -// #enddocregion bootstrap diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-ng-app/app.module.ts b/public/docs/_examples/upgrade/ts/adapter/app/js/1-ng-app/app.module.ts deleted file mode 100644 index 0e6c12fa7a..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/1-ng-app/app.module.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare var angular:any; - -angular.module('heroApp', []) - .run(() => console.log('running')); diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-projection/main.controller.ts b/public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-projection/main.controller.ts deleted file mode 100644 index 11a2c5b38b..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/1-to-2-projection/main.controller.ts +++ /dev/null @@ -1,5 +0,0 @@ -import {Hero} from '../Hero'; - -export class MainController { - hero = new Hero(1, 'Windstorm', 'A descr'); -} diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/hero-detail.component.ts b/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/hero-detail.component.ts deleted file mode 100644 index 8658eb3fa4..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/2-to-1-providers/hero-detail.component.ts +++ /dev/null @@ -1,9 +0,0 @@ -// #docregion -export const heroDetailComponent = { - template: ` -

{{heroDetail.hero.id}}: {{heroDetail.hero.name}}

- `, - controller: ['heroes', function(heroes) { - this.hero = heroes.get()[0]; - }] -}; diff --git a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/hero-detail.component.ts b/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/hero-detail.component.ts deleted file mode 100644 index 5ebc958b18..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/app/js/upgrade-io/hero-detail.component.ts +++ /dev/null @@ -1,17 +0,0 @@ -// #docregion -export const heroDetail = { - bindings: { - hero: '=', - deleted: '&' - }, - template: ` -

{{heroDetail.hero.name}} details!

-
{{heroDetail.hero.id}}
- - `, - controller: function() { - this.onDelete = () => { - this.deleted({hero: this.hero}); - }; - } -}; diff --git a/public/docs/_examples/upgrade/ts/adapter/package.json b/public/docs/_examples/upgrade/ts/adapter/package.json deleted file mode 100644 index 5e84bdf221..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "adapter", - "version": "1.0.0", - "description": "", - "main": "index.js", - "keywords": [], - "author": "", - "license": "ISC", - "devDependencies": { - "typescript": "1.8.2", - "typings": "^0.6.8" - }, - "dependencies": { - "angular2": "2.0.0-beta.7", - "es6-promise": "3.0.2", - "es6-shim": "0.33.13", - "reflect-metadata": "0.1.2", - "rxjs": "5.0.0-beta.2", - "systemjs": "0.19.22", - "zone.js": "0.5.15" - }, - "scripts": { - "tsc": "tsc -p . -w", - "typings": "typings" - } -} diff --git a/public/docs/_examples/upgrade/ts/adapter/tsconfig.json b/public/docs/_examples/upgrade/ts/adapter/tsconfig.json deleted file mode 100644 index c1216959ee..0000000000 --- a/public/docs/_examples/upgrade/ts/adapter/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "system", - "moduleResolution": "node", - "emitDecoratorMetadata": true, - "experimentalDecorators": true - }, - "exclude": [ - "node_modules", - "typings/main.d.ts", - "typings/main" - ] -} diff --git a/public/docs/_examples/upgrade/ts/classes/typings.json b/public/docs/_examples/upgrade/ts/classes/typings.json deleted file mode 100644 index 3925b59066..0000000000 --- a/public/docs/_examples/upgrade/ts/classes/typings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ambientDependencies": { - "angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#3bebbe1baee04846cc46ed7249e8117e4cd7c7ff", - "angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts#77dd2668f85730372aa8e62152e652048e8b6b87", - "angular-resource": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-resource.d.ts#c6609aff88f2c59e4df9adb93df5c7932adfd7b4", - "angular-route": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-route.d.ts#cf172aab99c3139a718aa8e65398a22c53dd7ead", - "jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee", - "jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#cf2a968f0edd7d30773f7d23fe3708fa029d5ab7" - } -} diff --git a/public/docs/_examples/upgrade/ts/ng2_components/typings.json b/public/docs/_examples/upgrade/ts/ng2_components/typings.json deleted file mode 100644 index 8351ca2854..0000000000 --- a/public/docs/_examples/upgrade/ts/ng2_components/typings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "ambientDependencies": { - "angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#3bebbe1baee04846cc46ed7249e8117e4cd7c7ff", - "angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts#77dd2668f85730372aa8e62152e652048e8b6b87", - "angular-resource": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-resource.d.ts#c6609aff88f2c59e4df9adb93df5c7932adfd7b4", - "angular-route": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-route.d.ts#cf172aab99c3139a718aa8e65398a22c53dd7ead", - "jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee", - "jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#cf2a968f0edd7d30773f7d23fe3708fa029d5ab7", - "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2" - } -} diff --git a/public/docs/_examples/upgrade/ts/ng2_final/typings.json b/public/docs/_examples/upgrade/ts/ng2_final/typings.json deleted file mode 100644 index 3b324843f7..0000000000 --- a/public/docs/_examples/upgrade/ts/ng2_final/typings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "ambientDependencies": { - "jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee", - "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2" - } -} diff --git a/public/docs/_examples/upgrade/ts/ng2_initial/typings.json b/public/docs/_examples/upgrade/ts/ng2_initial/typings.json deleted file mode 100644 index 8351ca2854..0000000000 --- a/public/docs/_examples/upgrade/ts/ng2_initial/typings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "ambientDependencies": { - "angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#3bebbe1baee04846cc46ed7249e8117e4cd7c7ff", - "angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts#77dd2668f85730372aa8e62152e652048e8b6b87", - "angular-resource": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-resource.d.ts#c6609aff88f2c59e4df9adb93df5c7932adfd7b4", - "angular-route": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-route.d.ts#cf172aab99c3139a718aa8e65398a22c53dd7ead", - "jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee", - "jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#cf2a968f0edd7d30773f7d23fe3708fa029d5ab7", - "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2" - } -} diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/bower.json b/public/docs/_examples/upgrade/ts/typescript-conversion/bower.json deleted file mode 100644 index 3f8ec94656..0000000000 --- a/public/docs/_examples/upgrade/ts/typescript-conversion/bower.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "angular-phonecat", - "description": "A starter project for AngularJS", - "version": "0.0.0", - "homepage": "https://github.com/angular/angular-phonecat", - "license": "MIT", - "private": true, - "dependencies": { - "angular": "1.5.0", - "angular-mocks": "1.5.0", - "jquery": "~2.1.1", - "bootstrap": "~3.1.1", - "angular-route": "1.5.0", - "angular-resource": "1.5.0", - "angular-animate": "1.5.0" - }, - "resolutions": { - "angular": "1.5.0" - } -} diff --git a/public/docs/_examples/upgrade/ts/typescript-conversion/typings.json b/public/docs/_examples/upgrade/ts/typescript-conversion/typings.json deleted file mode 100644 index 55b63ee44f..0000000000 --- a/public/docs/_examples/upgrade/ts/typescript-conversion/typings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ambientDependencies": { - "angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#3bebbe1baee04846cc46ed7249e8117e4cd7c7ff", - "angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts#77dd2668f85730372aa8e62152e652048e8b6b87", - "angular-resource": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-resource.d.ts#c6609aff88f2c59e4df9adb93df5c7932adfd7b4", - "angular-route": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-route.d.ts#cf172aab99c3139a718aa8e65398a22c53dd7ead", - "jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee", - "jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#470954c4f427e0805a2d633636a7c6aa7170def8" - } -} diff --git a/public/docs/ts/latest/guide/upgrade.jade b/public/docs/ts/latest/guide/upgrade.jade index 5b876af92b..45b61cbffb 100644 --- a/public/docs/ts/latest/guide/upgrade.jade +++ b/public/docs/ts/latest/guide/upgrade.jade @@ -182,7 +182,7 @@ include ../_util-fns An Angular 1 component directive that is fully aligned with the Angular 2 architecture may look something like this: -+makeExample('upgrade/ts/adapter/app/js/hero-detail.directive.ts') ++makeExample('upgrade-adapter/ts/app/hero-detail.directive.ts') :marked Angular 1.5 introduces the [component API](https://docs.angularjs.org/api/ng/type/angular.Module) @@ -197,7 +197,7 @@ include ../_util-fns The component directive example from above looks like this when expressed using the component API: -+makeExample('upgrade/ts/adapter/app/js/upgrade-io/hero-detail.component.ts') ++makeExample('upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts') @@ -400,14 +400,14 @@ figure.image-display Say we have an `ng-app` driven bootstrap such as this one: -+makeExample('upgrade/ts/adapter/app/index-ng-app.html', null, null, {otl: /(ng-app.*ng-strict-di)/}) ++makeExample('upgrade-adapter/ts/index-ng-app.html', null, null, {otl: /(ng-app.*ng-strict-di)/}) :marked We can remove the `ng-app` and `ng-strict-di` directives from the HTML and instead switch to calling `angular.bootstrap` from JavaScript, which will result in the same thing: -+makeExample('upgrade/ts/adapter/app/js/1-bootstrap/app.module.ts', 'bootstrap') ++makeExample('upgrade-adapter/ts/app/1-bootstrap/app.module.ts', 'bootstrap') :marked To then switch the application into hybrid mode, we must first @@ -419,7 +419,7 @@ figure.image-display [angular.bootstrap](https://docs.angularjs.org/api/ng/function/angular.bootstrap) so that it is easy to make the switch: -+makeExample('upgrade/ts/adapter/app/js/1-2-hybrid-bootstrap/app.module.ts', 'bootstrap') ++makeExample('upgrade-adapter/ts/app/1-2-hybrid-bootstrap/app.module.ts', 'bootstrap') :marked At this point we'll be running a hybrid Angular 1+2 application! All the @@ -441,12 +441,12 @@ figure.image-display It'll be useful to have a module for a shared `UpgradeAdapter` instance in the project: -+makeExample('upgrade/ts/adapter/app/js/1-2-hybrid-shared-adapter-bootstrap/upgrade_adapter.ts', null, 'upgrade_adapter.ts') ++makeExample('upgrade-adapter/ts/app/1-2-hybrid-shared-adapter-bootstrap/upgrade_adapter.ts', null, 'upgrade_adapter.ts') :marked This shared instance can then be pulled in to all the modules that need it: -+makeExample('upgrade/ts/adapter/app/js/1-2-hybrid-shared-adapter-bootstrap/app.module.ts', 'bootstrap') ++makeExample('upgrade-adapter/ts/app/1-2-hybrid-shared-adapter-bootstrap/app.module.ts', 'bootstrap') :marked ## Using Angular 2 Components from Angular 1 Code @@ -460,20 +460,20 @@ figure Say we have a simple Angular 2 component that shows information about a hero: -+makeExample('upgrade/ts/adapter/app/js/downgrade-static/hero-detail.component.ts', null, 'hero-detail.component.ts') ++makeExample('upgrade-adapter/ts/app/downgrade-static/hero-detail.component.ts', null, 'hero-detail.component.ts') :marked If we want to use this component from Angular 1, we need to *downgrade* it using the upgrade adapter. What we get when we do that is an Angular 1 *directive*, which we can then register into our Angular 1 module: -+makeExample('upgrade/ts/adapter/app/js/downgrade-static/app.module.ts', 'downgradecomponent') ++makeExample('upgrade-adapter/ts/app/downgrade-static/app.module.ts', 'downgradecomponent') :marked What we have here is an Angular 1 directive called `heroDetail`, which we can use like any other directive in our Angular 1 templates. -+makeExample('upgrade/ts/adapter/app/index-downgrade-static.html', 'usecomponent') ++makeExample('upgrade-adapter/ts/index-downgrade-static.html', 'usecomponent') .alert.is-helpful :marked @@ -487,13 +487,13 @@ figure Angular 2 hero detail component with inputs and outputs might look like this: -+makeExample('upgrade/ts/adapter/app/js/downgrade-io/hero-detail.component.ts', null, 'hero-detail.component.ts') ++makeExample('upgrade-adapter/ts/app/downgrade-io/hero-detail.component.ts', null, 'hero-detail.component.ts') :marked These inputs and outputs can be supplied from the Angular 1 template, and the `UpgradeAdapter` takes care of bridging them over: -+makeExample('upgrade/ts/adapter/app/index-downgrade-io.html', 'usecomponent') ++makeExample('upgrade-adapter/ts/index-downgrade-io.html', 'usecomponent') :marked Note that even though we are in an Angular 1 template, **we're using Angular 2 @@ -508,7 +508,7 @@ figure directives on the element, even though it has Angular 2 binding attributes on it. For example, we can easily make multiple copies of the component using `ng-repeat`: -+makeExample('upgrade/ts/adapter/app/index-downgrade-io.html', 'userepeatedcomponent') ++makeExample('upgrade-adapter/ts/index-downgrade-io.html', 'userepeatedcomponent') :marked ## Using Angular 1 Component Directives from Angular 2 Code @@ -533,7 +533,7 @@ figure A simple example of an upgradable component is one that just has a template and a controller: -+makeExample('upgrade/ts/adapter/app/js/upgrade-static/hero-detail.component.ts', null, 'hero-detail.component.ts') ++makeExample('upgrade-adapter/ts/app/upgrade-static/hero-detail.component.ts', null, 'hero-detail.component.ts') :marked We can *upgrade* this component to Angular 2 using the `UpgradeAdapter`'s @@ -542,7 +542,7 @@ figure want to use it from an Angular 2 component, we list it the in the `directives` metadata of the component and then just use it in the Angular 2 template: -+makeExample('upgrade/ts/adapter/app/js/upgrade-static/container.component.ts', null, 'container.component.ts') ++makeExample('upgrade-adapter/ts/app/upgrade-static/container.component.ts', null, 'container.component.ts') .alert.is-helpful :marked @@ -592,13 +592,13 @@ table As an example, say we have a hero detail Angular 1 component directive with one input and one output: -+makeExample('upgrade/ts/adapter/app/js/upgrade-io/hero-detail.component.ts', null, 'hero-detail.component.ts') ++makeExample('upgrade-adapter/ts/app/upgrade-io/hero-detail.component.ts', null, 'hero-detail.component.ts') :marked We can upgrade this component to Angular 2, and then provide the input and output using Angular 2 template syntax: -+makeExample('upgrade/ts/adapter/app/js/upgrade-io/container.component.ts', null, 'container.component.ts') ++makeExample('upgrade-adapter/ts/app/upgrade-io/container.component.ts', null, 'container.component.ts') :marked @@ -615,14 +615,14 @@ figure Angular 2 components that support content projection make use of an `` tag within them. Here's an example of such a component: -+makeExample('upgrade/ts/adapter/app/js/1-to-2-projection/hero-detail.component.ts', null, 'hero-detail.component.ts') ++makeExample('upgrade-adapter/ts/app/1-to-2-projection/hero-detail.component.ts', null, 'hero-detail.component.ts') :marked When using the component from Angular 1, we can supply contents for it. Just like they would be transcluded in Angular 1, they get projected to the location of the `` tag in Angular 2: -+makeExample('upgrade/ts/adapter/app/index-1-to-2-projection.html', 'usecomponent') ++makeExample('upgrade-adapter/ts/index-1-to-2-projection.html', 'usecomponent') .alert.is-helpful :marked @@ -642,7 +642,7 @@ figure the `ng-transclude` directive in its template to mark the transclusion point: -+makeExample('upgrade/ts/adapter/app/js/2-to-1-transclusion/hero-detail.component.ts', null, 'hero-detail.component.ts') ++makeExample('upgrade-adapter/ts/app/2-to-1-transclusion/hero-detail.component.ts', null, 'hero-detail.component.ts') .alert.is-helpful :marked @@ -654,7 +654,7 @@ figure If we upgrade this component and use it from Angular 2, we can populate the component tag with contents that will then get transcluded: -+makeExample('upgrade/ts/adapter/app/js/2-to-1-transclusion/container.component.ts', null, 'container.component.ts') ++makeExample('upgrade-adapter/ts/app/2-to-1-transclusion/container.component.ts', null, 'container.component.ts') :marked ## Making Angular 1 Dependencies Injectable to Angular 2 @@ -668,19 +668,19 @@ figure Angular 2. This makes it possible to then inject it somewhere in Angular 2 code. For example, we might have a service called `HeroesService` in Angular 1: -+makeExample('upgrade/ts/adapter/app/js/1-to-2-providers/heroes.service.ts', null, 'heroes.service.ts') ++makeExample('upgrade-adapter/ts/app/1-to-2-providers/heroes.service.ts', null, 'heroes.service.ts') :marked We can upgrade the service using the `UpgradeAdapter`'s `upgradeNg1Provider` method by giving it the name of the service. This adds the service into Angular 2's root injector. -+makeExample('upgrade/ts/adapter/app/js/1-to-2-providers/app.module.ts', 'register', 'app.module.ts') ++makeExample('upgrade-adapter/ts/app/1-to-2-providers/app.module.ts', 'register', 'app.module.ts') :marked We can then inject it in Angular 2 using a string token that matches its original name in Angular 1: -+makeExample('upgrade/ts/adapter/app/js/1-to-2-providers/hero-detail.component.ts', null, 'hero-detail.component.ts') ++makeExample('upgrade-adapter/ts/app/1-to-2-providers/hero-detail.component.ts', null, 'hero-detail.component.ts') .alert.is-helpful :marked @@ -700,7 +700,7 @@ figure For example, we might have an Angular 2 service called `Heroes`: -+makeExample('upgrade/ts/adapter/app/js/2-to-1-providers/heroes.ts', null, 'heroes.ts') ++makeExample('upgrade-adapter/ts/app/2-to-1-providers/heroes.ts', null, 'heroes.ts') :marked We can again use the `UpgradeAdapter` for this, but first we need to register `Heroes` @@ -715,12 +715,12 @@ figure then plug the factory into an Angular 1 module, at which point we also choose what the name of the dependency will be in Angular 1: -+makeExample('upgrade/ts/adapter/app/js/2-to-1-providers/app.module.ts', 'register', 'app.module.ts') ++makeExample('upgrade-adapter/ts/app/2-to-1-providers/app.module.ts', 'register', 'app.module.ts') :marked After this, the service is injectable anywhere in our Angular 1 code: -+makeExample('upgrade/ts/adapter/app/js/2-to-1-providers/hero-detail.component.ts', null, 'hero-detail.component.ts') ++makeExample('upgrade-adapter/ts/app/2-to-1-providers/hero-detail.component.ts', null, 'hero-detail.component.ts') .l-main-section :marked @@ -854,7 +854,7 @@ code-example(format=""). Let's also add run scripts for the `tsc` TypeScript compiler and the `typings` tool to `package.json`: -+makeJson('upgrade/ts/typescript-conversion/package.1.json', {paths: 'scripts'}, 'package.json', {otl: /(\"tsc.*|\"typings.*)/g}) ++makeJson('upgrade-phonecat/ts/typescript-conversion/package.1.json', {paths: 'scripts'}, 'package.json', {otl: /(\"tsc.*|\"typings.*)/g}) :marked @@ -877,7 +877,7 @@ code-example(format=""). will *replace* the various `