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:
parent
e7453f15d5
commit
c676ec1ce5
@ -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);
|
||||||
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
@ -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!';
|
||||||
|
@ -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!';
|
||||||
|
@ -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,
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user