This project was generated with Angular CLI version 11.2.2.
The self-signed SSL certificates used for development expire after 30 days. Run npm run ssl:config to create new ones when needed.
Run npm run dev-server for a dev server. Run npm run start:desktop to open Word and sideload the add-in automatically.
To run on the web, get the shareable link for a document you have access to, then run npm run start:web -- --document https://thedocumenturl to open Word in your default browser and sideload the add-in. If this doesn't work on the first try, you may need to visit https://localhost:4200 first to let your browser know to trust the self-signed certificate that is being used.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run npm run build:dev to build the project. The build artifacts will be stored in the dist/ directory. Use npm run build for a production build.
Run npm run test to execute the unit tests via Karma. Use npm run test:coverage to generate a coverage report in /coverage.
Run npm run e2e to execute the end-to-end tests via Protractor.
This template supports debugging using any of the following techniques:
- Use a browser's developer tools
- Attach a debugger from the task pane
- Use F12 developer tools on Windows 10
- Office add-in documentation
- More Office Add-in samples at OfficeDev on Github
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.