title: Specify action for view in template?
body: <p>I would like to know if it is possible to assign an action to a view like I could assign an action to a HTML tag:</p>
  
  <p>This works:</p>
  
  <pre><code>&lt;button {{action "show2" }}&gt;Test 1&lt;/button&gt;
  </code></pre>
  
  <p>This doesn't:</p>
  
  <pre><code>{{#view NewApp.MenuButton }}
     {{action "show3" target="controller"}}
  {{/view}}
  </code></pre>
  
  <p>I know that I could implement the click function in the view. But I would like to use the button as some sort of reusable component.</p>