@cubejs-client/ngx
@cubejs-client/ngx provides Angular Module for easy integration Cube into an
Angular app.
Installation
First, install@cubejs-client/ngx using npm or yarn:
CubeClientModule to your app.module.ts file:
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: