Requirement: Read the AutoConfig element in a manifest file using office.js/angular app and will hide/show the content in my angular app in task pane based on the AutoConfig value.
The 1st approach I will put a custom tag i.e <AutoConfig>true</AutoConfig>
in the manifest file and this custom tag should read by the angular app/office.js in the task pane.
The 2nd approach will pass the URL parameter from the<SourceLocation https://localhost:3000/index.html?autoConfig=true> if it is not possible to give a custom tag in the manifest file (1st approach)
could you please help me how can I achieve this requirement?
I'm afraid that there is no way at present for an Office Add-in to read its own manifest. But you can vote for the same idea at Create an API for reading resource strings and URLs from the add-in manifest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With