an></span>
<span aria-hidden="true" class="line-numbers-rows"><a href="#C1_L1" id=C1_L1></a><a href="#C1_L2" id=C1_L2></a><a href="#C1_L3" id=C1_L3></a><a href="#C1_L4" id=C1_L4></a></span></code></pre></div>
<p>In the component or controller, you can then define what the action does within
the <code>actions</code> hook:</p>
<div class="filename javascript"><div class="ribbon"></div><span>app/components/single-post.js</span><pre class="language-javascript line-numbers"><code class="javascript language-javas