How to use the @ordercloud/angular-sdk.OrderCloudModule.forRoot function in @ordercloud/angular-sdk

To help you get started, we’ve selected a few @ordercloud/angular-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ordercloud-api / ngx-shopper / src / UI / Seller / src / app / app.module.ts View on Github external
import { CacheInterceptor } from '@app-seller/auth/interceptors/cache/cache-interceptor';

@NgModule({
  declarations: [AppComponent],
  imports: [
    // This app
    AppRoutingModule,
    AuthModule,

    // Third party
    BrowserAnimationsModule,
    BrowserModule,
    LayoutModule,
    NgProgressModule.forRoot(),
    NgProgressHttpModule,
    OrderCloudModule.forRoot(OcSDKConfig),
    CookieModule.forRoot(),
    ToastrModule.forRoot(),
    SharedModule.forRoot(),
  ],
  providers: [
    {
      provide: applicationConfiguration,
      useValue: ocAppConfig,
    },
    {
      provide: HTTP_INTERCEPTORS,
      useClass: AutoAppendTokenInterceptor,
      multi: true,
    },
    {
      provide: HTTP_INTERCEPTORS,
github ordercloud-api / ngx-shopper / src / UI / Buyer / src / app / app.module.ts View on Github external
// app modules
    AppRoutingModule,
    AuthModule,
    LayoutModule,

    /**
     * third party modules
     * only those that must be installed
     * with forRoot (except shared) should be defined here, all else
     * can live in shared
     */
    SharedModule,
    CookieModule.forRoot(),
    NgProgressModule,
    NgProgressHttpModule,
    OrderCloudModule.forRoot(OcSDKConfig),
    ToastrModule.forRoot(),
    NgxImageZoomModule.forRoot(),
  ],
  providers: [
    {
      provide: HTTP_INTERCEPTORS,
      useClass: AutoAppendTokenInterceptor,
      multi: true,
    },
    {
      provide: HTTP_INTERCEPTORS,
      useClass: RefreshTokenInterceptor,
      multi: true,
    },
    {
      provide: HTTP_INTERCEPTORS,

@ordercloud/angular-sdk

angular 6.0.0+ typescript sdk for building on top of the ordercloud platform

MIT
Latest version published 3 years ago

Package Health Score

49 / 100
Full package analysis