I'm a newbie when it comes to AngularJS and KeystoneJS, and I would really appreciate your help. Thank you guys.
I have done a serving mechanism for my Angular application which uses Express's express.static. At this point, my application can successfully load regular html-files from different locations to a particular page with the code below.
controller.js:
.controller('Ctrl', function ($scope, $http) {
$scope.html = "testing";
$http({
url: 'content/content1.html',
method: 'GET',
responseType: 'text'
}).success(function(data) {
$scope.html = data;
}).error()
$scope.message = 'Hello';
});
page.html:
<div ng-bind="html"></div>
routing.js
app.use(express.static(__dirname + '/content'));
Next, I would like to load content from a separate KeystoneJS CMS to this particular page in my own Angular application. Basically, I just want to be able to edit some content with KeystoneJS and publish the content on my separate Angular application automatically after that.
1) How can I get the pages exported from Keystone in a form of a html-page?