Skip to content

Commit

Permalink
added commas and colons while debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
vkaruri committed Dec 16, 2017
1 parent 24d4559 commit 17e907e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.img-container {
margin: 24px;
box-shadow: #555 1px 2px 8px 1px;
min-height: 660px;
min-height: 1200px;
width: 900px;
background-position: center;
background-repeat: no-repeat;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="row">
<div class="col-md-12">
<div class="img-container"><img src="{{image.url}}" width="1200px"></div>
<div class="img-container"><img src="{{image.url}}" width="1200px" height="1200px"></div>
</div>
</div>
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class ImageDetailComponent implements OnInit {

ngOnInit() {
this.image = this.imageService.getImage(
+this.route.snapshot.params['id'];
+this.route.snapshot.params['id']
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export class ImageFilterPipe implements PipeTransform {
return item.category === criteria;
});
}
});
};
}
6 changes: 3 additions & 3 deletions angular-gallery-app/gallery/src/app/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ImageDetailComponent } from "./image/image-detail.component"


export const appRoutes:Routes = [
{ path: "gallery", component: GalleryComponent }
{ path: "image/:id", component: ImageDetailComponent }
{ path: "gallery", component: GalleryComponent },
{ path: "image/:id", component: ImageDetailComponent },
{ path: "", redirectTo: "/gallery", pathMatch: 'full'}
]
];

0 comments on commit 17e907e

Please sign in to comment.