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([
|
||||
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);
|
||||
|
|
|
@ -11,7 +11,7 @@ export class HelloWorldDependencyInjectionComponent {
|
|||
constructor(private logger: Logger) {
|
||||
}
|
||||
|
||||
onLogMe(){
|
||||
onLogMe() {
|
||||
this.logger.writeCount(this.count);
|
||||
this.count++;
|
||||
}
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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!';
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -122,7 +122,7 @@ export enum NumberSymbol {
|
|||
/**
|
||||
* Decimal separator.
|
||||
* For `en-US`, the dot character.
|
||||
* Example : 2,345`.`67
|
||||
* Example: 2,345`.`67
|
||||
*/
|
||||
Decimal,
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue