From f9a3e42f159ccf797106f90f9b890e93c8fe6cab Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 12 Oct 2016 23:05:30 +0300 Subject: [PATCH 1/8] Fix destroy/reinit --- lib/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.ts b/lib/index.ts index 1ad46f3a..e8b463d2 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -48,6 +48,7 @@ export function init(specUrl:string, options:any = {}) { export function destroy() { moduleRef.destroy(); + moduleRef = null; }; From 5597a58846eb350792780234a445d5f0e64a11d7 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 14 Oct 2016 11:44:18 +0300 Subject: [PATCH 2/8] Do spec load after bootstrap --- lib/components/Redoc/redoc.html | 2 +- lib/components/Redoc/redoc.ts | 55 +++++++++++++++++++++------------ lib/index.ts | 9 +----- lib/redoc.module.ts | 5 ++- lib/utils/SpecManager.ts | 6 +++- 5 files changed, 47 insertions(+), 30 deletions(-) diff --git a/lib/components/Redoc/redoc.html b/lib/components/Redoc/redoc.html index 0a4bcaa4..8df000b0 100644 --- a/lib/components/Redoc/redoc.html +++ b/lib/components/Redoc/redoc.html @@ -1,4 +1,4 @@ -
+