Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(compile): document $attrs.$normalize #10345

Closed
wants to merge 1 commit into from

Conversation

cironunes
Copy link
Member

No description provided.

@googlebot
Copy link

CLAs look good, thanks!

@cironunes cironunes mentioned this pull request Dec 5, 2014
*
* Also there is special case for Moz prefix starting with upper case letter.
*
* @param name Name to normalize
Copy link
Member

Choose a reason for hiding this comment

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

Having the type here as well would be nice.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! You got it.

* @kind function
*
* @description
* Converts all accepted directives format into proper directive name.
Copy link
Member

Choose a reason for hiding this comment

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

In order to keep the "terminology" consistent with the rest of the docs, I would rephraze it to something like:

Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or `data-`) to its normalized, camelCase form.

You could also add a link to https://docs.angularjs.org/guide/directive#matching-directives for further info.

@caitp
Copy link
Contributor

caitp commented Dec 5, 2014

LGTM

@caitp caitp added this to the 1.3.6 milestone Dec 5, 2014
caitp pushed a commit that referenced this pull request Dec 5, 2014
@caitp caitp closed this in fbbf6ac Dec 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants