When I run the simple angularjs Code I get the error Uncaught TypeError: Cannot read property 'widget' of undefined

Hello All,

I am new to Syncfunction. I am trying to run this simple datepicker using the Syncfunction CDN but it throws me error.  I am not sure what I am doing wrong. Can anyone please help me? I have posted the question here also: https://stackoverflow.com/questions/63050102/why-does-this-simple-angularjs-using-syncfusion-throws-me-the-error-uncaught-typ

Here is the code:
    Testing EJAngular
     
 
   
   
   
    Testing EJAngular
     
 
   
   
   



4 Replies 1 reply marked as answer

AB AB July 23, 2020 10:46 AM UTC

I had forgotten to add few more CDN hence added it now and its working fine:
<link rel="stylesheet" rel='nofollow' href="http://cdn.syncfusion.com/14.3.0.49/js/web/bootstrap-theme/ej.web.all.min.css" />
<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
<script src="http://cdn.syncfusion.com/js/assets/external/jsrender.min.js" type="text/javascript"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js"></script>
<script src="https://code.angularjs.org/1.4.0-rc.2/angular.min.js"></script>
<script src="http://cdn.syncfusion.com/14.3.0.49/js/web/ej.web.all.min.js" type="text/javascript"></script>
<script src="http://js.syncfusion.com/demos/web/scripts/xljsondata.js" type="text/javascript"></script>
<script src="https://code.angularjs.org/1.4.0-rc.2/angular-route.min.js"></script>
<script src="http://cdn.syncfusion.com/14.3.0.49/js/common/ej.widget.angular.min.js"></script>
<script src="http://borismoore.github.io/jsrender/jsrender.min.js"></script>


MK Muthukrishnan Kandasamy Syncfusion Team July 23, 2020 11:34 AM UTC

 
Hi AB, 
 
Thanks for contacting Syncfusion support. 
 
We are glad to know that you have resolved your reported issue in your end. Also please check our AngularJS documentation in the below link. 
 
 
We have prepared simple sample, please refer to the below link. 
 
 
Description 
Link 
DatePicker getting started 
Behaviors 
Binding 
API reference 
 
 
Please let us know, if you need any further assistance. 
 
Regards, 
Muthukrishnan K 


Marked as answer

AB AB July 23, 2020 11:40 AM UTC

Thanks a lot for the reply and providing the code. I really happy that you took time to help me resolve this issue.

Actually I need one more small help. I struggling with one more issue can you please look this post and help me with it:


KR Keerthana Rajendran Syncfusion Team July 24, 2020 05:25 AM UTC

Hi AB, 

Most welcome and thanks for your feedback. Our Diagram team is working on the query posted with 156322 and our engineer will update that forum shortly. 

Regards, 
Keerthana.  


Loader.
Up arrow icon