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
This commit is contained in:
PatrickJS 2016-04-27 13:25:19 -07:00 committed by Misko Hevery
parent 0fad9c2786
commit 4086b49046
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ var context = <any>global;
*/
export function enableDebugTools(ref: ComponentRef<any>): void {
context.ng = new AngularTools(ref);
return ref;
}
/**