jquery-view-engine icon indicating copy to clipboard operation
jquery-view-engine copied to clipboard

How to use FontAwesome icons in templates, when it shows html instead of icon

Open sickvisu-com opened this issue 3 years ago • 1 comments

Idea is great, but I miss some wiki.

How to use icons in this engine?

Here is model:

{
      name: "Email",
      link: "#email",
      icon: "<i class=`fas fa-envelope`></i>", 
},

Here is template <span class="bind-icon"></span>

Here is html output (should be icon) <i class="fas fa-envelope"></i>

sickvisu-com avatar Mar 03 '21 09:03 sickvisu-com

This seemed to work, but I am not sure if thats correct solution: .view(div, {rawMarkup: true} );

sickvisu-com avatar Mar 03 '21 09:03 sickvisu-com