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([ return Promise.all([
System.import('@angular/core/testing'), System.import('@angular/core/testing'),
System.import('@angular/platform-browser-dynamic/testing') System.import('@angular/platform-browser-dynamic/testing')
@ -79,7 +79,7 @@ function initTestBed(){
} }
// Import all spec files and start karma // Import all spec files and start karma
function initTesting () { function initTesting() {
return Promise.all( return Promise.all(
allSpecFiles.map(function (moduleName) { allSpecFiles.map(function (moduleName) {
return System.import(moduleName); return System.import(moduleName);

View File

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

View File

@ -9,7 +9,7 @@ export class HelloWorldNgIfComponent {
message = 'I\'m read only!'; message = 'I\'m read only!';
canEdit = false; canEdit = false;
onEditClick(){ onEditClick() {
this.canEdit = !this.canEdit; this.canEdit = !this.canEdit;
if (this.canEdit) { if (this.canEdit) {
this.message = 'You can edit me!'; this.message = 'You can edit me!';

View File

@ -13,7 +13,7 @@ import { Component } from '@angular/core';
export class HelloWorldTemplateComponent { export class HelloWorldTemplateComponent {
message = 'I am read only!'; message = 'I am read only!';
canEdit = false; canEdit = false;
onEditClick(){ onEditClick() {
this.canEdit = !this.canEdit; this.canEdit = !this.canEdit;
if (this.canEdit) { if (this.canEdit) {
this.message = 'You can edit me!'; this.message = 'You can edit me!';

View File

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