Open pedroriverove opened 6 years ago
$('#templatelog')
does not work correctly, because your template #templatelog
is inside of template #noti-log
, thats incorrect. You have to move the second template outside of the template. Otherwise $('#templatelog')
will not work. Thats because content is "inert".
https://www.html5rocks.com/en/tutorials/webcomponents/template/
The
<template id="noti-log">
is showing it perfectly. When I try to show the other service in<template id="templatelog">
I get the following error: "Uncaught TypeError: Invalid template! Template should be a" string "but" undefined "was given as the first argument for mustache # render ( template, view, partials) ". I do not know how to show the data in nested templates.