-
-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update modifiers related sections to be accurate to what we've been able to do since 3.25 #1829
base: master
Are you sure you want to change the base?
Update modifiers related sections to be accurate to what we've been able to do since 3.25 #1829
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I chatted with nullvoxpopuli, and I can help finish up this PR. I have some suggestions that I will apply directly and then request review.
guides/release/components/template-lifecycle-dom-and-modifiers.md
Outdated
Show resolved
Hide resolved
guides/release/components/template-lifecycle-dom-and-modifiers.md
Outdated
Show resolved
Hide resolved
guides/release/components/template-lifecycle-dom-and-modifiers.md
Outdated
Show resolved
Hide resolved
guides/release/components/template-lifecycle-dom-and-modifiers.md
Outdated
Show resolved
Hide resolved
I made some small wording changes, added a label to the pre-existing input example, and added |
hmm |
<input {{did-insert this.focus}}> | ||
</form> | ||
``` | ||
npx ember install ember-modifier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, this should be ember-cli
this package: https://www.npmjs.com/package/ember
only prints this message: https://github.com/emberjs/ember/blob/master/index.js
and doesn't actually do anything.
Would be great if ember
were configured as a bin that delegated to npx ember-cli
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, thank you. I will change it to use global ember for now.
<input {{did-insert this.focus}}> | ||
</form> | ||
``` | ||
npx ember install ember-modifier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npx ember install ember-modifier | |
npx ember-cli install ember-modifier |
I just found -- I'm gonna address in a separate PR once we resolve this one 🥳 |
This will
release
docs@ember/render-modifiers
as those modifiers were meant for migration from the old paradigms, and not exactly reflective of how the Octane mental model works.Prior to 3.25, all modifiers had to be globally available in
app/modifiers/*
-- this is very awkward, and kind of unfortunate from a teaching perspective that we had such a big gap between modifiers being "the thing" and when they can be freely used -- so I'll be ignoring everything prior to 3.25 for these updates.