I have implemented the privacy policies for my app in the following way:
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>Privacy Policy</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-grid class="ion-margin">
<ion-row>
<ion-col size="12" sizeMd="8" offsetMd="2" [innerHTML]="'templates.core.privacy-policy.text' | translate">
</ion-col>
</ion-row>
</ion-grid>
</ion-content>
<app-custom-footer></app-custom-footer>
I am using innerHtml
in a <ion-col>
element which is loading my privacy policy text dynamically based on the user's current language.
Everything is working fine on dev but when deploying and uploading it into firebase hosting I am getting the following error:
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
Any idea what can be going wrong?
PD: this is how it looks on dev mode.
,
.... need to use innerHtml or somehow tell angular that the string is actually html...note that innerHtml is working on dev but not in production...thats the actual problem
– Armando Apr 10 '21 at 13:23