2016-06-04 19 views

Antwort

2

es herausgefunden,

Es gibt zwei Möglichkeiten, es zu tun:

<div (click)="myAction()"></div> 
<div on-click="myAction()"></div> 

Dann in Ihrer Komponente:

Class({ 
     constructor: function() {}, 
     myAction: function() { 
      console.log("hi world"); 
     } 
     } 
Verwandte Themen