diff --git a/demos/component-docs/index.ts b/demos/component-docs/index.ts index 2af4f048f8..6c648f5a5f 100644 --- a/demos/component-docs/index.ts +++ b/demos/component-docs/index.ts @@ -28,9 +28,14 @@ class DemoApp { window.addEventListener('message', (e) => { zone.run(() => { if (e.data) { + var data = JSON.parse(e.data); if (data.hash) { this.nextPage = helpers.getPageFor(data.hash.replace('#', '')); + this.app.getComponent('leftMenu').enable(false); + if (data.hash === 'menus') { + this.app.getComponent('leftMenu').enable(true); + } } else { this.nextPage = actionSheets.BasicPage; }