diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
new file mode 100644
index 0000000000..fa749aa3fd
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE.md
@@ -0,0 +1,7 @@
+**Please do not add issues or pull requests to this repo.**
+We are no longer making changes to documentation in this repository.
+We will no longer process new issues or PRs and we will close them automatically.
+
+**Please post new [issues](https://github.com/angular/angular/issues) and [pull requests](https://github.com/angular/angular/pulls) to the content folder in [https://github.com/angular/angular/tree/master/aio/content](https://github.com/angular/angular/tree/master/aio/content)**.
+
+Be sure to prefix your issue/PR title with "**docs(aio):**"
diff --git a/.github/PULL_REQUEST_TEMPLATE.MD b/.github/PULL_REQUEST_TEMPLATE.MD
new file mode 100644
index 0000000000..c4e15a1d58
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.MD
@@ -0,0 +1,7 @@
+**Please do not add issues or pull requests to this repo.**
+We are no longer making changes to documentation in this repository.
+We will no longer process new issues or PRs and we will close them automatically.
+
+**Please post new [issues](https://github.com/angular/angular/issues) and [pull requests](https://github.com/angular/angular/pulls) to the content folder in [https://github.com/angular/angular/tree/master/aio/content](https://github.com/angular/angular/tree/master/aio/content)**.
+
+Be sure to prefix your issue/PR title with "**docs(aio):**"
diff --git a/.travis.yml b/.travis.yml
index 13ea225958..edba3b37d8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,8 +10,9 @@ env:
- DBUS_SESSION_BUS_ADDRESS=/dev/null
- DISPLAY=:99.0
- CHROME_BIN=chromium-browser
- - LATEST_RELEASE=2.4.0
- - LATEST_RELEASE_BRANCH=2.4.x
+ - LATEST_RELEASE=4.0.0
+ # Temporarily disabled until there is a new release branch for 4.0.0
+ # - LATEST_RELEASE_BRANCH=2.4.x
- TASK_FLAGS="--dgeni-log=warn"
matrix:
# current angular release jobs
@@ -19,8 +20,8 @@ env:
- TASK="run-e2e-tests --fast" SCRIPT=examples-install.sh
- TASK=build-compile SCRIPT=deploy-install.sh WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
# current angular release branch jobs
- - TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH
- - TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
+ # - TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH
+ # - TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
# angular master jobs
- TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=master
- TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=master WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
@@ -29,8 +30,8 @@ matrix:
allow_failures:
# allow current angular release branch and master to fail
# these should be moved to a daily task instead of being ran on every PR
- - env: TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH
- - env: TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
+ # - env: TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH
+ # - env: TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=$LATEST_RELEASE_BRANCH WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
- env: TASK="run-e2e-tests --fast" SCRIPT=examples-install-preview.sh PREVIEW_BRANCH=master
- env: TASK=build-compile SCRIPT=deploy-install-preview.sh PREVIEW_BRANCH=master WAIT="travis_wait 50" POST_SCRIPT="check-docs.sh -v"
before_install:
diff --git a/README.md b/README.md
index 41288b8975..5a68c5c1b7 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,12 @@
+# This angular.io documentation repository is closed and preserved just for archival purposes
+
+**Please post new [issues](https://github.com/angular/angular/issues) and [pull requests](https://github.com/angular/angular/pulls) to the content folder in [https://github.com/angular/angular/tree/master/aio/content](https://github.com/angular/angular/tree/master/aio/content)**.
+
+
+
# Angular.io
+----------
+
[![Build Status][travis-badge]][travis-badge-url]
Angular.io is site for Angular **documentation** .
diff --git a/firebase.json b/firebase.json
index 9a03643e39..4f6e69080f 100644
--- a/firebase.json
+++ b/firebase.json
@@ -46,6 +46,11 @@
"source": "/**/dart/**",
"destination": "https://webdev.dartlang.org/angular?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io",
"type": 301
+ },
+ {
+ "source": "/docs",
+ "destination": "https://angular.io/docs/ts/latest/",
+ "type": 301
}
],
"rewrites": [
diff --git a/gulpfile.js b/gulpfile.js
index 04b4bcbe3d..b6a3900b24 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -46,7 +46,7 @@ var LIVE_EXAMPLES_PATH = path.join(RESOURCES_PATH, 'live-examples');
var STYLES_SOURCE_PATH = path.join(TOOLS_PATH, 'styles-builder/less');
var docShredder = require(path.resolve(TOOLS_PATH, 'doc-shredder/doc-shredder'));
-var exampleZipper = require(path.resolve(TOOLS_PATH, '_example-zipper/exampleZipper'));
+var ExampleZipper = require(path.resolve(TOOLS_PATH, 'example-zipper/exampleZipper'));
var regularPlunker = require(path.resolve(TOOLS_PATH, 'plunker-builder/regularPlunker'));
var embeddedPlunker = require(path.resolve(TOOLS_PATH, 'plunker-builder/embeddedPlunker'));
var fsUtils = require(path.resolve(TOOLS_PATH, 'fs-utils/fsUtils'));
@@ -71,13 +71,13 @@ var _devguideShredJadeOptions = {
var _apiShredOptions = {
lang: 'ts',
- examplesDir: path.join(ANGULAR_PROJECT_PATH, 'modules/@angular/examples'),
+ examplesDir: path.join(ANGULAR_PROJECT_PATH, 'packages/examples'),
fragmentsDir: path.join(DOCS_PATH, '_fragments/_api'),
zipDir: path.join(RESOURCES_PATH, 'zips/api'),
logLevel: _dgeniLogLevel
};
-var _excludePatterns = ['**/node_modules/**', '**/packages/**'];
+var _excludePatterns = ['**/node_modules/**'];
var _excludeMatchers = _excludePatterns.map(function(excludePattern){
return new Minimatch(excludePattern)
@@ -86,6 +86,7 @@ var _excludeMatchers = _excludePatterns.map(function(excludePattern){
var _exampleBoilerplateFiles = [
'src/styles.css',
'src/systemjs.config.js',
+ 'src/systemjs-angular-loader.js',
'src/tsconfig.json',
'bs-config.json',
'bs-config.e2e.json',
@@ -501,7 +502,7 @@ function installExampleAngular() {
var template;
var libs = [
'core', 'common', 'compiler', 'compiler-cli',
- 'platform-browser', 'platform-browser-dynamic',
+ 'platform-browser', 'platform-browser-dynamic', 'platform-server',
'forms', 'http', 'router', 'upgrade'];
var build = argv.build;
@@ -521,13 +522,16 @@ function installExampleAngular() {
: `git+https://github.com/angular/${lib}-builds${build}`;
});
- if (argv.build) { sources.push('@angular/tsc-wrapped');} // tsc-wrapped needed for builds
+ if (argv.build) {
+ sources.push('@angular/tsc-wrapped'); // tsc-wrapped needed for builds
+ sources.push('typescript@2.2.1'); // recent builds need recent TypeScript
+ }
sources.push('@angular/router-deprecated');
gutil.log(`Installing Angular packages from ${build === 'npm' ? 'NPM' : 'BUILD ' + build}`);
- var spawnInfo = spawnExt('rm', ['-rf', 'node_modules/@angular'], { cwd: EXAMPLES_PATH});
+ var spawnInfo = spawnExt('node', ['node_modules/rimraf/bin.js', 'node_modules/@angular'], { cwd: EXAMPLES_PATH});
return spawnInfo.promise
.then(() => {
spawnInfo = spawnExt('npm', ['install', ...sources], {cwd: EXAMPLES_PATH});
@@ -572,9 +576,7 @@ gulp.task('build-and-serve', ['build-docs'], function (cb) {
watchAndSync({localFiles: true}, cb);
});
-gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunkers']);
-// Stop zipping examples Feb 28, 2016
-//gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunkers', '_zip-examples']);
+gulp.task('build-docs', ['build-devguide-docs', 'build-api-docs', 'build-plunkers', '_zip-examples']);
gulp.task('build-api-docs', ['build-js-api-docs', 'build-ts-api-docs']);
@@ -787,8 +789,8 @@ gulp.task('_shred-clean-api', function(cb) {
});
gulp.task('_zip-examples', function() {
- exampleZipper.zipExamples(_devguideShredOptions.examplesDir, _devguideShredOptions.zipDir);
- exampleZipper.zipExamples(_apiShredOptions.examplesDir, _apiShredOptions.zipDir);
+ new ExampleZipper(_devguideShredOptions.examplesDir, _devguideShredOptions.zipDir);
+ // exampleZipper.zipExamples(_apiShredOptions.examplesDir, _apiShredOptions.zipDir);
});
@@ -1198,7 +1200,7 @@ function devGuideExamplesWatch(shredOptions, postShredAction, focus) {
// var excludePattern = '!' + path.join(shredOptions.examplesDir, '**/node_modules/**/*.*');
// gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) {
var ignoreThese = [ '**/node_modules/**', '**/_fragments/**', '**/dist/**',
- '**/dart/.pub/**', '**/dart/build/**', '**/dart/packages/**'];
+ '**/dart/.pub/**', '**/dart/build/**'];
ignoreThese = ignoreThese.concat(_exampleBoilerplateFiles.map((file) => `public/docs/_examples/*/*/${file}`));
var files = globby.sync( [includePattern], { ignore: ignoreThese });
gulp.watch([files], {readDelay: 500}, function (event, done) {
diff --git a/harp.json b/harp.json
index 94a056d753..82e5ca762f 100644
--- a/harp.json
+++ b/harp.json
@@ -520,7 +520,7 @@
"picture": "/resources/images/bios/devversion.jpg",
"website": "http://github.com/DevVersion/",
"twitter": "DevVersion",
- "bio": "Paul is an aspiring 16-year-old developer living in Germany. While attending school, Paul works as a core team member on the Angular Material projects. He is a prolific contributor to all aspects of AngularJS and Angular and hopes to work at Google during his college studies!",
+ "bio": "Paul is a 16-year-old developer living in Germany. While he attends school, Paul works as a core team member on Angular Material. Paul focuses on tooling and building components for Angular.",
"type": "Community"
},
diff --git a/public/_data.json b/public/_data.json
index 29ba83dab4..3b224f69eb 100644
--- a/public/_data.json
+++ b/public/_data.json
@@ -15,10 +15,6 @@
"autoformat": "true"
},
- "news": {
- "title": "News"
- },
-
"events": {
"title": "Events",
"subtitle": "Where we'll be presenting"
diff --git a/public/_includes/_footer.jade b/public/_includes/_footer.jade
index 3a59412711..421c208aa1 100644
--- a/public/_includes/_footer.jade
+++ b/public/_includes/_footer.jade
@@ -41,7 +41,7 @@ div(class="main-footer" data-swiftype-index="false")
ul.text-body
li Events
li Meetups
- li Twitter
+ li Twitter
li GitHub
li Contribute
diff --git a/public/_includes/_hero-home.jade b/public/_includes/_hero-home.jade
index a70f590e36..b413803e3b 100644
--- a/public/_includes/_hero-home.jade
+++ b/public/_includes/_hero-home.jade
@@ -1,13 +1,13 @@
header(class="background-sky l-relative")
.hero.background-superhero-paper.is-large
- img(class="hero-logo" src='/resources/images/logos/angular2/angular.svg')
+ img(class="hero-logo" src='/resources/images/logos/angular/angular.svg')
h1.text-headline #{title}
#{subtitle}
a(href="/docs/ts/latest/quickstart.html" class="hero-cta md-raised button button-large button-plain" md-button) Get Started
announcement-bar
.announcement-bar-slide.clearfix
- img(src="/resources/images/logos/angular2/angular-banner-logo-grey.png" width="64")
- p Test-drive @angular/material: 22 components now in beta.
- a(href="https://material.angular.io/" target="_blank" class="button md-button") Try now
+ img(src="/resources/images/logos/angular/angular-banner-logo-grey.png" width="64")
+ p Angular v4.0 is out! Smaller, faster, no biggie...
+ a(href="http://angularjs.blogspot.com/2017/03/angular-400-now-available.html" target="_blank" class="button md-button") Learn more
diff --git a/public/_includes/_hero.jade b/public/_includes/_hero.jade
index 725e0e8985..bf346a6a3a 100644
--- a/public/_includes/_hero.jade
+++ b/public/_includes/_hero.jade
@@ -15,7 +15,7 @@ if current.path[4] && current.path[3] == 'api'
if current.path.indexOf('cheatsheet') > 0 || current.path[current.path.length-2] === 'api'
- var base = current.path[4] ? '../guide' : './guide';
- - var ngVersion = '(v2.X.Y)';
+ - var ngVersion = '(v4.X.Y)';
header.hero.background-sky
h1(class="hero-title #{textFormat}") #{headerTitle} !{ngVersion}
diff --git a/public/_includes/_main-nav.jade b/public/_includes/_main-nav.jade
index dfc809a289..5ecfcd7108 100644
--- a/public/_includes/_main-nav.jade
+++ b/public/_includes/_main-nav.jade
@@ -10,5 +10,4 @@ nav(data-swiftype-index="false" class="main-nav l-pinned-top l-layer-5", scroll-
li.l-left Features
li.l-left Docs
li.l-left Events
- li.l-left News
li.l-right Get Started
diff --git a/public/_includes/_scripts-include.jade b/public/_includes/_scripts-include.jade
index 937b923242..aee83952ab 100644
--- a/public/_includes/_scripts-include.jade
+++ b/public/_includes/_scripts-include.jade
@@ -36,5 +36,4 @@ script(src="/resources/js/directives/code-pane.js")
script(src="/resources/js/directives/code-example.js")
script(src="/resources/js/directives/if-docs.js")
script(src="/resources/js/directives/live-example.js")
-script(src="/resources/js/directives/ngio-ex-path.js")
-script(src="/resources/js/directives/scroll-y-offset-element.js")
\ No newline at end of file
+script(src="/resources/js/directives/scroll-y-offset-element.js")
diff --git a/public/docs/_examples/.gitignore b/public/docs/_examples/.gitignore
index eedd04da43..3fb5ae8562 100644
--- a/public/docs/_examples/.gitignore
+++ b/public/docs/_examples/.gitignore
@@ -1,6 +1,7 @@
# _boilerplate files
!_boilerplate/*
*/*/src/styles.css
+*/*/src/systemjs-angular-loader.js
*/*/src/systemjs.config.js
*/*/src/tsconfig.json
*/*/bs-config.e2e.json
diff --git a/public/docs/_examples/_boilerplate/package.json b/public/docs/_examples/_boilerplate/package.json
index 5ac9fa9de2..2e4bc19f91 100644
--- a/public/docs/_examples/_boilerplate/package.json
+++ b/public/docs/_examples/_boilerplate/package.json
@@ -38,7 +38,7 @@
"license": "MIT",
"dependencies": {},
"devDependencies": {
- "angular-cli": "^1.0.0-beta.26"
+ "angular-cli": "^1.0.0-rc.0"
},
"repository": {}
}
diff --git a/public/docs/_examples/_boilerplate/src/systemjs-angular-loader.js b/public/docs/_examples/_boilerplate/src/systemjs-angular-loader.js
new file mode 100644
index 0000000000..8b1005444e
--- /dev/null
+++ b/public/docs/_examples/_boilerplate/src/systemjs-angular-loader.js
@@ -0,0 +1,49 @@
+var templateUrlRegex = /templateUrl\s*:(\s*['"`](.*?)['"`]\s*)/gm;
+var stylesRegex = /styleUrls *:(\s*\[[^\]]*?\])/g;
+var stringRegex = /(['`"])((?:[^\\]\\\1|.)*?)\1/g;
+
+module.exports.translate = function(load){
+ if (load.source.indexOf('moduleId') != -1) return load;
+
+ var url = document.createElement('a');
+ url.href = load.address;
+
+ var basePathParts = url.pathname.split('/');
+
+ basePathParts.pop();
+ var basePath = basePathParts.join('/');
+
+ var baseHref = document.createElement('a');
+ baseHref.href = this.baseURL;
+ baseHref = baseHref.pathname;
+
+ if (!baseHref.startsWith('/base/')) { // it is not karma
+ basePath = basePath.replace(baseHref, '');
+ }
+
+ load.source = load.source
+ .replace(templateUrlRegex, function(match, quote, url){
+ var resolvedUrl = url;
+
+ if (url.startsWith('.')) {
+ resolvedUrl = basePath + url.substr(1);
+ }
+
+ return 'templateUrl: "' + resolvedUrl + '"';
+ })
+ .replace(stylesRegex, function(match, relativeUrls) {
+ var urls = [];
+
+ while ((match = stringRegex.exec(relativeUrls)) !== null) {
+ if (match[2].startsWith('.')) {
+ urls.push('"' + basePath + match[2].substr(1) + '"');
+ } else {
+ urls.push('"' + match[2] + '"');
+ }
+ }
+
+ return "styleUrls: [" + urls.join(', ') + "]";
+ });
+
+ return load;
+};
diff --git a/public/docs/_examples/_boilerplate/src/systemjs.config.js b/public/docs/_examples/_boilerplate/src/systemjs.config.js
index 5fa7e9c24f..ea7a3879ac 100644
--- a/public/docs/_examples/_boilerplate/src/systemjs.config.js
+++ b/public/docs/_examples/_boilerplate/src/systemjs.config.js
@@ -11,18 +11,23 @@
// map tells the System loader where to look for things
map: {
// our app is within the app folder
- app: 'app',
+ 'app': 'app',
// angular bundles
+ '@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js',
+ '@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js',
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
+ '@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
'@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js',
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
+ '@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
+ '@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js',
// other libraries
'rxjs': 'npm:rxjs',
@@ -32,7 +37,12 @@
packages: {
app: {
main: './main.js',
- defaultExtension: 'js'
+ defaultExtension: 'js',
+ meta: {
+ './*.js': {
+ loader: 'systemjs-angular-loader.js'
+ }
+ }
},
rxjs: {
defaultExtension: 'js'
diff --git a/public/docs/_examples/_boilerplate/src/systemjs.config.web.build.js b/public/docs/_examples/_boilerplate/src/systemjs.config.web.build.js
index c27642ce02..5774fd8187 100644
--- a/public/docs/_examples/_boilerplate/src/systemjs.config.web.build.js
+++ b/public/docs/_examples/_boilerplate/src/systemjs.config.web.build.js
@@ -35,13 +35,16 @@
// map tells the System loader where to look for things
map: {
// our app is within the app folder
- app: 'app',
+ 'app': 'app',
// angular bundles
+ '@angular/animations': 'ng:animations-builds/master/bundles/animations.umd.js',
+ '@angular/animations/browser': 'ng:animations-builds/master/bundles/animations-browser.umd.js',
'@angular/core': 'ng:core-builds/master/bundles/core.umd.js',
'@angular/common': 'ng:common-builds/master/bundles/common.umd.js',
'@angular/compiler': 'ng:compiler-builds/master/bundles/compiler.umd.js',
'@angular/platform-browser': 'ng:platform-browser-builds/master/bundles/platform-browser.umd.js',
+ '@angular/platform-browser/animations': 'ng:animations-builds/master/bundles/platform-browser-animations.umd.js',
'@angular/platform-browser-dynamic': 'ng:platform-browser-dynamic-builds/master/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'ng:http-builds/master/bundles/http.umd.js',
'@angular/router': 'ng:router-builds/master/bundles/router.umd.js',
@@ -64,14 +67,19 @@
'rxjs': 'npm:rxjs@5.0.1',
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js',
'ts': 'npm:plugin-typescript@5.2.7/lib/plugin.js',
- 'typescript': 'npm:typescript@2.0.10/lib/typescript.js',
+ 'typescript': 'npm:typescript@2.2.1/lib/typescript.js',
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
main: './main.ts',
- defaultExtension: 'ts'
+ defaultExtension: 'ts',
+ meta: {
+ './*.ts': {
+ loader: 'systemjs-angular-loader.js'
+ }
+ }
},
rxjs: {
defaultExtension: 'js'
diff --git a/public/docs/_examples/_boilerplate/src/systemjs.config.web.js b/public/docs/_examples/_boilerplate/src/systemjs.config.web.js
index dc0234a172..376fcdde8a 100644
--- a/public/docs/_examples/_boilerplate/src/systemjs.config.web.js
+++ b/public/docs/_examples/_boilerplate/src/systemjs.config.web.js
@@ -32,13 +32,16 @@
// map tells the System loader where to look for things
map: {
// our app is within the app folder
- app: 'app',
+ 'app': 'app',
// angular bundles
+ '@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js',
+ '@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js',
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
+ '@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
@@ -51,14 +54,19 @@
'rxjs': 'npm:rxjs@5.0.1',
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js',
'ts': 'npm:plugin-typescript@5.2.7/lib/plugin.js',
- 'typescript': 'npm:typescript@2.0.10/lib/typescript.js',
+ 'typescript': 'npm:typescript@2.2.1/lib/typescript.js',
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
main: './main.ts',
- defaultExtension: 'ts'
+ defaultExtension: 'ts',
+ meta: {
+ './*.ts': {
+ loader: 'systemjs-angular-loader.js'
+ }
+ }
},
rxjs: {
defaultExtension: 'js'
diff --git a/public/docs/_examples/animations/ts/src/app/app.module.ts b/public/docs/_examples/animations/ts/src/app/app.module.ts
index 1550034236..0773357c58 100644
--- a/public/docs/_examples/animations/ts/src/app/app.module.ts
+++ b/public/docs/_examples/animations/ts/src/app/app.module.ts
@@ -1,5 +1,8 @@
+// #docregion animations-module
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+// #enddocregion animations-module
import { HeroTeamBuilderComponent } from './hero-team-builder.component';
import { HeroListBasicComponent } from './hero-list-basic.component';
@@ -13,8 +16,10 @@ import { HeroListGroupsComponent } from './hero-list-groups.component';
import { HeroListMultistepComponent } from './hero-list-multistep.component';
import { HeroListTimingsComponent } from './hero-list-timings.component';
+// #docregion animation-module
@NgModule({
- imports: [ BrowserModule ],
+ imports: [ BrowserModule, BrowserAnimationsModule ],
+ // #enddocregion animation-module
declarations: [
HeroTeamBuilderComponent,
HeroListBasicComponent,
diff --git a/public/docs/_examples/animations/ts/src/app/hero-list-auto.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-auto.component.ts
index df7280d3ea..84b25c05de 100644
--- a/public/docs/_examples/animations/ts/src/app/hero-list-auto.component.ts
+++ b/public/docs/_examples/animations/ts/src/app/hero-list-auto.component.ts
@@ -1,17 +1,18 @@
import {
Component,
- Input,
+ Input
+} from '@angular/core';
+import {
trigger,
state,
style,
animate,
transition
-} from '@angular/core';
+} from '@angular/animations';
import { Heroes } from './hero.service';
@Component({
- moduleId: module.id,
selector: 'hero-list-auto',
// #docregion template
template: `
diff --git a/public/docs/_examples/animations/ts/src/app/hero-list-basic.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-basic.component.ts
index a40f9ade94..76d5ba686c 100644
--- a/public/docs/_examples/animations/ts/src/app/hero-list-basic.component.ts
+++ b/public/docs/_examples/animations/ts/src/app/hero-list-basic.component.ts
@@ -3,19 +3,20 @@
// #docregion imports
import {
Component,
- Input,
+ Input
+} from '@angular/core';
+import {
trigger,
state,
style,
- transition,
- animate
-} from '@angular/core';
+ animate,
+ transition
+} from '@angular/animations';
// #enddocregion imports
import { Heroes } from './hero.service';
@Component({
- moduleId: module.id,
selector: 'hero-list-basic',
// #enddocregion
/* The click event calls hero.toggleState(), which
diff --git a/public/docs/_examples/animations/ts/src/app/hero-list-combined-transitions.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-combined-transitions.component.ts
index b40a0c3514..fc654cbcb5 100644
--- a/public/docs/_examples/animations/ts/src/app/hero-list-combined-transitions.component.ts
+++ b/public/docs/_examples/animations/ts/src/app/hero-list-combined-transitions.component.ts
@@ -2,19 +2,20 @@
// #docregion imports
import {
Component,
- Input,
+ Input
+} from '@angular/core';
+import {
trigger,
state,
style,
- transition,
- animate
-} from '@angular/core';
+ animate,
+ transition
+} from '@angular/animations';
// #enddocregion imports
import { Heroes } from './hero.service';
@Component({
- moduleId: module.id,
selector: 'hero-list-combined-transitions',
// #docregion template
template: `
diff --git a/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave-states.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave-states.component.ts
index a88e08f251..c01e182e8b 100644
--- a/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave-states.component.ts
+++ b/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave-states.component.ts
@@ -1,17 +1,18 @@
import {
Component,
- Input,
+ Input
+} from '@angular/core';
+import {
trigger,
state,
style,
animate,
transition
-} from '@angular/core';
+} from '@angular/animations';
import { Heroes } from './hero.service';
@Component({
- moduleId: module.id,
selector: 'hero-list-enter-leave-states',
// #docregion template
template: `
diff --git a/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave.component.ts
index 05944c84f1..f27b5f10e1 100644
--- a/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave.component.ts
+++ b/public/docs/_examples/animations/ts/src/app/hero-list-enter-leave.component.ts
@@ -1,17 +1,18 @@
import {
Component,
- Input,
+ Input
+} from '@angular/core';
+import {
trigger,
state,
style,
animate,
transition
-} from '@angular/core';
+} from '@angular/animations';
import { Heroes } from './hero.service';
@Component({
- moduleId: module.id,
selector: 'hero-list-enter-leave',
// #docregion template
template: `
diff --git a/public/docs/_examples/animations/ts/src/app/hero-list-groups.component.ts b/public/docs/_examples/animations/ts/src/app/hero-list-groups.component.ts
index dda696eca2..12a57292f7 100644
--- a/public/docs/_examples/animations/ts/src/app/hero-list-groups.component.ts
+++ b/public/docs/_examples/animations/ts/src/app/hero-list-groups.component.ts
@@ -1,18 +1,19 @@
import {
Component,
- Input,
+ Input
+} from '@angular/core';
+import {
trigger,
state,
style,
animate,
transition,
group
-} from '@angular/core';
+} from '@angular/animations';
import { Heroes } from './hero.service';
@Component({
- moduleId: module.id,
selector: 'hero-list-groups',
template: `