You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,24 @@ The major breaking changes to update to 3.x are so far:
96
96
- Test helpers are now all covered by `setBreakpoint`
97
97
- Calling media breakpoints in templates is now done with a helper. `{{media.isDesktop}}` -> `{{media 'isDesktop'}}`
98
98
99
+
## Usage in engines
100
+
101
+
If you are using engines and you want to share responsive behaviour between the main application and engine, you must pass the 'media' service to the engine app.
102
+
103
+
```js
104
+
constEng=Engine.extend({
105
+
modulePrefix,
106
+
podModulePrefix,
107
+
Resolver,
108
+
dependencies: {
109
+
services: [
110
+
'media',
111
+
...
112
+
],
113
+
},
114
+
});
115
+
```
116
+
99
117
## Testing Helpers
100
118
This project provides a single test helper which works in both integration and acceptance tests to assist in testing
0 commit comments