Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find data-block #11

Open
RafaGam opened this issue Dec 15, 2014 · 1 comment
Open

Failed to find data-block #11

RafaGam opened this issue Dec 15, 2014 · 1 comment

Comments

@RafaGam
Copy link

RafaGam commented Dec 15, 2014

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

@wmluke
Copy link
Owner

wmluke commented Mar 2, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants