docs: fix some typos in angular.io examples (#41093)

This commit updates example code to make the spacing more consistent.

PR Close #41093
This commit is contained in:
Quentin Monmert 2021-03-05 18:04:25 +01:00 committed by Andrew Kushnir
parent e7453f15d5
commit c676ec1ce5
7 changed files with 9 additions and 9 deletions

View File

@ -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);

View File

@ -11,7 +11,7 @@ export class HelloWorldDependencyInjectionComponent {
constructor(private logger: Logger) {
}
onLogMe(){
onLogMe() {
this.logger.writeCount(this.count);
this.count++;
}

View File

@ -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!';

View File

@ -10,10 +10,10 @@ import { Component } from '@angular/core';
<p [contentEditable]="canEdit">{{ message }}</p>
`
})
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!';

View File

@ -9,6 +9,6 @@ import { Component } from '@angular/core';
<p>This is my first component!</p>
`,
})
export class HelloWorldComponent {
export class HelloWorldComponent {
// The code in this class drives the component's behavior.
}

View File

@ -75,7 +75,7 @@ See also: [`//.bazelrc`](https://github.com/angular/angular/blob/master/.bazelrc
<a id="debugging"></a>
- 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.

View File

@ -122,7 +122,7 @@ export enum NumberSymbol {
/**
* Decimal separator.
* For `en-US`, the dot character.
* Example : 2,345`.`67
* Example: 2,345`.`67
*/
Decimal,
/**