mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
22 lines
450 B
TypeScript
22 lines
450 B
TypeScript
|
///<reference path="../../../browser.d.ts"/>
|
||
|
|
||
|
import {Component, Input, OnInit} from 'angular2/core';
|
||
|
import {Photo} from "../../../../common/entities/Photo";
|
||
|
|
||
|
@Component({
|
||
|
selector: 'gallery-photo',
|
||
|
templateUrl: 'app/gallery/photo/photo.gallery.component.html'
|
||
|
})
|
||
|
export class GalleryPhotoComponent{
|
||
|
@Input() photo: Photo;
|
||
|
|
||
|
constructor() {
|
||
|
}
|
||
|
|
||
|
getPhotoPath(){
|
||
|
return "/api/gallery/"+this.photo.name;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|