Open andreyrd opened 7 years ago
I'd like to be able to change the icon from JavaScript like so:
el.name = 'fa-chevron-up';
Simply setting the property doesn't change the icon, and I can't find any way to force it re-render or something.
hey, it should work now. I had something wrong deep inside change detection. Had to rewrite it 2 times ..
both el.name = "fa-chevron-up" and el.setAttribute("name","fa-chevron-up") should work
el.name = "fa-chevron-up"
el.setAttribute("name","fa-chevron-up")
I'd like to be able to change the icon from JavaScript like so:
el.name = 'fa-chevron-up';
Simply setting the property doesn't change the icon, and I can't find any way to force it re-render or something.