Skip to content

Commit aaf96a2

Browse files
committed
Removed an unused stylesheet
1 parent 8efcaa0 commit aaf96a2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

APM - Final/app/products/product-detail.component.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

APM - Final/app/products/product-detail.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { StarComponent } from '../shared/star.component';
77

88
@Component({
99
templateUrl: 'app/products/product-detail.component.html',
10-
styleUrls: ['app/products/product-detail.component.css'],
1110
directives: [StarComponent]
1211
})
1312
export class ProductDetailComponent implements OnInit {
@@ -23,6 +22,7 @@ export class ProductDetailComponent implements OnInit {
2322
ngOnInit() {
2423
if (!this.product) {
2524
let id = +this._routeParams.get('id');
25+
this.pageTitle += `: ${id}`;
2626
this.getProduct(id);
2727
}
2828
}
@@ -34,7 +34,7 @@ export class ProductDetailComponent implements OnInit {
3434
error => this.errorMessage = <any>error);
3535
}
3636

37-
onBack() {
37+
onBack(): void {
3838
this._router.navigate(['Products']);
3939
}
4040

0 commit comments

Comments
 (0)