Skip to content

Commit

Permalink
Update README.md (provide full example)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp authored Sep 19, 2024
1 parent d511038 commit 7747c85
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,23 @@ Resolver = extendResolver(Resolver);

Without this update, the app will encounter an error where it cannot find your abilities.

After changes your app file looks like:
```js
import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'test-app/config/environment';
import { extendResolver } from 'ember-can';

export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Resolver = extendResolver(Resolver);
}

loadInitializers(App, config.modulePrefix);
```

This change you can also make for `ember-resolver` < 13, but is not necessary.


Expand Down

0 comments on commit 7747c85

Please sign in to comment.