mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 11:26:37 +03:00
19 lines
418 B
JavaScript
19 lines
418 B
JavaScript
'use strict';
|
|
|
|
import {bootstrap} from 'angular2/angular2';
|
|
import {Redoc} from './components/index';
|
|
import SchemaManager from './utils/SchemaManager';
|
|
|
|
export * from './components/index';
|
|
|
|
export function init(schemaUrl) {
|
|
SchemaManager.instance().load(schemaUrl)
|
|
.then(() => bootstrap(Redoc))
|
|
.then(
|
|
() => console.log('ReDoc bootstrapped!'),
|
|
error => console.log(error)
|
|
);
|
|
}
|
|
|
|
window.Redoc = Redoc;
|