Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 899 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 899 Bytes

Cumulus use example for Angular

npm install
npm start

Guide

Check the ./src/main.ts

Configuration should happen as early as possible in your application's lifecycle.

import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

// @ts-ignore
import { protect } from 'cumulus';

protect({
  key: 'KMsB9W4hZCejJ6D1fiESP',
});

if (environment.production) {
  enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
  .catch(err => console.error(err));

Note: Cumulus v0.0.1 not supported to typescript, but you can use with @ts-ignore comment. we know this issue and going to resolve ASAP.