We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

[(ngModel)] not working

I'm using a ejMaskEdit widget like normal edit, but the 2-way binding is not working.  When i edited the textbox i get the undefined value from attribute when leave the textbox. Also, when i bind a ejButton widget to a event handler is executed twice, this not happend with a normal button.

I attached a example, please try the "widgets" tab.

Thanks in advance.

Attachment: angular2seeds_c0e3c6b2.zip

2 Replies

BR Bruno Reato February 2, 2017 10:32 AM UTC

Thanks for your help Francis!

FP Francis Paul Antony Raj Syncfusion Team February 3, 2017 09:12 AM UTC

Hi Bruno, 
Thanks for contacting Syncfusion Suppot. 
Query #1): MaskEdit- 2-way binding is not working 
We have created a new incident under your account regarding this query. Please track that incident for further details by login with your Syncfusion account. 
Query #2): ejButton widget event handler is executed twice 
We are reproducing the same issue in our end. Initial click event raises from angular. Latter click event triggers due to ejButton. We can identify origin of click event using “model” (event argument). So, please use the below code to prevent the “click” event triggering from Angular.  
      if (!ej.isNullOrUndefined(args.model))   
        //your change event code.  
        console.log("Button Click event Triggered.");      
        //where args.model comprises of model values of Button  
        //args.model doesn’t present in the event raises from angular  
Francis Paul A.  

Live Chat Icon For mobile
Up arrow icon