Skip to main content

Installation

First, install @cubejs-client/ngx using npm or yarn:
Now you can add CubeClientModule to your app.module.ts file:
The options object is passed directly to @cubejs-client/core. CubeClientModule provides CubeClient, which you can inject into your components or services:

API

CubeClient provides the same API methods as @cubejs-client/core. The difference is that instead of Promise it returns an Observable, which passes resultSet into the callback function. Also you can use RxJS Subject with a query using watch method: