mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs(migrations): Fix indentation in documentation for signal inputs migration (#60204)
PR Close #60204
This commit is contained in:
parent
507ed58152
commit
fbbe5d55b1
1 changed files with 9 additions and 9 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue