title: How to pass 2 parameters separately to the EventEmitter to pass them to function in Angular 2?
body: <p>I have a function that takes 2 parameters</p>
  <p><code>students.component.ts</code></p>
  <pre><code>write(name : string, age : number) : void {
        ...
  }
  </code></pre>
  <p><code>students.component.html</code></p>
  <pre class="lang-html prettyprint-override"><code>&lt;app-student [student]=&quot;student&quot; (write)=&quot;write(**?**)&quot;&gt;&lt;/app-student&gt;
  </code></pre>
  <p>how can I pass 2 variables from a child component?</p>
  <p><code>student.component.ts</code></p>
  <pre><code>@Output() write = new EventEmitter();
  
  writeStudentInfo(name : string, age : number) {
      this.write.emit(**?**);
  }
  </code></pre>