title: Is it possible to pass a function to an Ember.js component to execute it as an action callback?
body: <p>I'm wondering if it's possible to pass a function as a parameter of an Ember component </p>
  
  <pre><code>// component.hbs
  {{component fun=fun}}
  </code></pre>
  
  <p>and then, from an action in the component, calling this same function :</p>
  
  <pre><code>// component.js
  actions: {
    fun2() {
       let fun = this.get('fun');
       fun();
    }
  }
  </code></pre>