Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/client/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import { Config } from './shared/index';
import './operators';

/**
* This class represents the main application component. Within the @Routes annotation is the configuration of the
* applications routes, configuring the paths for the lazy loaded components (HomeComponent, AboutComponent).
* This class represents the main application component.
*/
@Component({
moduleId: module.id,
selector: 'sd-app',
templateUrl: 'app.component.html',
})

export class AppComponent {
constructor() {
console.log('Environment config', Config);
Expand Down
3 changes: 1 addition & 2 deletions src/client/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { NameListService } from '../shared/index';
templateUrl: 'home.component.html',
styleUrls: ['home.component.css'],
})

export class HomeComponent implements OnInit {

newName: string = '';
Expand Down Expand Up @@ -39,7 +38,7 @@ export class HomeComponent implements OnInit {
this.nameListService.get()
.subscribe(
names => this.names = names,
error => this.errorMessage = <any>error
error => this.errorMessage = <any>error
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/client/app/operators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// rxjs
//import 'rxjs/add/observable/throw';
import 'rxjs/add/observable/throw';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';

Expand Down
2 changes: 0 additions & 2 deletions src/client/app/shared/name-list/name-list.service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';

import 'rxjs/add/observable/throw';
// import 'rxjs/add/operator/do'; // for debugging

/**
Expand Down
1 change: 0 additions & 1 deletion src/client/app/shared/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ import { Component } from '@angular/core';
templateUrl: 'navbar.component.html',
styleUrls: ['navbar.component.css'],
})

export class NavbarComponent { }
3 changes: 1 addition & 2 deletions src/client/app/shared/toolbar/toolbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ import { Component } from '@angular/core';
templateUrl: 'toolbar.component.html',
styleUrls: ['toolbar.component.css']
})

export class ToolbarComponent {}
export class ToolbarComponent { }

2 changes: 1 addition & 1 deletion src/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
System.import('<%= BOOTSTRAP_MODULE %>')
.catch(function (e) {
console.error(e.stack || e,
'Not expecting this error? Report it at https://github.com/mgechev/angular2-seed/issues');
'Not expecting this error? Report it at https://github.com/mgechev/angular-seed/issues');
});
</script>
<% } %>
Expand Down