filipkis / endev

The simplest way to work with data
MIT License
11 stars 2 forks source link

Why the hell is this html not working???? #1

Closed giacomoalbe closed 9 years ago

giacomoalbe commented 9 years ago
<!DOCTYPE html>
<html>
<head>
    <title>Get Data from Users</title>

    <!--<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"></script>-->
    <script src="endev.full.js"/>
</head>
<body>
    <h2>Flickr results:</h2>
        <div from="flickr.photos.search fps" where="fps.text='cats' AND fps.api_key = '8ed78f6ad69cdaf8412b4ea2d7dbbe47'" provider="yql">
            <div from="fps.photo photo">
                <img ng-src="http://farm{{photo.farm}}.staticflickr.com/{{photo.server}}/{{photo.id}}_{{photo.secret}}.jpg">
            </div>
        </div>
</body>
</html>
filipkis commented 9 years ago

It didn't work because the script tag was not closed properly:

<script src="endev.full.js"></script>

So in other words, everything after opening of the script tag was considered to be part of the script and that's why nothing got rendered.