diff --git a/demo/index.html b/demo/index.html
index fd360fd8..7d4e9cc6 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -12,8 +12,6 @@
-
-
Loading...
diff --git a/lib/components/Redoc/redoc.html b/lib/components/Redoc/redoc.html
index cae6ce5d..0b3db080 100644
--- a/lib/components/Redoc/redoc.html
+++ b/lib/components/Redoc/redoc.html
@@ -1,2 +1,3 @@
+
diff --git a/lib/components/Redoc/redoc.js b/lib/components/Redoc/redoc.js
index 08f562d6..bb19f84c 100644
--- a/lib/components/Redoc/redoc.js
+++ b/lib/components/Redoc/redoc.js
@@ -4,12 +4,13 @@ import {RedocComponent, BaseComponent} from '../base';
import SchemaManager from '../../utils/SchemaManager';
import ApiInfo from '../ApiInfo/api-info';
import MethodsList from '../MethodsList/methods-list';
+import SideMenu from '../SideMenu/side-menu';
@RedocComponent({
selector: 'redoc',
providers: [SchemaManager],
templateUrl: './lib/components/Redoc/redoc.html',
- directives: [ApiInfo, MethodsList]
+ directives: [ApiInfo, MethodsList, SideMenu]
})
export default class Redoc extends BaseComponent {
constructor(schemaMgr) {
diff --git a/lib/index.js b/lib/index.js
index 5b9b6222..2bee56b1 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -1,17 +1,14 @@
'use strict';
import {bootstrap} from 'angular2/angular2';
-import {Redoc, SideMenu} from './components/index';
+import {Redoc} from './components/index';
import SchemaManager from './utils/SchemaManager';
export * from './components/index';
export function init(schemaUrl) {
- SchemaManager.instance().load(schemaUrl).then(
- () => {
- return bootstrap(SideMenu);
- }
- ).then(() => bootstrap(Redoc))
+ SchemaManager.instance().load(schemaUrl)
+ .then(() => bootstrap(Redoc))
.then(
() => console.log('ReDoc bootstrapped!'),
error => console.log(error)