5
Ich habe diesen Code auf Polymer 0.5 verwendet, aber auf Polymer 1.0 funktioniert es nicht.Polymer 1.0 benutzerdefinierte Ereignisse
Auf Kind-Element:
this.fire('login-start', {
username: this.username,
password: this.password,
me: this
});
Auf Mutterelement (app-main.html):
<dom-module name="app-main" on-login-start="{{checkLogin}}">
Und auf app-main.js:
checkLogin: function() {
alert("This is not working.");
}
Wie Ich feuere und erhalte benutzerdefinierte Ereignisse in Polymer 1.0?
Danke, es hat funktioniert. – paphonb