UNPKG

@memberjunction/ng-react

Version:

Angular components for hosting React components in MemberJunction applications

58 lines 2.29 kB
/** * @fileoverview Angular module for React component integration in MemberJunction. * Provides components and services for hosting React components within Angular applications. * @module @memberjunction/ng-react */ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; // Components import { MJReactComponent } from './components/mj-react-component.component'; // Services import { ScriptLoaderService } from './services/script-loader.service'; import { ReactBridgeService } from './services/react-bridge.service'; import { AngularAdapterService } from './services/angular-adapter.service'; import * as i0 from "@angular/core"; /** * Angular module that provides React component hosting capabilities. * Import this module to use React components within your Angular application. * * @example * ```typescript * import { MJReactModule } from '@memberjunction/ng-react'; * * @NgModule({ * imports: [MJReactModule] * }) * export class MyModule {} * ``` */ export class MJReactModule { static { this.ɵfac = function MJReactModule_Factory(t) { return new (t || MJReactModule)(); }; } static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MJReactModule }); } static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [ ScriptLoaderService, ReactBridgeService, AngularAdapterService ], imports: [CommonModule] }); } } (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJReactModule, [{ type: NgModule, args: [{ declarations: [ MJReactComponent ], imports: [ CommonModule ], providers: [ ScriptLoaderService, ReactBridgeService, AngularAdapterService ], exports: [ MJReactComponent ] }] }], null, null); })(); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MJReactModule, { declarations: [MJReactComponent], imports: [CommonModule], exports: [MJReactComponent] }); })(); //# sourceMappingURL=module.js.map