I am using the feathers js client locally to access a remote feathers server. I am using handlebars (foundation 6 Yeti setup) on the client.
This code will pass either an [Object, Object] (the original response) or a json string to the console.
pageService.get().then(function(pages) {
var pageList = JSON.stringify(pages.data);
console.log(pageList);
var pageObj = JSON.parse(pageList);
console.log(pageObj);
How can i get that into handlebars as a variable.
<h4>List Page SEO</h4>
{{ pageList }}
<div id="page-info">
{{#each pageObj}}
<h2>{{title}}</h2>
<h2>{{slug}}</h2>
<p>{{description}}</p>
{{/each}}
</div>