* Loads the icon after the component has finished rendering.
()
| 101 | * Loads the icon after the component has finished rendering. |
| 102 | */ |
| 103 | componentDidLoad() { |
| 104 | /** |
| 105 | * Addresses an Angular issue where property values are assigned after the 'connectedCallback' but prior to the registration of watchers. |
| 106 | * This enhancement ensures the loading of an icon when the component has finished rendering and the icon has yet to apply the SVG data. |
| 107 | * This modification pertains to the usage of Angular's binding syntax: |
| 108 | * `<ion-icon [name]="myIconName"></ion-icon>` |
| 109 | */ |
| 110 | if (!this.didLoadIcon) { |
| 111 | this.loadIcon(); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Disconnect the IntersectionObserver. |