Defines a Fragment component.
This component acts as a standard HTML fragment inside the HTML document.
You can use Fragment to write your own custom HTML code in a page. The code you write will be inserted in the page at the level the Fragment is defined.
To write the code, double-click on the Fragment component in your project to open the HTML editor.
You can directly write in the editor Ionic / Angular Template syntax such as :
<pre><ion-list>
<button ion-item *ngFor=”let item of items” (click)=”itemSelected(item)”>
</button>
</ion-list>
</pre>
You can add other components under a Fragment component, but you need to write some specific code to merge their template inside your fragment :
• add <pre><!–<c8o-sub-bean id=”xxx” />–></pre> to insert at this level the code of a given child component with id equals to its priority property
• add <pre><!–<c8o-sub-beans />–></pre> to insert at this level the code of all or remaining child components
Fragments can help advanced developers to customize their applications with the full power of Ionic and Angular frameworks.
For more information: HTML Elements, Ionic Components
Name | Description |
---|---|
Comment | Describes the object comment to include in the documentation report. This property generally contains an explanation about the object. |
Is active | Defines whether the component is active. |