diff --git a/aio/content/examples/dependency-injection-in-action/src/app/parent-finder.component.ts b/aio/content/examples/dependency-injection-in-action/src/app/parent-finder.component.ts index 1a3eaf8695..4cf6ea7acc 100644 --- a/aio/content/examples/dependency-injection-in-action/src/app/parent-finder.component.ts +++ b/aio/content/examples/dependency-injection-in-action/src/app/parent-finder.component.ts @@ -50,7 +50,7 @@ const templateC = ` }) // #docregion carol-class export class CarolComponent { - name= 'Carol'; + name = 'Carol'; // #docregion carol-ctor constructor( @Optional() public parent: Parent ) { } // #enddocregion carol-ctor @@ -63,7 +63,7 @@ export class CarolComponent { template: templateC }) export class ChrisComponent { - name= 'Chris'; + name = 'Chris'; constructor( @Optional() public parent: Parent ) { } } @@ -116,7 +116,7 @@ export class BarryComponent implements Parent { providers: [ provideParent(BobComponent) ] }) export class BobComponent implements Parent { - name= 'Bob'; + name = 'Bob'; constructor( @SkipSelf() @Optional() public parent: Parent ) { } } @@ -128,7 +128,7 @@ export class BobComponent implements Parent { // #enddocregion beth-providers }) export class BethComponent implements Parent { - name= 'Beth'; + name = 'Beth'; constructor( @SkipSelf() @Optional() public parent: Parent ) { } } @@ -157,7 +157,7 @@ export class BethComponent implements Parent { export class AlexComponent extends Base // #enddocregion alex-class-signature { - name= 'Alex'; + name = 'Alex'; } // #enddocregion alex, alex-1 @@ -182,7 +182,7 @@ export class AlexComponent extends Base export class AliceComponent implements Parent // #enddocregion alice-class-signature { - name= 'Alice'; + name = 'Alice'; } // #enddocregion alice diff --git a/aio/content/examples/dependency-injection/e2e/app.e2e-spec.ts b/aio/content/examples/dependency-injection/e2e/app.e2e-spec.ts index 472f1411fd..12fe6ae474 100644 --- a/aio/content/examples/dependency-injection/e2e/app.e2e-spec.ts +++ b/aio/content/examples/dependency-injection/e2e/app.e2e-spec.ts @@ -187,7 +187,7 @@ describe('Dependency Injection Tests', function () { let heroes = element.all(by.css('#authorized app-hero-list div')); expect(heroes.count()).toBeGreaterThan(0); - let filteredHeroes = heroes.filter(function(elem: ElementFinder, index: number){ + let filteredHeroes = heroes.filter(function(elem: ElementFinder, index: number) { return elem.getText().then(function(text: string) { return /secret/.test(text); }); diff --git a/aio/content/examples/dynamic-component-loader/src/app/ad-banner.component.ts b/aio/content/examples/dynamic-component-loader/src/app/ad-banner.component.ts index 63cb0ba0ff..ec86f69349 100644 --- a/aio/content/examples/dynamic-component-loader/src/app/ad-banner.component.ts +++ b/aio/content/examples/dynamic-component-loader/src/app/ad-banner.component.ts @@ -19,7 +19,7 @@ import { AdComponent } from './ad.component'; // #docregion class export class AdBannerComponent implements OnInit, OnDestroy { @Input() ads: AdItem[]; - currentAdIndex: number = -1; + currentAdIndex = -1; @ViewChild(AdDirective) adHost: AdDirective; interval: any; diff --git a/aio/content/examples/dynamic-component-loader/src/app/hero-job-ad.component.ts b/aio/content/examples/dynamic-component-loader/src/app/hero-job-ad.component.ts index 675a03d0e0..762b815872 100644 --- a/aio/content/examples/dynamic-component-loader/src/app/hero-job-ad.component.ts +++ b/aio/content/examples/dynamic-component-loader/src/app/hero-job-ad.component.ts @@ -6,8 +6,8 @@ import { AdComponent } from './ad.component'; @Component({ template: `
{{data.bio}}
Hire this hero today! diff --git a/aio/content/examples/dynamic-form/e2e/app.e2e-spec.ts b/aio/content/examples/dynamic-form/e2e/app.e2e-spec.ts index 6535e3e0c5..49eaba3f9c 100644 --- a/aio/content/examples/dynamic-form/e2e/app.e2e-spec.ts +++ b/aio/content/examples/dynamic-form/e2e/app.e2e-spec.ts @@ -21,7 +21,7 @@ describe('Dynamic Form', function () { element(by.css('select option[value="solid"]')).click(); let saveButton = element.all(by.css('button')).get(0); - saveButton.click().then(function(){ + saveButton.click().then(function() { expect(element(by.xpath("//strong[contains(text(),'Saved the following values')]")).isPresent()).toBe(true); }); }); diff --git a/aio/content/examples/dynamic-form/src/app/question-base.ts b/aio/content/examples/dynamic-form/src/app/question-base.ts index 2b32b00f2a..8249a38bee 100644 --- a/aio/content/examples/dynamic-form/src/app/question-base.ts +++ b/aio/content/examples/dynamic-form/src/app/question-base.ts @@ -1,5 +1,5 @@ // #docregion -export class QuestionBase