Here I'm attempting to retrieve data stored in the mongodb via an angular controller on a jade template
html
head
script(src='/public/libs/angular.js')
script(src='/public/libs/angular-route.js')
script(src='/public/javascripts/processJson.js')
body
div(ng-app='app')
div(ng-controller='MainController as main')
div(ng-repeat='post in main.posts')
{{post.type}}(id='{{post.id}}')
block content
----here 's my mongodb console----
[{"_id":"55dafdc56358955b3cf8a49e","id":"1","type":"div"}]
-----generated html----
<html>
<head>
<script src="/public/libs/angular.js"></script>
<script src="/public/libs/angular-route.js"></script>
<script src="/public/javascripts/processJson.js"> </script>
</head>
<body>
<div ng-app="app" class="ng-scope">
<div ng-controller="MainController as main" class="ng-scope">
<div ng-repeat="post in main.posts" class="ng-binding ng-scope">
div(id='1')
</div>
</div>
</body>
</html>
The issue is it does not genearate the div element as expected