Comments (5)
@rwjblue what is the best pattern for addons supporting multiple versions of Ember with respect to this kind of thing? Should we have separate versions of the templates and conditionally use the correct one?
from ember-modal-dialog.
I can see two potential solutions (likely there are more):
- Maintain two template files, and implement an
treeFor
that returns the right one. - Maintain two branches.
Clearly 2 is not great...
from ember-modal-dialog.
@rwjblue looking into your suggested solution "1" now, and realized that (unless I missed something) I don't know the Ember version an app is using from within the addon.
from ember-modal-dialog.
@rwjblue Also found that ember-cli was missing the treeForAddonTemplates
hook, which is where we would need to customize. Added it here: ember-cli/ember-cli#4159
from ember-modal-dialog.
Working on a fix here: #41
from ember-modal-dialog.
Related Issues (20)
- error get onClose HOT 2
- `.emd-wrapper-target-attachment-center .ember-modal-dialog` is missing `position: absolute`
- ember-animated integration examples? HOT 2
- Does this work with Embroider? HOT 15
- Breaks in Ember 3.22 HOT 2
- Deprecation warnings with Ember 3.26+ HOT 5
- Issue with ember 3.27 HOT 6
- Update ember-wormhole to v0.6.0
- Ember v3.27: Exception on Ember.computed.reads (liquid-wormhole) HOT 4
- Use of old addon https://github.com/ef4/ember-ignore-children-helper
- Release of 4.0.0? HOT 3
- does not work with engines (release 4.0.0-alpha.1) HOT 6
- Convert to v2 addon
- Ember 3.26+: TypeError: this.overlayClassNames?.join is not a function
- tarball data corrupted? HOT 1
- Ember 3.28: TypeError: this.containerClassNames.join is not a function HOT 1
- Update to ember-tether 3.0.0 HOT 6
- 4.1.3 - need to wait until modal overlay is opened (in test) HOT 1
- not able to stub router service in tests HOT 1
- Access to `navigator` in module scope crashes Fastboot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-modal-dialog.