How to set id of JS render template to ionic components?

I have a render template like below

 <script id="templatesample" type="text/x-jsrender">
    <div class="cont-bg">
       <div class="listrightdiv">
           <span class="templatetext">{{>Name}}</span> <span class="designationstyle">{{>Designation}}</span>
           <div class="aboutstyle">
            {{>About}}
           </div>
       </div>
    </div>
</script>

In my custom component i have to pass the id of the script template

But I’m unable to pass the value with “#” that throws error message
Error: Syntax error, unrecognized expression: ##templatesample

On searching for general solutions, even with anchor tag there was issue with assigning href


Is there any restrictions in ionic to use “#” tags?

Any suggestions?