title: How can I trigger an action programmatically?
body: <p>I have this view </p>
  
  <pre><code>  App.ApplicationView = Em.View.extend({
      templateName: 'application',
  
      actions: {
        myAction: function() {
          //
        }
      }
    });
  </code></pre>
  
  <p>Suppose I want to trigger manually that action from another view method, such as didInsertElement, like:</p>
  
  <pre><code>  App.ApplicationView = Em.View.extend({
      templateName: 'application',
  
      actions: {
  
        sidebarShowHome: function() {
          this.set('sidebarIsHome', true);
          this.set('sidebarIsNotifications', false);
          this.set('sidebarIsArchive', false);
        },
      },
  
      didInsertElement: function() {
        this.actions.sidebarShowHome();
      }
    });
  </code></pre>
  
  <p>How could I do it? this.actions is undefined from within a view method.</p>