mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-23 21:40:32 +03:00
separate RedocModule from AppModule
This commit is contained in:
parent
5978c8dc5b
commit
221fd7bf7b
13
lib/app.module.ts
Normal file
13
lib/app.module.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
|
||||
import { RedocModule } from './redoc.module';
|
||||
import { Redoc } from './components/index';
|
||||
|
||||
@NgModule({
|
||||
imports: [ BrowserModule, RedocModule ],
|
||||
bootstrap: [ Redoc ],
|
||||
exports: [ Redoc ]
|
||||
})
|
||||
export class AppModule {
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
import { RedocModule } from './redoc.module';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
export function bootstrapRedoc() {
|
||||
return platformBrowserDynamic().bootstrapModule(RedocModule);
|
||||
return platformBrowserDynamic().bootstrapModule(AppModule);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { platformBrowser } from '@angular/platform-browser';
|
||||
import { RedocModuleNgFactory } from './redoc.module.ngfactory';
|
||||
import { AppModuleNgFactory } from './app.module.ngfactory';
|
||||
|
||||
export function bootstrapRedoc() {
|
||||
return platformBrowser().bootstrapModuleFactory(RedocModuleNgFactory);
|
||||
return platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { Redoc, REDOC_DIRECTIVES } from './components/index';
|
||||
import { REDOC_COMMON_DIRECTIVES } from './shared/components/index';
|
||||
|
@ -10,7 +10,7 @@ import { OptionsService, RedocEventsService, MenuService,
|
|||
import { SpecManager } from './utils/SpecManager';
|
||||
|
||||
@NgModule({
|
||||
imports: [ BrowserModule ],
|
||||
imports: [ CommonModule ],
|
||||
declarations: [ REDOC_DIRECTIVES, REDOC_COMMON_DIRECTIVES, REDOC_PIPES],
|
||||
bootstrap: [ Redoc ],
|
||||
providers: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user