File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ In `systemjs.config.js`:
47
47
48
48
import { NgModule } from '@angular/core';
49
49
import { BrowserModule } from '@angular/platform-browser';
50
- import { HelloWorldComponent } from './app.component';
50
+ import { AppComponent } from './app.component';
51
51
import { Logger } from "angular2-logger/core"; // ADD THIS
52
52
53
53
@NgModule({
54
54
imports: [ BrowserModule ],
55
- declarations: [ HelloWorldComponent ],
56
- bootstrap: [ HelloWorldComponent ],
55
+ declarations: [ AppComponent ],
56
+ bootstrap: [ AppComponent ],
57
57
providers: [ Logger ] // AND THIS
58
58
})
59
59
export class AppModule { }
@@ -63,7 +63,7 @@ In `systemjs.config.js`:
63
63
@Component({
64
64
...
65
65
})
66
- export class App (){
66
+ export class AppComponent (){
67
67
constructor( private _logger: Logger ){
68
68
this._logger.error('This is a priority level 1 error message...');
69
69
this._logger.warn('This is a priority level 2 warning message...');
You can’t perform that action at this time.
0 commit comments