This project is showing how you can use Office.js and Angular 4 to build an Excel add-in.
-
To run the add-in, you need side-load the add-in within the Excel application. The section below describes the way of side-loading of manifest file in different platforms.
-
On Windows, follow this tutorial.
-
On macOS, move the manifest file
office-add-in-angular-manifest.xml
to the folder/Users/{username}/Library/Containers/com.microsoft.Excel/Data/Documents/wef
(if not exist, create one) -
For Excel Online, use the upload my add-in button from the add-in command dialog to upload the manifest file.
-
-
Run
ng serve
ornpm start
in the terminal for a dev server. -
Open Excel and click the Add-in to load.
Follow the step by step tutorial here.
To learn more about JavaScript API for Office (Office.js), please check here.