# Is sending self assigned event from a component a normal proctice?

**URL:** https://discuss.emberjs.com/t/is-sending-self-assigned-event-from-a-component-a-normal-proctice/6665
**Category:** Uncategorized
**Created:** [November 11, 2014, 3:19pm UTC](https://discuss.emberjs.com/t/is-sending-self-assigned-event-from-a-component-a-normal-proctice/6665 "2014-11-11T15:19:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Tuwogaka](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@Tuwogaka](https://discuss.emberjs.com/u/Tuwogaka)
#### Post date: [November 11, 2014, 3:19pm UTC](https://discuss.emberjs.com/t/is-sending-self-assigned-event-from-a-component-a-normal-proctice/6665/1 "2014-11-11T15:19:05Z")

</div>

I have a route that simplifies communication with the server and use it by sending messages. It looked comfortable until I had to communicate to the server from a component - sent messages did not bubble and did not reach the route. Thus I use a work around: in a component I set a property and use sendAction instead of send, something like that:

```
getJSONWithAuth: 'getJSONWithAuth',

didInsertElement: function() {
    this.sendAction('getJSONWithAuth', this, 'topprojects.php', {}, 'initload');
},

```

This way I do not have to specify the event each time a component is used, but I am not sure if this is a good practice. Are reasons for preventing sent events from bubbling out of components serious enough to expect this to be prohibited in the future versions of Ember?
