OfficeDev / Office-Addin-TaskPane-Angular

Template to get start started writing a TaskPane Office Add-in for the Angular framework using TypeScript
Other
13 stars 19 forks source link

Angular's template string interpolation {{ this_syntax }} does not work as expected #119

Open 0x80085 opened 1 year ago

0x80085 commented 1 year ago

Prerequisites

Please answer the following questions before submitting an issue.

Expected behavior

Angular's template string interpolation {{ this_syntax }} in the task pane html template works and shows the text specified - "Welcome" (from the property welcomeMessage = "Welcome";) - in app.component.ts

Current behavior

Angular's template string interpolation in the task pane does not display the text and does not replace the {{ string }} syntax

[innerText] oddly works tho.

Also tried other angular syntax like *ngIf="false" and that works

Some issue mentioned setting minify to false for webpack's HtmlCopyPlugin for taskâne.html and/or app.compoent.html but that had no effect.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. generate Taskpane with Angular + TypeScript project using yo office
  2. run the generated project
  3. Open taskpane
  4. See the text is not swapped out, {{ welcomeMessage }} is there (wrong)

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

image

Bregi commented 1 year ago

I'm having the same issue

dm-shlandii commented 1 year ago

Have the same issue with Outlook webaddin which was working ok some time ago (was built ~end of 2021 ). (With some minify: false flags as @0x80085 mentioned)

Tried to make separate angular app and make it to work with Officejs inside of outlook - interpolation worked. So my assumption that its something with custom webpack build flow and/or packages versions. But latest ng tool does not have ng-eject anymore so make it harder to compare.

jerome-albessard commented 1 year ago

same issue