fix(core): Provide setDevMode() to enable/disable development mode in Javascript.
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
Reference in New Issue
Block a user