Computed property macros
See original GitHub issueember-i18n
has a translationMacro
, which essentially generates a computed property listening to i18n.locale
(see https://github.com/jamesarosen/ember-i18n/blob/master/addon/utils/macro.js). Would something like that be desirable in ember-intl
too?
Issue Analytics
- State:
- Created 7 years ago
- Comments:34 (11 by maintainers)
Top Results From Across the Web
Computed Properties - The Object Model - Ember Guides
Some types of computed properties are very common. Ember provides a number of computed property macros, which are shorter ways of expressing certain...
Read more >Refactoring with computed property macros - EmberMap
Now, computed property macros are really just computed properties that do something that's very common, like calculating a sum, or mapping from an...
Read more >eslint-plugin-ember/require-computed-macros.md at master
An ESLint plugin that provides set of rules for Ember applications based on commonly known good practices. - eslint-plugin-ember/require-computed-macros.md ...
Read more >Computed Property Macros - Ember Observer
ember-group-by - An Ember.js computed property macro for grouping objects by a given property. Computed Property Macros Last updated 4 years ago.
Read more >9 (revised) - Computed Property Macros - Ember Screencasts
Break up giant functions and make your logic beautiful using Ember.computed macros. In this episode, we learn the basics, then refactor a ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh boy, it may overkill to addonify
raw
. It is so tiny: https://github.com/kellyselden/ember-awesome-macros/blob/master/addon/raw.js@marcoow that can conflict, so I’d prefer either a wrapper to signify literal v. path or my original syntax.
https://github.com/emberjs/ember.js/pull/4185 I wish this had landed