Angular 1 #770
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#770
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the demo for Angular 1, it states:
But how would you add this to an angular 1 app? In addition to installing with npm, I added:
<script src="xlsx.full.min.js"></script>
to my my index.html. My IDE now autocompletes the utility functions, butgrunt serve
still stateserror 'XLSX' is not defined no-undef
If you installed with NPM, you probably need to point to the correct location of the dist file, which would be something like
node_modules/xlsx/dist/xlsx.full.min.js
.Upon reflection, it looks like we forgot to upload the HTML file in the angular demo. All it does is use a script tag. We will add it shortly.
@SheetJSDev I have
<script src="bower_components/js-xlsx/dist/xlsx.full.min.js"></script>
which should be the correct address for me. I was mostly curious if I needed to add any dependencies in the controller too. For instance, are the angular-ui-grid dependencies required for js-xlsx?No those are for the demo only (which integrates with ui grid). The raw library is usable as-is with no additional dependencies.
@SheetJSDev I guess it was being deleted from my index.html every time the server reloaded, but it works now. Thanks.