Load JST Manual

Asked

Viewed 64 times

2

I have an application in MVC that works perfectly, where it uses JST, and it loads everything right, this way:

inserir a descrição da imagem aqui

But now I’m adding this part in angular, and I can’t load the templates, I thought to load them manually, but I don’t even know if it’s possible.

Here is my component HTML

 <div id="gantEditorTemplates" style="display:none;">
    <div class="__template__" type="GANTBUTTONS">
    </div>
    <div class="__template__" type="TASKSEDITHEAD">
    </div>
    <div class="__template__" type="TASKROW">
    </div>
    <div class="__template__" type="TASKEMPTYROW">
    </div>
    <div class="__template__" type="TASKBAR">
    </div>
    <div class="__template__" type="CHANGE_STATUS">
    </div>
    <div class="__template__" type="TASK_EDITOR">
    </div>
    <div class="__template__" type="ASSIGNMENT_ROW">
    </div>
    <div class="__template__" type="RESOURCE_EDITOR">
    </div>
    <div class="__template__" type="RESOURCE_ROW">
    </div>

</div>

Here’s how I start the templates.

    $.JST = {
  _templates: new Object(),
  _decorators:new Object(),

Here is the Jquery file that takes the templates, but because it is an application in angular, I do not know how to do, so I thought to load them manually. Is it possible to do this? Is there any other way to do it ? I’ve done a lot of research on the Internet, but I couldn’t find any information that could help me.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.