diff --git a/modules/@angular/examples/_common/e2e_util.ts b/modules/@angular/examples/_common/e2e_util.ts index 38eca95ec1..dc0801a3fc 100644 --- a/modules/@angular/examples/_common/e2e_util.ts +++ b/modules/@angular/examples/_common/e2e_util.ts @@ -11,7 +11,7 @@ declare var expect: any; // TODO (juliemr): remove this method once this becomes a protractor plugin export function verifyNoBrowserErrors() { - browser.manage().logs().get('browser').then(function(browserLog) { + browser.manage().logs().get('browser').then(function(browserLog: any[]) { var errors: any[] = []; browserLog.filter(logEntry => { var msg = logEntry.message; diff --git a/modules/@angular/examples/forms/ts/nestedFormGroup/nested_form_group_example.ts b/modules/@angular/examples/forms/ts/nestedFormGroup/nested_form_group_example.ts index 6b7094045d..1f8ace2191 100644 --- a/modules/@angular/examples/forms/ts/nestedFormGroup/nested_form_group_example.ts +++ b/modules/@angular/examples/forms/ts/nestedFormGroup/nested_form_group_example.ts @@ -15,15 +15,15 @@ import {FormControl, FormGroup, Validators} from '@angular/forms'; template: `

Name is invalid.

- +
-
+
- + `, }) @@ -36,9 +36,9 @@ export class NestedFormGroupComp { email: new FormControl() }); - get first() { return this.form.get('name.first'); } + get first(): any { return this.form.get('name.first'); } - get name() { return this.form.get('name'); } + get name(): any { return this.form.get('name'); } onSubmit() { console.log(this.first.value); // 'Nancy' diff --git a/modules/@angular/examples/forms/ts/simpleFormGroup/simple_form_group_example.ts b/modules/@angular/examples/forms/ts/simpleFormGroup/simple_form_group_example.ts index cf6be98c56..a128393e18 100644 --- a/modules/@angular/examples/forms/ts/simpleFormGroup/simple_form_group_example.ts +++ b/modules/@angular/examples/forms/ts/simpleFormGroup/simple_form_group_example.ts @@ -15,10 +15,10 @@ import {FormControl, FormGroup, Validators} from '@angular/forms'; template: `
Name is too short.
- + - +
@@ -30,7 +30,7 @@ export class SimpleFormGroup { last: new FormControl('Drew'), }); - get first() { return this.form.get('first'); } + get first(): any { return this.form.get('first'); } onSubmit(): void { console.log(this.form.value); // {first: 'Nancy', last: 'Drew'}