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

docs(guide/Components): add note to output events #14365

Closed
wants to merge 1 commit into from

Conversation

machineloop
Copy link
Contributor

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Docs clarification and additional line added to example

What is the current behavior? (You can also link to an open issue here)
Currently the example for using output events doesn't include an attribute binding example from a parent component/directive. Others are finding the lack of example confusing here: http://stackoverflow.com/questions/35559354/the-in-angular-1-5-components/35560611

What is the new behavior (if this is a feature change)?

  • Include line of code pulled from full example demonstrating Output event's use in parent component
  • Add note clarifying camelCase to snake-case requirement to use the Output event callback feature on components

Does this PR introduce a breaking change?
No

Please check if the PR fulfills these requirements

Other information:

Add additional line from example which demonstrates using the snake cased attribute binding in parent component template.
Add note clarifying camelCase to snake-case requirement to use the Output event callback feature.
@Narretz Narretz self-assigned this Apr 7, 2016
@Narretz
Copy link
Contributor

Narretz commented Apr 7, 2016

Thanks for the PR. I will add the additional code example and a less verbose HTML comment about snake case. This is nothing new for components, binding names have always been camelCase in the definition and snake case in templates. These are also not "real" events, but the usual & bindings which execute an expression in the parent (input) scope. This is different from angular2. (These bindings don't bubble up for example).

@Narretz Narretz closed this in f056f5d Apr 7, 2016
Narretz pushed a commit that referenced this pull request Apr 7, 2016
…note

Add additional line from example which demonstrates using the snake cased attribute binding in
parent component template.
Add note clarifying camelCase to snake-case requirement to use the Output binding callback feature.

Closes #14365
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.

3 participants