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

Help for Spreadsheet

Hello. 

I want to use the Spreadsheet in AngularJS, but I do not see anything on the screen.

I am trying to see the following example:

Can you send me an other example code for AngularJS?

I send them the test code I am using.

Thanks.


Attachment: Prueba_840981b0.zip

3 Replies

SI Silambarasan I Syncfusion Team April 11, 2017 01:09 PM UTC

Hi Juan, 
 
Thank you for using Syncfusion products. 
 
We have checked with the attached sample and we found that the cause of this issue is due to the ‘ej.widget.angular.min.js’ script is not referred in index.html and ‘ejangular’ module is not injected as a dependency in app.js.  Please refer the below modified code example. 
 
Index.html 
 
<!DOCTYPE html> 
<html lang="es" ng-app="app"> 
<head> 
    //...    
       <script src="https://cdn.syncfusion.com/15.1.0.41/js/web/ej.web.all.min.js"></script> 
       <!--Add custom scripts here --> 
  
       <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular.min.js"></script> 
       <script src="https://cdn.syncfusion.com/15.1.0.41/js/common/ej.widget.angular.min.js"></script> 
    <!-- Angular App--> 
    <script src="app.js"></script> 
 
</head> 
 
<body ng-controller="AppCtrl"  > 
        
    //... 
        <div id="Spreadsheet" ej-spreadsheet e-scrollsettings-height="600" e-sheets = "sheetData" e-loadComplete="loadComplete" > 
        </div> 
    //... 
</body> 
</html> 
 
 
 
App.js 
 
angular.module('app', ['ejangular'])  
  
.controller('AppCtrl', function ($scope ) { 
     
       //... 
}); 
 
//... 
 
 
 
For your convenience, we have modified the given sample and the same can be downloaded from following location, 
 
Also, please refer the Spreadsheet local data binding sample from the below link, 
 
Online Help DOC Link: 
 
Regards, 
Silambarasan 



JU Juan April 11, 2017 01:26 PM UTC

Thank you very much!!!!

It works perfectly!

Thanks also for the help links that I had not found.

Greetings.


SI Silambarasan I Syncfusion Team April 12, 2017 12:07 PM UTC

Hi Juan, 
 
Thanks for your update.  We are happy to hear that your issue has been resolved. 
Kindly get back to us if you need any further assistance. 
 
Regards, 
Silambarasan 


Loader.
Up arrow icon