Last active
December 24, 2018 13:01
-
-
Save YonathanMeguira/6731ac46b371c955fadb5890dde1b4ab to your computer and use it in GitHub Desktop.
append element with renderer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (let i = 0; i < 24; i++) { | |
const icon = (i < 7 || i > 18) ? "brightness_3" : "wb_sunny"; | |
const elementToAppend = `<div><mat-icon svgIcon=${icon}></mat-icon></div>`; | |
this.renderer.appendChild(elementToAppend); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment