Skip to content

Commit 696432e

Browse files
committedJun 21, 2018
Update README.md for engines
As mentioned in #134
1 parent eaf3f2e commit 696432e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
 

Diff for: ‎README.md

+18
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,24 @@ The major breaking changes to update to 3.x are so far:
9696
- Test helpers are now all covered by `setBreakpoint`
9797
- Calling media breakpoints in templates is now done with a helper. `{{media.isDesktop}}` -> `{{media 'isDesktop'}}`
9898

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+
const Eng = Engine.extend({
105+
modulePrefix,
106+
podModulePrefix,
107+
Resolver,
108+
dependencies: {
109+
services: [
110+
'media',
111+
...
112+
],
113+
},
114+
});
115+
```
116+
99117
## Testing Helpers
100118
This project provides a single test helper which works in both integration and acceptance tests to assist in testing
101119
content specific to different breakpoints.

0 commit comments

Comments
 (0)