[DOC release] Add example and clear up wording for CP get/set #12619
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes the following changes to
Ember.computed
API documentation:Changes the
fullName
getter function to match the example in the latest guides. This involved changing to a template string from a string concatenation.Switches class property default values to be defined in
init()
instead (suggested)Minor changes to wording and sentence structure, mostly adding articles.
Adds an example that uses the hash format with
get
andset
Removes confusing/incorrect phrase:
My one concern is that the two examples are very similar except for a few lines. Would it be more helpful if the second example only included the computed property (rather than the whole class and usage example)?