From 4fd5d688ce505926a2ee0ee5f9970dfe8317238c Mon Sep 17 00:00:00 2001 From: Quentin Monmert Date: Fri, 5 Mar 2021 18:04:25 +0100 Subject: [PATCH] docs: fix some typos in angular.io examples (#41093) This commit updates example code to make the spacing more consistent. PR Close #41093 --- .../examples/upgrade-phonecat-2-hybrid/karma-test-shim.1.js | 4 ++-- .../src/app/hello-world-di/hello-world-di.component.ts | 2 +- .../src/app/hello-world-ngif/hello-world-ngif.component.ts | 2 +- .../what-is-angular/src/app/hello-world-template.component.ts | 4 ++-- .../src/app/hello-world/hello-world.component.ts | 2 +- docs/BAZEL.md | 2 +- packages/common/src/i18n/locale_data_api.ts | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/aio/content/examples/upgrade-phonecat-2-hybrid/karma-test-shim.1.js b/aio/content/examples/upgrade-phonecat-2-hybrid/karma-test-shim.1.js index 433870151d3..04a2dd1467a 100644 --- a/aio/content/examples/upgrade-phonecat-2-hybrid/karma-test-shim.1.js +++ b/aio/content/examples/upgrade-phonecat-2-hybrid/karma-test-shim.1.js @@ -62,7 +62,7 @@ function importSystemJsExtras(){ }); } -function initTestBed(){ +function initTestBed() { return Promise.all([ System.import('@angular/core/testing'), System.import('@angular/platform-browser-dynamic/testing') @@ -79,7 +79,7 @@ function initTestBed(){ } // Import all spec files and start karma -function initTesting () { +function initTesting() { return Promise.all( allSpecFiles.map(function (moduleName) { return System.import(moduleName); diff --git a/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.ts b/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.ts index e270f2f27b5..c0bf58a7c65 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.ts +++ b/aio/content/examples/what-is-angular/src/app/hello-world-di/hello-world-di.component.ts @@ -11,7 +11,7 @@ export class HelloWorldDependencyInjectionComponent { constructor(private logger: Logger) { } - onLogMe(){ + onLogMe() { this.logger.writeCount(this.count); this.count++; } diff --git a/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.ts b/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.ts index cbc2075d9d7..184852f1d66 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.ts +++ b/aio/content/examples/what-is-angular/src/app/hello-world-ngif/hello-world-ngif.component.ts @@ -9,7 +9,7 @@ export class HelloWorldNgIfComponent { message = 'I\'m read only!'; canEdit = false; - onEditClick(){ + onEditClick() { this.canEdit = !this.canEdit; if (this.canEdit) { this.message = 'You can edit me!'; diff --git a/aio/content/examples/what-is-angular/src/app/hello-world-template.component.ts b/aio/content/examples/what-is-angular/src/app/hello-world-template.component.ts index 665c9e493b1..e88e839d3f9 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world-template.component.ts +++ b/aio/content/examples/what-is-angular/src/app/hello-world-template.component.ts @@ -10,10 +10,10 @@ import { Component } from '@angular/core';

{{ message }}

` }) - export class HelloWorldTemplateComponent { + export class HelloWorldTemplateComponent { message = 'I am read only!'; canEdit = false; - onEditClick(){ + onEditClick() { this.canEdit = !this.canEdit; if (this.canEdit) { this.message = 'You can edit me!'; diff --git a/aio/content/examples/what-is-angular/src/app/hello-world/hello-world.component.ts b/aio/content/examples/what-is-angular/src/app/hello-world/hello-world.component.ts index 85d444f2662..6c267b48eca 100644 --- a/aio/content/examples/what-is-angular/src/app/hello-world/hello-world.component.ts +++ b/aio/content/examples/what-is-angular/src/app/hello-world/hello-world.component.ts @@ -9,6 +9,6 @@ import { Component } from '@angular/core';

This is my first component!

`, }) -export class HelloWorldComponent { +export class HelloWorldComponent { // The code in this class drives the component's behavior. } diff --git a/docs/BAZEL.md b/docs/BAZEL.md index 633cd4f9cb4..87092e4c0c6 100644 --- a/docs/BAZEL.md +++ b/docs/BAZEL.md @@ -75,7 +75,7 @@ See also: [`//.bazelrc`](https://github.com/angular/angular/blob/master/.bazelrc - Open chrome at: [chrome://inspect](chrome://inspect) -- Click on `Open dedicated DevTools for Node` to launch a debugger. +- Click on `Open dedicated DevTools for Node` to launch a debugger. - Run test: `yarn bazel test packages/core/test:test --config=debug` The process should automatically connect to the debugger. diff --git a/packages/common/src/i18n/locale_data_api.ts b/packages/common/src/i18n/locale_data_api.ts index 20221f759ba..82abc6ece48 100644 --- a/packages/common/src/i18n/locale_data_api.ts +++ b/packages/common/src/i18n/locale_data_api.ts @@ -122,7 +122,7 @@ export enum NumberSymbol { /** * Decimal separator. * For `en-US`, the dot character. - * Example : 2,345`.`67 + * Example: 2,345`.`67 */ Decimal, /**