loopback relation include to json

JavaScript
User.find({include: ['posts', 'orders']}, function() { /* ... */ });// Return all post owners (users), and all posts and orders of
// each owner. The posts also include images.
Post.find({include: {owner: [{posts: 'images'} , 'orders']}}, 
          function() { /* ... */ });Post.find({include: {owner: [{posts: 'images'} , 'orders']}}, function(err, posts) {
 posts.forEach(function(post) {
   // post.owner points to the relation method instead of the owner instance
   var p = post.toJSON();
   console.log(p.owner.posts, p.owner.orders);
 });
 //... 
});<ion-datetime displayFormat="HH:mm" [(ngModel)]="myDate" minuteValues="0,30">

Source

Also in JavaScript: