Skip to content

Commit

Permalink
feat(core/utils): Add 'api' to window.spinnaker object for interactiv…
Browse files Browse the repository at this point in the history
…e debugging (spinnaker#7439)

window.spinnaker.api.all('/credentials').get().then(accounts => console.log(accounts));
  • Loading branch information
christopherthielen committed Sep 26, 2019
1 parent 585ac15 commit 592e74f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/scripts/modules/core/src/utils/consoleDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 592e74f

Please sign in to comment.