Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Dynamically inject ionic components

$
0
0

@akashpal wrote:

 sample: any = `<ion-row>
  <ion-col col-6>
    <span>Akash Pal</span>
  </ion-col>
  <ion-col col-6 text-right>
    2019-4-15
  </ion-col>
</ion-row>

<ion-row>
  <ion-col class="underline" col-6>
    Name of the Employee/Participant
  </ion-col>
  <ion-col col-1></ion-col>
  <ion-col class="underline" col-5 text-right>
    Date
  </ion-col>
</ion-row>

<ion-row padding-vertical>
  <ion-col col-2>
    <ion-checkbox [(ngModel)]="submit"></ion-checkbox>
  </ion-col>
  <ion-col col-10>I agree to all</ion-col>
</ion-row>

<div *ngIf="submit" class="button-center">
  <button ion-button color="light" round (click)="completeOnboarding()">Finish Onboarding</button>
</div>`;

Template

<p [innerHTML]="sample | sanitizeHtml"></p>

The ionic components are not rendered, is there any solution to it?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>