5
मैं इस कोड का उपयोग पॉलिमर 0.5 पर कर रहा था लेकिन पॉलिमर 1.0 पर यह काम नहीं कर रहा है।पॉलिमर 1.0 कस्टम इवेंट
चाइल्ड तत्व पर:
this.fire('login-start', {
username: this.username,
password: this.password,
me: this
});
पेरेंट तत्व पर (एप्लिकेशन-main.html):
<dom-module name="app-main" on-login-start="{{checkLogin}}">
और पर एप्लिकेशन-main.js:
checkLogin: function() {
alert("This is not working.");
}
कैसे कर मैं पॉलिमर 1.0 में कस्टम घटनाओं को आग और पकड़ता हूं?
धन्यवाद यह काम किया। – paphonb