mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(migrations): Fix indentation in documentation for signal inputs migration (#60204)
PR Close #60204
This commit is contained in:
committed by
Miles Malerba
parent
7eb59d3887
commit
ff46280596
@@ -49,18 +49,18 @@ export class MyComponent {
|
||||
import {Component, input} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
template: `Name: {{name() ?? ''}}`
|
||||
template: `Name: {{name() ?? ''}}`
|
||||
})
|
||||
export class MyComponent {
|
||||
readonly name = input<string>();
|
||||
readonly name = input<string>();
|
||||
|
||||
someMethod(): number {
|
||||
const name = this.name();
|
||||
if (name) {
|
||||
return name.length;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
someMethod(): number {
|
||||
const name = this.name();
|
||||
if (name) {
|
||||
return name.length;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
</docs-code>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user