From 4086b49046bff2a656e7ab22bcbb5fdb563818b7 Mon Sep 17 00:00:00 2001 From: PatrickJS Date: Wed, 27 Apr 2016 13:25:19 -0700 Subject: [PATCH] feat(enableDebugTools): return ComponentRef allows for ``` bootstrap(App, [ ...HTTP_PROVIDERS, ...ROUTER_PROVIDERS ]) .then(enableDebugTools) ``` without breaking the rule of always returning a value in a promise --- modules/@angular/platform-browser/src/browser/tools/tools.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/@angular/platform-browser/src/browser/tools/tools.ts b/modules/@angular/platform-browser/src/browser/tools/tools.ts index d16308ccef..7a4763faa1 100644 --- a/modules/@angular/platform-browser/src/browser/tools/tools.ts +++ b/modules/@angular/platform-browser/src/browser/tools/tools.ts @@ -18,6 +18,7 @@ var context = global; */ export function enableDebugTools(ref: ComponentRef): void { context.ng = new AngularTools(ref); + return ref; } /**