angular-blocks
angular-blocks copied to clipboard
Failed to find data-block
Hi, I am trying to use 'angular-blocks' but I am receiving a warning.
My template has this code:
<script type="text/ng-template" id="/fc-layout.html">
<div data-block="fc">
<p>:fc</p>
</div>
</script>
and my custom page has the next code:
<div data-extend-template="/fc-layout.html">
<div data-block="fc">
...
</div>
</div>
I am getting empty pages and "Failed to find data-block=fc in /fc-layout.html" message in console.
Can anyone help with this problem?
Thanks
Almost 3 months later :-)...
Make sure your <script type="text/ng-template"> tags are siblings of your ng-app element. For example, if ng-app has been applied to <body> and <script type="text/ng-template"> tags are within <head>, then your templates will not be loaded by angular.