fix(core): Provide setDevMode() to enable/disable development mode in Javascript.

This commit is contained in:
Alex Rickabaugh
2015-11-03 15:19:18 -08:00
parent 7343ef04ae
commit 4bb9c46cf1
9 changed files with 53 additions and 1 deletions
@@ -0,0 +1,7 @@
// #docregion enableDevMode
import {bootstrap, enableDevMode} from 'angular2/core';
import {MyComponent} from 'my_component';
enableDevMode();
bootstrap(MyComponent);
// #enddocregion
@@ -0,0 +1,5 @@
import {Component} from 'angular2/core';
@Component({selector: 'my-component', template: '<h1>My Component</h1>'})
export class MyComponent {
}