Skip to content

Instantly share code, notes, and snippets.

@Drvanon
Created December 5, 2013 16:48
Show Gist options
  • Select an option

  • Save Drvanon/7808966 to your computer and use it in GitHub Desktop.

Select an option

Save Drvanon/7808966 to your computer and use it in GitHub Desktop.
{
"titles": [
{
"id": 16,
"title": "Test6"
},
{
"id": 15,
"title": "Test5"
},
{
"id": 14,
"title": null
},
{
"id": 13,
"title": "Test3"
},
{
"id": 12,
"title": "Test2"
},
{
"id": 11,
"title": "Test"
},
{
"id": 8,
"title": "Kwetsbaar leven"
},
{
"id": 6,
"title": "Buitenboordmotor"
},
{
"id": 5,
"title": "Zout onder Onstwedde "
},
{
"id": 2,
"title": "Win een bioscoopbon"
},
{
"id": 33,
"title": "Robots"
}
]
}
app = anuglar.module('app', []);
app.controller('TitleCtrl', function ($scope, $http) {
var url = "/blogs/titles";
$http.jsonp(url).success(function(data) { console.log(data); })
});
<div class="sidecontainer" ng-app="app">
<aside id="interest" ng-controller="TitleCtrl">
<h2>Archief:</h2>
<p ng-if="error">{{ error }}</p>
<ol>
<li ng-repeat="title in titles"><a href=""></a></li>
</ol>
</div>
</aside>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment