Need to call API on node.js to get cars from Ionic


#1

This is an extract from my code using node.js. This will return all the cars from mongodb if I use for example Postman utility to test it.
Now I want to use ionic template blan just to display these cars in a list.
Can somebody help me with this?

router.get(’/’, function (req, res, next)
{
BilModel.find(function (err, bilarna)
{
if (err)
return next(err);
else
res.json(bilarna);
});
});