From 592e74ffc8a0d09ec07e90e72e71702ab37734ba Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Thu, 26 Sep 2019 14:21:42 -0700 Subject: [PATCH] feat(core/utils): Add 'api' to window.spinnaker object for interactive debugging (#7439) window.spinnaker.api.all('/credentials').get().then(accounts => console.log(accounts)); --- app/scripts/modules/core/src/utils/consoleDebug.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/scripts/modules/core/src/utils/consoleDebug.ts b/app/scripts/modules/core/src/utils/consoleDebug.ts index 5c55addaa80..f2b939bd7bf 100644 --- a/app/scripts/modules/core/src/utils/consoleDebug.ts +++ b/app/scripts/modules/core/src/utils/consoleDebug.ts @@ -2,12 +2,14 @@ import { module } from 'angular'; import IInjectorService = angular.auto.IInjectorService; import { Application } from 'core/application'; +import { API } from '../api'; const injectables: string[] = []; export class ConsoleDebugWindow { public application: Application; public $injector: IInjectorService; + public api = API; [key: string]: any; public addInjectable(key: string): void {