diff --git a/gulpfile.js b/gulpfile.js
index 7a3e0751f5..c4ed6195a7 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -633,6 +633,7 @@ gulp.task('build-dart-api-docs', ['_shred-api-examples', 'dartdoc'], function()
return buildApiDocsForDart();
});
+// Using the --build flag will use systemjs.config.plunker.build.js (for preview builds)
gulp.task('build-plunkers', ['_copy-example-boilerplate'], function() {
regularPlunker.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log, build: argv.build });
return embeddedPlunker.buildPlunkers(EXAMPLES_PATH, LIVE_EXAMPLES_PATH, { errFn: gutil.log, build: argv.build });
diff --git a/public/docs/_examples/animations/ts/app/hero-list-auto.component.ts b/public/docs/_examples/animations/ts/app/hero-list-auto.component.ts
index 621d144a1f..39d69f2c91 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-auto.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-auto.component.ts
@@ -17,7 +17,7 @@ import { Heroes } from './hero.service';
template: `
-
+ [@shrinkOut]="'in'">
{{hero.name}}
diff --git a/public/docs/_examples/animations/ts/app/hero-list-basic.component.ts b/public/docs/_examples/animations/ts/app/hero-list-basic.component.ts
index 4bd42e1616..c74ef90b8b 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-basic.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-basic.component.ts
@@ -27,7 +27,7 @@ import { Heroes } from './hero.service';
template: `
-
{{hero.name}}
diff --git a/public/docs/_examples/animations/ts/app/hero-list-combined-transitions.component.ts b/public/docs/_examples/animations/ts/app/hero-list-combined-transitions.component.ts
index 09f1137d82..7fe59f9ab9 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-combined-transitions.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-combined-transitions.component.ts
@@ -20,7 +20,7 @@ import { Heroes } from './hero.service';
template: `
-
{{hero.name}}
diff --git a/public/docs/_examples/animations/ts/app/hero-list-enter-leave-states.component.ts b/public/docs/_examples/animations/ts/app/hero-list-enter-leave-states.component.ts
index f9cb6ef31c..6e6fe6cd3f 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-enter-leave-states.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-enter-leave-states.component.ts
@@ -18,7 +18,7 @@ import { Heroes } from './hero.service';
-
+ [@heroState]="hero.state">
{{hero.name}}
diff --git a/public/docs/_examples/animations/ts/app/hero-list-enter-leave.component.ts b/public/docs/_examples/animations/ts/app/hero-list-enter-leave.component.ts
index e9c195d610..a37efb6464 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-enter-leave.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-enter-leave.component.ts
@@ -17,7 +17,7 @@ import { Heroes } from './hero.service';
template: `
-
+ [@flyInOut]="'in'">
{{hero.name}}
diff --git a/public/docs/_examples/animations/ts/app/hero-list-groups.component.ts b/public/docs/_examples/animations/ts/app/hero-list-groups.component.ts
index d6753c1ac6..70fb11d426 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-groups.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-groups.component.ts
@@ -17,7 +17,7 @@ import { Heroes } from './hero.service';
template: `
-
+ [@flyInOut]="'in'">
{{hero.name}}
diff --git a/public/docs/_examples/animations/ts/app/hero-list-inline-styles.component.ts b/public/docs/_examples/animations/ts/app/hero-list-inline-styles.component.ts
index c38750297a..e22bd3121f 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-inline-styles.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-inline-styles.component.ts
@@ -19,7 +19,7 @@ import { Heroes } from './hero.service';
template: `
-
{{hero.name}}
diff --git a/public/docs/_examples/animations/ts/app/hero-list-multistep.component.ts b/public/docs/_examples/animations/ts/app/hero-list-multistep.component.ts
index 0af3dfd167..f0f4c1b3e1 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-multistep.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-multistep.component.ts
@@ -17,7 +17,7 @@ import { Heroes } from './hero.service';
template: `
-
+ [@flyInOut]="'in'">
{{hero.name}}
diff --git a/public/docs/_examples/animations/ts/app/hero-list-timings.component.ts b/public/docs/_examples/animations/ts/app/hero-list-timings.component.ts
index bba68095a6..07fdcfb828 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-timings.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-timings.component.ts
@@ -16,7 +16,7 @@ import { Heroes } from './hero.service';
template: `
-
{{hero.name}}
diff --git a/public/docs/_examples/animations/ts/app/hero-list-twoway.component.ts b/public/docs/_examples/animations/ts/app/hero-list-twoway.component.ts
index 7ec8060ee7..d5c9b2a3dd 100644
--- a/public/docs/_examples/animations/ts/app/hero-list-twoway.component.ts
+++ b/public/docs/_examples/animations/ts/app/hero-list-twoway.component.ts
@@ -20,7 +20,7 @@ import { Heroes } from './hero.service';
template: `
-
{{hero.name}}
diff --git a/public/docs/_examples/architecture/ts/app/backend.service.ts b/public/docs/_examples/architecture/ts/app/backend.service.ts
index a49de94fde..e47cfc8ace 100644
--- a/public/docs/_examples/architecture/ts/app/backend.service.ts
+++ b/public/docs/_examples/architecture/ts/app/backend.service.ts
@@ -13,7 +13,7 @@ const HEROES = [
export class BackendService {
constructor(private logger: Logger) {}
- getAll(type: Type): PromiseLike {
+ getAll(type: Type): PromiseLike {
if (type === Hero) {
// TODO get from the database
return Promise.resolve(HEROES);
diff --git a/public/docs/_examples/cb-component-communication/ts/app/app.module.ts b/public/docs/_examples/cb-component-communication/ts/app/app.module.ts
index 2314524aa7..a008fc5486 100644
--- a/public/docs/_examples/cb-component-communication/ts/app/app.module.ts
+++ b/public/docs/_examples/cb-component-communication/ts/app/app.module.ts
@@ -1,4 +1,4 @@
-import { NgModule } from '@angular/core';
+import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@@ -30,12 +30,17 @@ let directives: any[] = [
VoteTakerComponent
];
+let schemas: any[] = [];
+
// Include Countdown examples
// unless in e2e tests which they break.
if (!/e2e/.test(location.search)) {
console.log('adding countdown timer examples');
directives.push(CountdownLocalVarParentComponent);
directives.push(CountdownViewChildParentComponent);
+} else {
+ // In e2e test use CUSTOM_ELEMENTS_SCHEMA to supress unknown element errors
+ schemas.push(CUSTOM_ELEMENTS_SCHEMA);
}
@NgModule({
@@ -43,6 +48,7 @@ if (!/e2e/.test(location.search)) {
BrowserModule
],
declarations: directives,
- bootstrap: [ AppComponent ]
+ bootstrap: [ AppComponent ],
+ schemas: schemas
})
export class AppModule { }
diff --git a/public/docs/_examples/cb-component-communication/ts/app/main.ts b/public/docs/_examples/cb-component-communication/ts/app/main.ts
index 4f325ca43d..6af7a5b2ae 100644
--- a/public/docs/_examples/cb-component-communication/ts/app/main.ts
+++ b/public/docs/_examples/cb-component-communication/ts/app/main.ts
@@ -1,5 +1,5 @@
-import { browserDynamicPlatform } from '@angular/platform-browser-dynamic';
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
-browserDynamicPlatform().bootstrapModule(AppModule);
+platformBrowserDynamic().bootstrapModule(AppModule);
diff --git a/public/docs/_examples/cb-component-relative-paths/ts/app/app.component.ts b/public/docs/_examples/cb-component-relative-paths/ts/app/app.component.ts
index 7ad076d1a1..8b469886ee 100644
--- a/public/docs/_examples/cb-component-relative-paths/ts/app/app.component.ts
+++ b/public/docs/_examples/cb-component-relative-paths/ts/app/app.component.ts
@@ -1,15 +1,12 @@
// #docregion
import { Component } from '@angular/core';
-import { SomeAbsoluteComponent, SomeRelativeComponent } from './some.component';
-
@Component({
selector: 'my-app',
template:
`Absolute & Component-Relative Paths
- `,
- directives: [SomeAbsoluteComponent, SomeRelativeComponent]
+ `
})
export class AppComponent {}
diff --git a/public/docs/_examples/cb-component-relative-paths/ts/app/app.module.ts b/public/docs/_examples/cb-component-relative-paths/ts/app/app.module.ts
index ab79a37ba7..a13f4b144f 100644
--- a/public/docs/_examples/cb-component-relative-paths/ts/app/app.module.ts
+++ b/public/docs/_examples/cb-component-relative-paths/ts/app/app.module.ts
@@ -2,13 +2,16 @@ import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
+import { SomeAbsoluteComponent, SomeRelativeComponent } from './some.component';
@NgModule({
imports: [
BrowserModule
],
declarations: [
- AppComponent
+ AppComponent,
+ SomeAbsoluteComponent,
+ SomeRelativeComponent
],
bootstrap: [ AppComponent ]
})
diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/parent-finder.component.ts b/public/docs/_examples/cb-dependency-injection/ts/app/parent-finder.component.ts
index d5f87d51bd..c6f208f79b 100644
--- a/public/docs/_examples/cb-dependency-injection/ts/app/parent-finder.component.ts
+++ b/public/docs/_examples/cb-dependency-injection/ts/app/parent-finder.component.ts
@@ -2,7 +2,7 @@
/* tslint:disable:*/
// #docplaster
// #docregion
-import { Component, forwardRef, Optional, provide, SkipSelf } from '@angular/core';
+import { Component, forwardRef, Optional, SkipSelf } from '@angular/core';
// A component base class (see AlexComponent)
export abstract class Base { name = 'Count Basie'; }
diff --git a/public/docs/_examples/cb-form-validation/e2e-spec.ts b/public/docs/_examples/cb-form-validation/e2e-spec.ts.disabled
similarity index 100%
rename from public/docs/_examples/cb-form-validation/e2e-spec.ts
rename to public/docs/_examples/cb-form-validation/e2e-spec.ts.disabled
diff --git a/public/docs/_examples/cb-set-document-title/ts/app/main.ts b/public/docs/_examples/cb-set-document-title/ts/app/main.ts
index ba9421d573..961a226688 100644
--- a/public/docs/_examples/cb-set-document-title/ts/app/main.ts
+++ b/public/docs/_examples/cb-set-document-title/ts/app/main.ts
@@ -1,6 +1,6 @@
// #docregion
-import { browserDynamicPlatform } from '@angular/platform-browser-dynamic';
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
-browserDynamicPlatform().bootstrapModule(AppModule);
+platformBrowserDynamic().bootstrapModule(AppModule);
diff --git a/public/docs/_examples/cb-ts-to-js/e2e-spec.ts b/public/docs/_examples/cb-ts-to-js/e2e-spec.ts
index d356544496..1fc5641bd3 100644
--- a/public/docs/_examples/cb-ts-to-js/e2e-spec.ts
+++ b/public/docs/_examples/cb-ts-to-js/e2e-spec.ts
@@ -25,7 +25,7 @@ describe('TypeScript to Javascript tests', function () {
it('should support optional, attribute, and query injections', function () {
let app = element(by.css('hero-di-inject-additional'));
let h1 = app.element(by.css('h1'));
- let okMsg = app.element(by.css('.ok-msg'));
+ let okMsg = app.element(by.css('p'));
expect(h1.getText()).toBe('Tour of Heroes');
app.element(by.buttonText('OK')).click();
diff --git a/public/docs/_examples/cb-ts-to-js/js/app/hero-di-inject-additional.component.js b/public/docs/_examples/cb-ts-to-js/js/app/hero-di-inject-additional.component.js
index 153e83c06f..fa9684e7a1 100644
--- a/public/docs/_examples/cb-ts-to-js/js/app/hero-di-inject-additional.component.js
+++ b/public/docs/_examples/cb-ts-to-js/js/app/hero-di-inject-additional.component.js
@@ -6,7 +6,7 @@
template:
'{{titlePrefix}} {{title}}
' +
'' +
- ''
+ '{{ msg }}
'
}).Class({
constructor: [
[
@@ -14,20 +14,14 @@
new ng.core.Inject('titlePrefix')
],
new ng.core.Attribute('title'),
- [
- new ng.core.Query('okMsg'),
- ng.core.ElementRef
- ],
- function(titlePrefix, title, msg) {
+ function(titlePrefix, title) {
this.titlePrefix = titlePrefix;
this.title = title;
- this.msg = msg;
+ this.msg = '';
}
],
ok: function() {
- var msgEl =
- this.msg.first.nativeElement;
- msgEl.textContent = 'OK!';
+ this.msg = 'OK!';
}
});
// #enddocregion
@@ -35,7 +29,6 @@
var AppComponent = ng.core.Component({
selector: 'hero-di-inject-additional',
template: '' +
- '' +
''
}).Class({
constructor: function() { }
diff --git a/public/docs/_examples/cb-ts-to-js/js/app/main.js b/public/docs/_examples/cb-ts-to-js/js/app/main.js
index a1ec27c6ad..9091452599 100644
--- a/public/docs/_examples/cb-ts-to-js/js/app/main.js
+++ b/public/docs/_examples/cb-ts-to-js/js/app/main.js
@@ -4,8 +4,8 @@
// #enddocregion appimport
// #docregion ng2import
- var bootstrap =
- ng.platformBrowserDynamic.bootstrap;
+ var platformBrowserDynamic =
+ ng.platformBrowserDynamic.platformBrowserDynamic;
var LocationStrategy =
ng.common.LocationStrategy;
var HashLocationStrategy =
@@ -17,20 +17,17 @@
// #enddocregion appimport
document.addEventListener('DOMContentLoaded', function() {
- var platformBrowserDynamic = ng.platformBrowserDynamic.platformBrowserDynamic();
-
- platformBrowserDynamic.bootstrapModule(app.HeroesModule);
- platformBrowserDynamic.bootstrapModule(app.HeroesDslModule);
- platformBrowserDynamic.bootstrapModule(app.HeroesLifecycleModule);
- platformBrowserDynamic.bootstrapModule(app.HeroesDIModule);
- platformBrowserDynamic.bootstrapModule(app.HeroDIInlineModule);
- platformBrowserDynamic.bootstrapModule(app.HeroesDIInjectModule);
- platformBrowserDynamic.bootstrapModule(app.HeroesDIInjectModule2);
- platformBrowserDynamic.bootstrapModule(app.HeroesDIInjectAdditionalModule);
- platformBrowserDynamic.bootstrapModule(app.HeroesIOModule);
- platformBrowserDynamic.bootstrapModule(app.HeroesHostBindingsModule);
-
- platformBrowserDynamic.bootstrapModule(app.HeroesQueriesModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroesModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroesDslModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroesLifecycleModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroesDIModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroDIInlineModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroesDIInjectModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroesDIInjectModule2);
+ platformBrowserDynamic().bootstrapModule(app.HeroesDIInjectAdditionalModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroesIOModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroesHostBindingsModule);
+ platformBrowserDynamic().bootstrapModule(app.HeroesQueriesModule);
});
// #docregion appimport
diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/hero-di-inject-additional.component.ts b/public/docs/_examples/cb-ts-to-js/ts/app/hero-di-inject-additional.component.ts
index bca1e88cb6..146c6cbd83 100644
--- a/public/docs/_examples/cb-ts-to-js/ts/app/hero-di-inject-additional.component.ts
+++ b/public/docs/_examples/cb-ts-to-js/ts/app/hero-di-inject-additional.component.ts
@@ -1,11 +1,8 @@
import {
Attribute,
Component,
- ElementRef,
Inject,
Optional,
- Query,
- QueryList,
NgModule
} from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
@@ -16,24 +13,21 @@ import { BrowserModule } from '@angular/platform-browser';
template: `
{{titlePrefix}} {{title}}
-
+ {{ msg }}
`
})
class TitleComponent {
+ private msg: string = '';
constructor(
@Inject('titlePrefix')
@Optional()
private titlePrefix: string,
@Attribute('title')
- private title: string,
- @Query('okMsg')
- private msg: QueryList) {
+ private title: string) {
}
ok() {
- let msgEl =
- this.msg.first.nativeElement;
- msgEl.textContent = 'OK!';
+ this.msg = 'OK!';
}
}
// #enddocregion
@@ -41,7 +35,6 @@ class TitleComponent {
@Component({
selector: 'hero-di-inject-additional',
template: `
-
`
})
class AppComponent { }
diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/main.ts b/public/docs/_examples/cb-ts-to-js/ts/app/main.ts
index c4549d7034..92f5af5e1a 100644
--- a/public/docs/_examples/cb-ts-to-js/ts/app/main.ts
+++ b/public/docs/_examples/cb-ts-to-js/ts/app/main.ts
@@ -1,7 +1,6 @@
/* tslint:disable no-unused-variable */
// #docregion ng2import
-import { bootstrap }
- from '@angular/platform-browser-dynamic';
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import {
LocationStrategy,
HashLocationStrategy
@@ -12,8 +11,6 @@ import {
import { HeroComponent } from './hero.component';
// #enddocregion appimport
-import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
-
import { HeroesModule } from './hero.component';
import { HeroesLifecycleModule } from './hero-lifecycle.component';
import { HeroesDIModule } from './hero-di.component';
diff --git a/public/docs/_examples/dependency-injection/ts/app/app.module.ts b/public/docs/_examples/dependency-injection/ts/app/app.module.ts
index 439c9ff276..5ef7678573 100644
--- a/public/docs/_examples/dependency-injection/ts/app/app.module.ts
+++ b/public/docs/_examples/dependency-injection/ts/app/app.module.ts
@@ -7,9 +7,21 @@ import { HeroesComponent } from './heroes/heroes.component';
import { HeroListComponent } from './heroes/hero-list.component';
import { InjectorComponent } from './injector.component';
import { TestComponent } from './test.component';
-import { ProvidersComponent } from './providers.component';
import { APP_CONFIG, HERO_DI_CONFIG } from './app.config';
import { UserService } from './user.service';
+import {
+ ProvidersComponent,
+ Provider1Component,
+ Provider3Component,
+ Provider4Component,
+ Provider5Component,
+ Provider6aComponent,
+ Provider6bComponent,
+ Provider7Component,
+ Provider8Component,
+ Provider9Component,
+ Provider10Component,
+} from './providers.component';
// #docregion ngmodule
@NgModule({
@@ -22,7 +34,18 @@ import { UserService } from './user.service';
HeroesComponent,
HeroListComponent,
InjectorComponent,
- TestComponent
+ TestComponent,
+ ProvidersComponent,
+ Provider1Component,
+ Provider3Component,
+ Provider4Component,
+ Provider5Component,
+ Provider6aComponent,
+ Provider6bComponent,
+ Provider7Component,
+ Provider8Component,
+ Provider9Component,
+ Provider10Component,
],
// #docregion ngmodule-providers
providers: [
diff --git a/public/docs/_examples/dependency-injection/ts/app/main.ts b/public/docs/_examples/dependency-injection/ts/app/main.ts
index 4acb58eab5..0b0458c3b8 100644
--- a/public/docs/_examples/dependency-injection/ts/app/main.ts
+++ b/public/docs/_examples/dependency-injection/ts/app/main.ts
@@ -1,6 +1,6 @@
-import { browserDynamicPlatform } from '@angular/platform-browser-dynamic';
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
// #docregion bootstrap
-browserDynamicPlatform().bootstrapModule(AppModule);
+platformBrowserDynamic().bootstrapModule(AppModule);
// #enddocregion bootstrap
diff --git a/public/docs/_examples/dependency-injection/ts/app/providers.component.ts b/public/docs/_examples/dependency-injection/ts/app/providers.component.ts
index 04089be01d..f8c7ee81fd 100644
--- a/public/docs/_examples/dependency-injection/ts/app/providers.component.ts
+++ b/public/docs/_examples/dependency-injection/ts/app/providers.component.ts
@@ -261,18 +261,6 @@ export class Provider10Component implements OnInit {
- `,
- directives: [
- Provider1Component,
- Provider3Component,
- Provider4Component,
- Provider5Component,
- Provider6aComponent,
- Provider6bComponent,
- Provider7Component,
- Provider8Component,
- Provider9Component,
- Provider10Component,
- ],
+ `
})
export class ProvidersComponent { }
diff --git a/public/docs/_examples/displaying-data/ts/app/main.1.ts b/public/docs/_examples/displaying-data/ts/app/main.1.ts
deleted file mode 100644
index b033da1575..0000000000
--- a/public/docs/_examples/displaying-data/ts/app/main.1.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/* tslint:disable */
-import { bootstrap } from '@angular/platform-browser-dynamic';
-
-import { AppCtorComponent } from './app-ctor.component';
-import { AppComponent as v1 } from './app.component.1';
-import { AppComponent as v2 } from './app.component.2';
-import { AppComponent as v3 } from './app.component.3';
-
-import { AppComponent as final } from './app.component';
-
-// pick one
-// bootstrap(v1);
-// bootstrap(v2);
-// bootstrap(v3);
-bootstrap(final);
-
-// for doc testing
-bootstrap(AppCtorComponent);
diff --git a/public/docs/_examples/homepage-hello-world/ts/index.1.html b/public/docs/_examples/homepage-hello-world/ts/index.1.html
index 1cd0bdf701..849560e3e7 100644
--- a/public/docs/_examples/homepage-hello-world/ts/index.1.html
+++ b/public/docs/_examples/homepage-hello-world/ts/index.1.html
@@ -11,7 +11,7 @@
-
+
diff --git a/public/docs/_examples/homepage-tabs/ts/app/app.module.ts b/public/docs/_examples/homepage-tabs/ts/app/app.module.ts
new file mode 100644
index 0000000000..bd2193755c
--- /dev/null
+++ b/public/docs/_examples/homepage-tabs/ts/app/app.module.ts
@@ -0,0 +1,17 @@
+// #docregion
+import { NgModule } from '@angular/core';
+import { BrowserModule } from '@angular/platform-browser';
+
+import { DiDemoComponent } from './di_demo';
+import { UiTabsComponent, UiPaneDirective } from './ui_tabs';
+
+@NgModule({
+ imports: [ BrowserModule ],
+ declarations: [
+ DiDemoComponent,
+ UiTabsComponent,
+ UiPaneDirective
+ ],
+ bootstrap: [ DiDemoComponent ]
+})
+export class AppModule { }
diff --git a/public/docs/_examples/homepage-tabs/ts/app/di_demo.ts b/public/docs/_examples/homepage-tabs/ts/app/di_demo.ts
index cbf2e6db57..be72ae5c79 100644
--- a/public/docs/_examples/homepage-tabs/ts/app/di_demo.ts
+++ b/public/docs/_examples/homepage-tabs/ts/app/di_demo.ts
@@ -1,8 +1,6 @@
// #docregion
import { Component } from '@angular/core';
-import { UiTabsComponent, UiPaneDirective } from './ui_tabs';
-
class Detail {
title: string;
text: string;
@@ -26,8 +24,7 @@ class Detail {
- `,
- directives: [UiTabsComponent, UiPaneDirective]
+ `
})
export class DiDemoComponent {
details: Detail[] = [];
diff --git a/public/docs/_examples/homepage-tabs/ts/app/main.ts b/public/docs/_examples/homepage-tabs/ts/app/main.ts
index c77f15f7bb..961a226688 100644
--- a/public/docs/_examples/homepage-tabs/ts/app/main.ts
+++ b/public/docs/_examples/homepage-tabs/ts/app/main.ts
@@ -1,6 +1,6 @@
// #docregion
-import { bootstrap } from '@angular/platform-browser-dynamic';
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
-import { DiDemoComponent } from './di_demo';
+import { AppModule } from './app.module';
-bootstrap(DiDemoComponent);
+platformBrowserDynamic().bootstrapModule(AppModule);
diff --git a/public/docs/_examples/homepage-tabs/ts/index.1.html b/public/docs/_examples/homepage-tabs/ts/index.1.html
index d130974098..650735970f 100644
--- a/public/docs/_examples/homepage-tabs/ts/index.1.html
+++ b/public/docs/_examples/homepage-tabs/ts/index.1.html
@@ -12,7 +12,7 @@
-
+
diff --git a/public/docs/_examples/homepage-todo/ts/app/app.module.ts b/public/docs/_examples/homepage-todo/ts/app/app.module.ts
index 344a98f417..a77bb640ab 100644
--- a/public/docs/_examples/homepage-todo/ts/app/app.module.ts
+++ b/public/docs/_examples/homepage-todo/ts/app/app.module.ts
@@ -4,13 +4,19 @@ import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { TodoAppComponent } from './todo_app';
+import { TodoListComponent } from './todo_list';
+import { TodoFormComponent } from './todo_form';
@NgModule({
imports: [
BrowserModule,
FormsModule
],
- declarations: [ TodoAppComponent ],
+ declarations: [
+ TodoAppComponent,
+ TodoListComponent,
+ TodoFormComponent
+ ],
bootstrap: [ TodoAppComponent ]
})
export class AppModule { }
diff --git a/public/docs/_examples/homepage-todo/ts/app/todo_app.ts b/public/docs/_examples/homepage-todo/ts/app/todo_app.ts
index 1c1c7bbb6c..e56bad95b6 100644
--- a/public/docs/_examples/homepage-todo/ts/app/todo_app.ts
+++ b/public/docs/_examples/homepage-todo/ts/app/todo_app.ts
@@ -2,8 +2,6 @@
import { Component } from '@angular/core';
import { Todo } from './todo';
-import { TodoListComponent } from './todo_list';
-import { TodoFormComponent } from './todo_form';
@Component({
selector: 'todo-app',
@@ -14,8 +12,7 @@ import { TodoFormComponent } from './todo_form';
`,
- styles: ['a { cursor: pointer; cursor: hand; }'],
- directives: [TodoListComponent, TodoFormComponent]
+ styles: ['a { cursor: pointer; cursor: hand; }']
})
export class TodoAppComponent {
todos: Todo[] = [
diff --git a/public/docs/_examples/homepage-todo/ts/index.1.html b/public/docs/_examples/homepage-todo/ts/index.1.html
index e27c7f640c..c541fe0f30 100644
--- a/public/docs/_examples/homepage-todo/ts/index.1.html
+++ b/public/docs/_examples/homepage-todo/ts/index.1.html
@@ -12,7 +12,7 @@
-
+
diff --git a/public/docs/_examples/lifecycle-hooks/e2e-spec.ts b/public/docs/_examples/lifecycle-hooks/e2e-spec.ts
index f86218e9a8..156ea3c3a9 100644
--- a/public/docs/_examples/lifecycle-hooks/e2e-spec.ts
+++ b/public/docs/_examples/lifecycle-hooks/e2e-spec.ts
@@ -66,8 +66,8 @@ describe('Lifecycle hooks', function () {
expect(titleEle.getText()).toContain('Windstorm can sing');
changeLogEles.count().then(function(count) {
- // Empirically 5 messages to start
- expect(count).toBeGreaterThan(4, 'should start with some messages');
+ // 3 messages to start
+ expect(count).toEqual(3, 'should start with 3 messages');
logCount = count;
// heroNameInputEle.sendKeys('-foo-').then(function () {
return sendKeys(heroNameInputEle, '-foo-');
@@ -82,8 +82,7 @@ describe('Lifecycle hooks', function () {
return sendKeys(powerInputEle, '-bar-');
}).then(function () {
expect(titleEle.getText()).toContain('Windstorm-foo- can sing-bar-');
- // 7 == 2 previously + length of '-bar-'
- expect(changeLogEles.count()).toEqual(logCount + 11, 'should add 11 more messages');
+ expect(changeLogEles.count()).toEqual(logCount + 6, 'should add 6 more messages');
});
});
diff --git a/public/docs/_examples/lifecycle-hooks/ts/app/do-check.component.ts b/public/docs/_examples/lifecycle-hooks/ts/app/do-check.component.ts
index 1ffdd23ba7..6dfcf8dd43 100644
--- a/public/docs/_examples/lifecycle-hooks/ts/app/do-check.component.ts
+++ b/public/docs/_examples/lifecycle-hooks/ts/app/do-check.component.ts
@@ -1,6 +1,6 @@
/* tslint:disable:forin */
// #docregion
-import { Component, DoCheck, Input, OnChanges, SimpleChange, ViewChild } from '@angular/core';
+import { Component, DoCheck, Input, ViewChild } from '@angular/core';
class Hero {
constructor(public name: string) {}
@@ -21,7 +21,7 @@ class Hero {
'p {background: Yellow; padding: 8px; margin-top: 8px}'
]
})
-export class DoCheckComponent implements DoCheck, OnChanges {
+export class DoCheckComponent implements DoCheck {
@Input() hero: Hero;
@Input() power: string;
@@ -66,16 +66,6 @@ export class DoCheckComponent implements DoCheck, OnChanges {
}
// #enddocregion ng-do-check
- // Copied from OnChangesComponent
- ngOnChanges(changes: {[propertyName: string]: SimpleChange}) {
- for (let propName in changes) {
- let chng = changes[propName];
- let cur = JSON.stringify(chng.currentValue);
- let prev = JSON.stringify(chng.previousValue);
- this.changeLog.push(`OnChanges: ${propName}: currentValue = ${cur}, previousValue = ${prev}`);
- }
- }
-
reset() {
this.changeDetected = true;
this.changeLog.length = 0;
diff --git a/public/docs/_examples/package.json b/public/docs/_examples/package.json
index 8f9f6a335a..4c2cc52859 100644
--- a/public/docs/_examples/package.json
+++ b/public/docs/_examples/package.json
@@ -25,24 +25,22 @@
"author": "",
"license": "ISC",
"dependencies": {
- "@angular/common": "2.0.0-rc.5",
- "@angular/compiler": "2.0.0-rc.5",
- "@angular/compiler-cli": "0.5.0",
- "@angular/core": "2.0.0-rc.5",
- "@angular/forms": "0.3.0",
- "@angular/http": "2.0.0-rc.5",
- "@angular/platform-browser": "2.0.0-rc.5",
- "@angular/platform-browser-dynamic": "2.0.0-rc.5",
- "@angular/router": "3.0.0-rc.1",
- "@angular/router-deprecated": "2.0.0-rc.2",
- "@angular/upgrade": "2.0.0-rc.5",
- "angular2-in-memory-web-api": "0.0.17",
+ "@angular/common": "2.0.0-rc.6",
+ "@angular/compiler": "2.0.0-rc.6",
+ "@angular/core": "2.0.0-rc.6",
+ "@angular/forms": "2.0.0-rc.6",
+ "@angular/http": "2.0.0-rc.6",
+ "@angular/platform-browser": "2.0.0-rc.6",
+ "@angular/platform-browser-dynamic": "2.0.0-rc.6",
+ "@angular/router": "3.0.0-rc.2",
+ "@angular/upgrade": "2.0.0-rc.6",
+ "angular2-in-memory-web-api": "0.0.18",
"bootstrap": "^3.3.6",
- "core-js": "^2.4.0",
+ "core-js": "^2.4.1",
"reflect-metadata": "^0.1.3",
- "rxjs": "5.0.0-beta.6",
+ "rxjs": "5.0.0-beta.11",
"systemjs": "0.19.27",
- "zone.js": "^0.6.12"
+ "zone.js": "^0.6.17"
},
"devDependencies": {
"angular-cli": "^1.0.0-beta.5",
diff --git a/public/docs/_examples/quickstart/js/package.1.json b/public/docs/_examples/quickstart/js/package.1.json
index 5b3ecbc847..971b6b5d2b 100644
--- a/public/docs/_examples/quickstart/js/package.1.json
+++ b/public/docs/_examples/quickstart/js/package.1.json
@@ -7,23 +7,23 @@
},
"license": "ISC",
"dependencies": {
- "@angular/common": "2.0.0-rc.5",
- "@angular/compiler": "2.0.0-rc.5",
- "@angular/core": "2.0.0-rc.5",
- "@angular/forms": "0.3.0",
- "@angular/http": "2.0.0-rc.5",
- "@angular/platform-browser": "2.0.0-rc.5",
- "@angular/platform-browser-dynamic": "2.0.0-rc.5",
- "@angular/router": "3.0.0-rc.1",
+ "@angular/common": "2.0.0-rc.6",
+ "@angular/compiler": "2.0.0-rc.6",
+ "@angular/core": "2.0.0-rc.6",
+ "@angular/forms": "2.0.0-rc.6",
+ "@angular/http": "2.0.0-rc.6",
+ "@angular/platform-browser": "2.0.0-rc.6",
+ "@angular/platform-browser-dynamic": "2.0.0-rc.6",
+ "@angular/router": "3.0.0-rc.2",
"@angular/router-deprecated": "2.0.0-rc.2",
- "@angular/upgrade": "2.0.0-rc.5",
+ "@angular/upgrade": "2.0.0-rc.6",
- "core-js": "^2.4.0",
+ "core-js": "^2.4.1",
"reflect-metadata": "0.1.3",
- "rxjs": "5.0.0-beta.6",
- "zone.js": "0.6.12",
+ "rxjs": "5.0.0-beta.11",
+ "zone.js": "0.6.17",
- "angular2-in-memory-web-api": "0.0.15",
+ "angular2-in-memory-web-api": "0.0.18",
"bootstrap": "^3.3.6"
},
"devDependencies": {
diff --git a/public/docs/_examples/quickstart/ts/package.1.json b/public/docs/_examples/quickstart/ts/package.1.json
index 244ca9514d..1e04bc36bb 100644
--- a/public/docs/_examples/quickstart/ts/package.1.json
+++ b/public/docs/_examples/quickstart/ts/package.1.json
@@ -11,24 +11,24 @@
},
"license": "ISC",
"dependencies": {
- "@angular/common": "2.0.0-rc.5",
- "@angular/compiler": "2.0.0-rc.5",
+ "@angular/common": "2.0.0-rc.6",
+ "@angular/compiler": "2.0.0-rc.6",
"@angular/compiler-cli": "0.5.0",
- "@angular/core": "2.0.0-rc.5",
- "@angular/forms": "0.3.0",
- "@angular/http": "2.0.0-rc.5",
- "@angular/platform-browser": "2.0.0-rc.5",
- "@angular/platform-browser-dynamic": "2.0.0-rc.5",
- "@angular/router": "3.0.0-rc.1",
- "@angular/upgrade": "2.0.0-rc.5",
+ "@angular/core": "2.0.0-rc.6",
+ "@angular/forms": "2.0.0-rc.6",
+ "@angular/http": "2.0.0-rc.6",
+ "@angular/platform-browser": "2.0.0-rc.6",
+ "@angular/platform-browser-dynamic": "2.0.0-rc.6",
+ "@angular/router": "3.0.0-rc.2",
+ "@angular/upgrade": "2.0.0-rc.6",
- "core-js": "^2.4.0",
+ "core-js": "^2.4.1",
"reflect-metadata": "^0.1.3",
- "rxjs": "5.0.0-beta.6",
+ "rxjs": "5.0.0-beta.11",
"systemjs": "0.19.27",
- "zone.js": "^0.6.12",
+ "zone.js": "^0.6.17",
- "angular2-in-memory-web-api": "0.0.17",
+ "angular2-in-memory-web-api": "0.0.18",
"bootstrap": "^3.3.6"
},
"devDependencies": {
diff --git a/public/docs/_examples/quickstart/ts/typings.1.json b/public/docs/_examples/quickstart/ts/typings.1.json
index 3d826df25a..72db971273 100644
--- a/public/docs/_examples/quickstart/ts/typings.1.json
+++ b/public/docs/_examples/quickstart/ts/typings.1.json
@@ -1,7 +1,7 @@
{
"globalDependencies": {
- "core-js": "registry:dt/core-js#0.0.0+20160602141332",
+ "core-js": "registry:dt/core-js#0.0.0+20160725163759",
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
- "node": "registry:dt/node#6.0.0+20160807145350"
+ "node": "registry:dt/node#6.0.0+20160831021119"
}
}
diff --git a/public/docs/_examples/security/ts/app/bypass-security.component.ts b/public/docs/_examples/security/ts/app/bypass-security.component.ts
index a18d4251a5..9b33247828 100644
--- a/public/docs/_examples/security/ts/app/bypass-security.component.ts
+++ b/public/docs/_examples/security/ts/app/bypass-security.component.ts
@@ -1,7 +1,7 @@
// #docplaster
// #docregion
import { Component } from '@angular/core';
-import { DomSanitizationService, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';
+import { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';
@Component({
selector: 'bypass-security',
@@ -14,7 +14,7 @@ export class BypassSecurityComponent {
videoUrl: SafeResourceUrl;
// #docregion trust-url
- constructor(private sanitizer: DomSanitizationService) {
+ constructor(private sanitizer: DomSanitizer) {
// javascript: URLs are dangerous if attacker controlled.
// Angular sanitizes them in data binding, but we can
// explicitly tell Angular to trust this value:
diff --git a/public/docs/_examples/style-guide/ts/app/main.ts b/public/docs/_examples/style-guide/ts/app/main.ts
index 6e2dfd46b7..81567a3120 100644
--- a/public/docs/_examples/style-guide/ts/app/main.ts
+++ b/public/docs/_examples/style-guide/ts/app/main.ts
@@ -1,5 +1,5 @@
import { NgModule } from '@angular/core';
-import { browserDynamicPlatform } from '@angular/platform-browser-dynamic';
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
@@ -91,6 +91,6 @@ const moduleMetadata = {
@NgModule(moduleMetadata)
class MainModule { }
-browserDynamicPlatform().bootstrapModule(MainModule);
+platformBrowserDynamic().bootstrapModule(MainModule);
diff --git a/public/docs/_examples/systemjs.config.plunker.build.js b/public/docs/_examples/systemjs.config.plunker.build.js
index 9c9088b148..56cb15c183 100644
--- a/public/docs/_examples/systemjs.config.plunker.build.js
+++ b/public/docs/_examples/systemjs.config.plunker.build.js
@@ -5,12 +5,6 @@
* Adjust as necessary for your application needs.
*/
(function(global) {
-
- var ngVer = '@2.0.0-rc.5'; // lock in the angular package version; do not let it float to current!
- var routerVer = '@3.0.0-rc.1'; // lock router version
- var formsVer = '@0.3.0'; // lock forms version
- var routerDeprecatedVer = '@2.0.0-rc.2'; // temporarily until we update all the guides
-
//map tells the System loader where to look for things
var map = {
'app': 'app',
@@ -25,7 +19,7 @@
'@angular/platform-browser-dynamic': 'https://cdn.rawgit.com/angular/platform-browser-dynamic-builds/master',
'@angular/router': 'https://cdn.rawgit.com/angular/router-builds/master',
- 'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.6',
+ 'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.11',
'ts': 'https://unpkg.com/plugin-typescript@4.0.10/lib/plugin.js',
'typescript': 'https://unpkg.com/typescript@1.9.0-dev.20160409/lib/typescript.js',
diff --git a/public/docs/_examples/systemjs.config.plunker.js b/public/docs/_examples/systemjs.config.plunker.js
index f41d929507..fe292e3696 100644
--- a/public/docs/_examples/systemjs.config.plunker.js
+++ b/public/docs/_examples/systemjs.config.plunker.js
@@ -5,9 +5,8 @@
*/
(function(global) {
- var ngVer = '@2.0.0-rc.5'; // lock in the angular package version; do not let it float to current!
- var routerVer = '@3.0.0-rc.1'; // lock router version
- var formsVer = '@0.3.0'; // lock forms version
+ var ngVer = '@2.0.0-rc.6'; // lock in the angular package version; do not let it float to current!
+ var routerVer = '@3.0.0-rc.2'; // lock router version
var routerDeprecatedVer = '@2.0.0-rc.2'; // temporarily until we update all the guides
//map tells the System loader where to look for things
@@ -16,10 +15,9 @@
'@angular': 'https://unpkg.com/@angular', // sufficient if we didn't pin the version
'@angular/router': 'https://unpkg.com/@angular/router' + routerVer,
- '@angular/forms': 'https://unpkg.com/@angular/forms' + formsVer,
'@angular/router-deprecated': 'https://unpkg.com/@angular/router-deprecated' + routerDeprecatedVer,
'angular2-in-memory-web-api': 'https://unpkg.com/angular2-in-memory-web-api', // get latest
- 'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.6',
+ 'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.11',
'ts': 'https://unpkg.com/plugin-typescript@4.0.10/lib/plugin.js',
'typescript': 'https://unpkg.com/typescript@1.9.0-dev.20160409/lib/typescript.js',
};
@@ -35,6 +33,7 @@
'common',
'compiler',
'core',
+ 'forms',
'http',
'platform-browser',
'platform-browser-dynamic',
@@ -48,7 +47,7 @@
});
// Add package entries for angular packages
- ngPackageNames.concat(['forms', 'router', 'router-deprecated']).forEach(function(pkgName) {
+ ngPackageNames.concat(['router', 'router-deprecated']).forEach(function(pkgName) {
// Bundled (~40 requests):
packages['@angular/'+pkgName] = { main: '/bundles/' + pkgName + '.umd.js' };
diff --git a/public/docs/_examples/template-syntax/ts/app/main.ts b/public/docs/_examples/template-syntax/ts/app/main.ts
index 458fd21eb1..6af7a5b2ae 100644
--- a/public/docs/_examples/template-syntax/ts/app/main.ts
+++ b/public/docs/_examples/template-syntax/ts/app/main.ts
@@ -1,5 +1,5 @@
-import { browserDynamicPlatform } from '@angular/platform-browser-dynamic';
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
-browserDynamicPlatform().bootstrapModule(AppModule);
+platformBrowserDynamic().bootstrapModule(AppModule);
diff --git a/public/docs/_examples/typings.json b/public/docs/_examples/typings.json
index 3d826df25a..72db971273 100644
--- a/public/docs/_examples/typings.json
+++ b/public/docs/_examples/typings.json
@@ -1,7 +1,7 @@
{
"globalDependencies": {
- "core-js": "registry:dt/core-js#0.0.0+20160602141332",
+ "core-js": "registry:dt/core-js#0.0.0+20160725163759",
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
- "node": "registry:dt/node#6.0.0+20160807145350"
+ "node": "registry:dt/node#6.0.0+20160831021119"
}
}
diff --git a/public/docs/_examples/webpack/ts/package.webpack.json b/public/docs/_examples/webpack/ts/package.webpack.json
index 4b3dc3e15d..4d772b16ee 100644
--- a/public/docs/_examples/webpack/ts/package.webpack.json
+++ b/public/docs/_examples/webpack/ts/package.webpack.json
@@ -10,18 +10,17 @@
},
"license": "MIT",
"dependencies": {
- "@angular/common": "2.0.0-rc.5",
- "@angular/compiler": "2.0.0-rc.5",
- "@angular/core": "2.0.0-rc.5",
- "@angular/forms": "0.3.0",
- "@angular/http": "2.0.0-rc.5",
- "@angular/platform-browser": "2.0.0-rc.5",
- "@angular/platform-browser-dynamic": "2.0.0-rc.5",
- "@angular/router": "3.0.0-rc.1",
- "core-js": "^2.4.0",
- "reflect-metadata": "0.1.2",
- "rxjs": "5.0.0-beta.6",
- "zone.js": "0.6.12"
+ "@angular/common": "2.0.0-rc.6",
+ "@angular/compiler": "2.0.0-rc.6",
+ "@angular/core": "2.0.0-rc.6",
+ "@angular/forms": "2.0.0-rc.6",
+ "@angular/http": "2.0.0-rc.6",
+ "@angular/platform-browser": "2.0.0-rc.6",
+ "@angular/platform-browser-dynamic": "2.0.0-rc.6",
+ "@angular/router": "3.0.0-rc.2",
+ "core-js": "^2.4.1",
+ "rxjs": "5.0.0-beta.11",
+ "zone.js": "^0.6.17"
},
"devDependencies": {
"angular2-template-loader": "^0.4.0",
diff --git a/public/docs/_examples/webpack/ts/typings.1.json b/public/docs/_examples/webpack/ts/typings.1.json
index 3d826df25a..72db971273 100644
--- a/public/docs/_examples/webpack/ts/typings.1.json
+++ b/public/docs/_examples/webpack/ts/typings.1.json
@@ -1,7 +1,7 @@
{
"globalDependencies": {
- "core-js": "registry:dt/core-js#0.0.0+20160602141332",
+ "core-js": "registry:dt/core-js#0.0.0+20160725163759",
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
- "node": "registry:dt/node#6.0.0+20160807145350"
+ "node": "registry:dt/node#6.0.0+20160831021119"
}
}
diff --git a/public/docs/js/latest/_data.json b/public/docs/js/latest/_data.json
index 7bbc458b55..04bb91e507 100644
--- a/public/docs/js/latest/_data.json
+++ b/public/docs/js/latest/_data.json
@@ -3,7 +3,7 @@
"icon": "home",
"title": "Angular Docs",
"menuTitle": "Docs Home",
- "banner": "Welcome to Angular in JavaScript! The current Angular 2 release is rc.5. Please consult the Change Log about recent enhancements, fixes, and breaking changes."
+ "banner": "Welcome to Angular in JavaScript! The current Angular 2 release is rc.6. Please consult the Change Log about recent enhancements, fixes, and breaking changes."
},
"quickstart": {
diff --git a/public/docs/js/latest/cookbook/ts-to-js.jade b/public/docs/js/latest/cookbook/ts-to-js.jade
index 5a834fb5fb..a41d441028 100644
--- a/public/docs/js/latest/cookbook/ts-to-js.jade
+++ b/public/docs/js/latest/cookbook/ts-to-js.jade
@@ -365,8 +365,7 @@ table(width="100%")
To achieve the same effect in JavaScript, use the constructor array notation
in which the injection information precedes the constructor function itself.
- Use the injection support functions `Attribute`, `Host`, `Optional`, `Self`, `SkipSelf`,
- `Query` and `ViewQuery` to qualify dependency injection behavior.
+ Use the injection support functions `Attribute`, `Host`, `Optional`, `Self`, `SkipSelf` to qualify dependency injection behavior.
Use a nested array to combine injection functions.
diff --git a/public/docs/ts/_cache/guide/security.jade b/public/docs/ts/_cache/guide/security.jade
index 161e34c0e8..58c3d683bb 100644
--- a/public/docs/ts/_cache/guide/security.jade
+++ b/public/docs/ts/_cache/guide/security.jade
@@ -157,7 +157,7 @@ h2#bypass-security-apis Trusting Safe Values
introduce a security vulnerability into your application. If in doubt, find a professional
security reviewer.
- You can mark a value as trusted by injecting `DomSanitizationService`, and calling one of the
+ You can mark a value as trusted by injecting `DomSanitizer`, and calling one of the
following methods.
* `bypassSecurityTrustHtml`
diff --git a/public/docs/ts/latest/_data.json b/public/docs/ts/latest/_data.json
index 6f63472d16..c774c59ca0 100644
--- a/public/docs/ts/latest/_data.json
+++ b/public/docs/ts/latest/_data.json
@@ -3,7 +3,7 @@
"icon": "home",
"title": "Angular Docs",
"menuTitle": "Docs Home",
- "banner": "Welcome to Angular in TypeScript! The current Angular 2 release is rc.5. Please consult the Change Log about recent enhancements, fixes, and breaking changes."
+ "banner": "Welcome to Angular in TypeScript! The current Angular 2 release is rc.6. Please consult the Change Log about recent enhancements, fixes, and breaking changes."
},
"cli-quickstart": {
diff --git a/public/docs/ts/latest/guide/animations.jade b/public/docs/ts/latest/guide/animations.jade
index 9b198261f9..5455b1b3d1 100644
--- a/public/docs/ts/latest/guide/animations.jade
+++ b/public/docs/ts/latest/guide/animations.jade
@@ -69,7 +69,7 @@ figure
:marked
We now have an animation defined but it is not yet used anywhere. We can change that by
- attaching it to one or more elements in the component's template using the "`@triggerName`"
+ attaching it to one or more elements in the component's template using the "`[@triggerName]`"
syntax:
+makeExample('animations/ts/app/hero-list-basic.component.ts', 'template')(format=".")
diff --git a/public/docs/ts/latest/guide/security.jade b/public/docs/ts/latest/guide/security.jade
index 161e34c0e8..58c3d683bb 100644
--- a/public/docs/ts/latest/guide/security.jade
+++ b/public/docs/ts/latest/guide/security.jade
@@ -157,7 +157,7 @@ h2#bypass-security-apis Trusting Safe Values
introduce a security vulnerability into your application. If in doubt, find a professional
security reviewer.
- You can mark a value as trusted by injecting `DomSanitizationService`, and calling one of the
+ You can mark a value as trusted by injecting `DomSanitizer`, and calling one of the
following methods.
* `bypassSecurityTrustHtml`
diff --git a/tools/plunker-builder/indexHtmlTranslator.js b/tools/plunker-builder/indexHtmlTranslator.js
index 6d3298524b..ed733d9f04 100644
--- a/tools/plunker-builder/indexHtmlTranslator.js
+++ b/tools/plunker-builder/indexHtmlTranslator.js
@@ -41,7 +41,7 @@ var _rxData = [
{
pattern: 'script',
from: 'node_modules/zone.js/dist/zone.js',
- to: 'https://unpkg.com/zone.js@0.6.12?main=browser'
+ to: 'https://unpkg.com/zone.js@0.6.17?main=browser'
},
{
pattern: 'script',
@@ -51,7 +51,7 @@ var _rxData = [
{
pattern: 'script',
from: 'node_modules/rxjs/bundles/Rx.umd.js',
- to: 'https://unpkg.com/rxjs@5.0.0-beta.6/bundles/Rx.umd.js'
+ to: 'https://unpkg.com/rxjs@5.0.0-beta.11/bundles/Rx.umd.js'
},
{
pattern: 'script',