class CartBase {
  constructor(CartPost) {
    this.modelPost = CartPost;
  }

  logInit(name) {
    if (!console) {
      return;
    }
    console.log(`Service ${name} initialized`);
  }
}

CartBase.$inject = ['CartPost'];

export default CartBase;

class CartBase {
  constructor(CartPost, CartCategory, CartTag, CartAttachment) {
    this.modelPost = CartPost;
    this.modelCategory = CartCategory;
    this.modelTag = CartTag;
    this.modelAttachment = CartAttachment;
  }

  logInit(name) {
    if (!console) {
      return;
    }
    console.log(`Service ${name} initialized`);
  }
}

CartBase.$inject = ['CartPost', 'CartCategory', 'CartTag', 'CartAttachment'];

export default CartBase;

Add all self defined models into base service injection.
Add all self defined models into base service injection.
