This week: calling nested components in Angle Brackets Invocation Syntax π, 2 RFCs for improving Ember Data π¬, an exclusive interview with Ember contributor @danielleadams π, user impersonation with Ember Simple Auth π€, check out code splitting on routes π, a brand-new blog post about @action, {{ opening_double_curly() }}on{{ closing_double_curly() }} & {{ opening_double_curly() }}fn{{ closing_double_curly() }} π, and last, but not least, EmberCamp videos are live! πΏ
Starting Ember 3.10 (currently in beta), we can call nested components in angle brackets! πππ Recall, we want to use angle brackets to add clarity to code.
EmberMap gave us a first look at the new syntax and how to incrementally migrate our templates. For example, the template,
The best news? You don't have to wait till your app is at 3.10. Thanks to @rwjblue, you can use a polyfill to get the full feature set of angle brackets today! π
In the RFC, @igorT proposes that we add methods that return the created and deleted states of a record. These methods would be consumed by the addons to make correct decisions.
If you'd like to learn more, please take a look at RFC #463. Please also leave your feedback! βοΈ
On a related note, @igorT proposes in RFC #466 that we create a Request State service, which returns the in-flight and completed states of a request. The service would, not only simplify how we determine the state of a request, but also help us work with data from multiple sources.
You can read more about the proposal in RFC #466. As always, feedback is welcome! π
In our 10th edition of the contributor interview series, community member Danielle Adams, also known as @danielleadams, talks about her work as a mentor, conference MC and public speaker and shares tips to be present and confident when presenting your ideas. β¨
When developing SaaS (software as a service) applications, it is important to be able to log in as one of your users and see exactly what they see. This can help with debugging issues and aid your support team in assisting users.
@matixmatix has created an awesome tutorial on how this can be done using Ember.js (with Ember Simple Auth) and Ruby on Rails (with Doorkeeper gem for OAuth2).
Achieving this is a fairly simple process. Normally, a client exchanges their username and password for an access token. To impersonate that user, we would need to create the token without the user's password. We can ask DoorKeeper to issue a new token for the provided user directly. Lastly, we update our existing OAuth2 authorizer so that we can pass the token (instead of a password) to log in as that user.
In Embroider, an experimental build system for EmberJS, @ef4added the splitAtRoutes option along with the @embroider/router package to enable per route code splitting. Ember applications can start testing route code splitting by just sticking to community conventions.
If you haven't been following the discussion on @action, {{ opening_double_curly() }}on{{ closing_double_curly() }}, and {{ opening_double_curly() }}fn{{ closing_double_curly() }}, this is the blog post for you!
@pzuraq continues his wonderful series of blog posts with a new one that focuses on the evolution of @action, {{ opening_double_curly() }}on{{ closing_double_curly() }}, and {{ opening_double_curly() }}fn{{ closing_double_curly() }} in detail.
The post covers some of the rationales for changing the use of {{ opening_double_curly() }}action{{ closing_double_curly() }} and how the use of the @action decorator will differ, including consideration of what the responsibilities of actions are and treatment of how decorators can help improve binding context.
You also won't want to miss coverage of the {{ opening_double_curly() }}on{{ closing_double_curly() }} modifier that replaces event handling responsibilities of {{ opening_double_curly() }}action{{ closing_double_curly() }} and the {{ opening_double_curly() }}fn{{ closing_double_curly() }} partial application helper, both of which have RFC's that have moved into Final Comment Period (FCP).
For more details, check out the full blog post here.
Looking for some more Ember content to watch? The first batch of EmberCamp 2018 videos are now available!
We especially enjoyed @toranb's talk Fast Feedback, Forward Progress where he talks about ways to work smarter, not harder as developers. He shares ways to choose productivity with a few stories in Ember.
Stay tuned for future announcements by following @embercamp on Twitter. And save the date, EmberCamp Chicago 2019 will be on August 23rd.
Wondering about something related to Ember, Ember Data, Glimmer, or addons in the Ember ecosystem, but don't know where to ask? Readersβ Questions are just for you!
Submit your own short and sweet question under bit.ly/ask-ember-core. And donβt worry, there are no silly questions, we appreciate them all - promise! π€