# Hooks between ember engine and host app

**URL:** <https://discuss.emberjs.com/t/hooks-between-ember-engine-and-host-app/14747>\
**Category:** Questions\
**Created:** [May 14, 2018, 9:01am UTC](https://discuss.emberjs.com/t/hooks-between-ember-engine-and-host-app/14747 "2018-05-14T09:01:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartocc](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/bartocc/32/10812_2.png) [@bartocc](https://discuss.emberjs.com/u/bartocc)\
**Post date:** [May 14, 2018, 9:01am UTC](https://discuss.emberjs.com/t/hooks-between-ember-engine-and-host-app/14747/1 "2018-05-14T09:01:54Z")

</div>

Hi,

I’d like to run some code in my host app after running a controller action in an engine.

The only way I can think of doing this is to create a dedicated service in the host app, provide it to the engine and call a method on this service when necessary in the engine’s controller action. Every app using this engine would have to define this service, which troubles me a bit…

Is there a better way of achieving such a use case ?
