angular-blocks icon indicating copy to clipboard operation
angular-blocks copied to clipboard

Failed to find data-block

Open RafaGam opened this issue 11 years ago • 1 comments

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

RafaGam avatar Dec 15 '14 13:12 RafaGam

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.

wmluke avatar Mar 02 '15 20:03 wmluke