title: how to activate click event in a dom element (Angular 2)
body: <p>I need to load a component at loading</p>
  
  <pre><code>&lt;app-main id="tasks" [(ngModel)]="tasks"&gt;&lt;/app-main&gt;
  </code></pre>
  
  <p>And the call from js</p>
  
  <pre><code>public tasks;
  ngOnInit() {
      this.tasks.click();
  }
  </code></pre>
  
  <p>I have tryed <code>document.getElementById("tasks").click()</code> and <code>ngAfterViewInit()</code></p>