Created
December 5, 2013 16:48
-
-
Save Drvanon/7808966 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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" | |
| } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app = anuglar.module('app', []); | |
| app.controller('TitleCtrl', function ($scope, $http) { | |
| var url = "/blogs/titles"; | |
| $http.jsonp(url).success(function(data) { console.log(data); }) | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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