Skip to content

Conversation

@lukasss88
Copy link

No description provided.

@github-actions github-actions bot added 34 default-onPush answer answer sponsor sponsor the project to be reviewed PR requests a review labels Nov 30, 2025
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PersonFormComponent {
label = '';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not using a model

this.addLabel.emit(this.label);
this.label = '';
}
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

host: {
class: 'w-full flex flex-col items-center',
},
providers: [PersonService],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you forgot 'changedetection.onpush`

<mat-list class="flex w-full">
@if (names()?.length === 0) {
@if (names().length === 0) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the @if is useless here, you should use the @empty of the @for.

@tomalaforge tomalaforge removed the to be reviewed PR requests a review label Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

34 default-onPush answer answer sponsor sponsor the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants