Skip to content

Namin convention for event handlers not considered #63143

@ck08150077

Description

@ck08150077

Describe the problem that you experienced

The tutorial "Learn Angular in your browser" contains the "Event handling" section. This exercise suggests to name the event handler "onMouseOver()", but the style guide of Angular states: "Name event handlers for what they do, not for the triggering event".

The event handler should be named something like "showSecretMessage()" or "setMessage()"

Enter the URL of the topic with the problem

https://angular.dev/tutorials/learn-angular/7-event-handling

Describe what you were looking for in the documentation

No response

Describe the actions that led you to experience the problem

No response

Describe what you want to experience that would fix the problem

No response

Add a screenshot if that helps illustrate the problem

No response

If this problem caused an exception or error, please paste it here


If the problem is browser-specific, please specify the device, OS, browser, and version


Provide any additional information here in as much as detail as you can


Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsRelated to the documentationgood first issueAn issue that is suitable for first-time contributors; often a documentation issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions