Hello,
I'm trying to figure out how to use this.
I installed the rest-api package with bower and added this to my index.html:
<rest-api url="http://localhost:3000">
<rest-api-resource name="products" collection="{{products}}"></rest-api-resource>
</rest-api>
and this to my index.js:
import 'bower_components/webcomponentsjs/webcomponents-lite'
I am using webpack to serve the app. The elements render but nothing happens, e.g. no API request, etc.
Am I missing any steps? Thanks.
Hello,
I'm trying to figure out how to use this.
I installed the
rest-apipackage with bower and added this to myindex.html:and this to my
index.js:I am using webpack to serve the app. The elements render but nothing happens, e.g. no API request, etc.
Am I missing any steps? Thanks.