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
507ed58152
commit
fbbe5d55b1
@@ -49,18 +49,18 @@ export class MyComponent {
|
|||||||
import {Component, input} from '@angular/core';
|
import {Component, input} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
template: `Name: {{name() ?? ''}}`
|
template: `Name: {{name() ?? ''}}`
|
||||||
})
|
})
|
||||||
export class MyComponent {
|
export class MyComponent {
|
||||||
readonly name = input<string>();
|
readonly name = input<string>();
|
||||||
|
|
||||||
someMethod(): number {
|
someMethod(): number {
|
||||||
const name = this.name();
|
const name = this.name();
|
||||||
if (name) {
|
if (name) {
|
||||||
return name.length;
|
return name.length;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</docs-code>
|
</docs-code>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user