Skip to content
Permalink
Browse files

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
  • Loading branch information...
PatrickJS authored and mhevery committed Apr 27, 2016
1 parent 0fad9c2 commit 4086b49046bff2a656e7ab22bcbb5fdb563818b7
Showing with 1 addition and 0 deletions.
  1. +1 −0 modules/@angular/platform-browser/src/browser/tools/tools.ts
@@ -18,6 +18,7 @@ var context = <any>global;
*/
export function enableDebugTools(ref: ComponentRef<any>): void {
context.ng = new AngularTools(ref);
return ref;
}

/**

0 comments on commit 4086b49

Please sign in to comment.
You can’t perform that action at this time.