BREAKING CHANGE Before Previously Angular would run in dev prod mode by default, and you could enable the dev mode by calling enableDevMode. After Now, Angular runs in the dev mode by default, and you can enable the prod mode by calling enableProdMode.
7 lines
185 B
TypeScript
7 lines
185 B
TypeScript
import {Injectable} from 'angular2/src/core/di';
|
|
import {print} from 'angular2/src/facade/lang';
|
|
|
|
@Injectable()
|
|
export class Console {
|
|
log(message: string): void { print(message); }
|
|
} |