1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-16 11:37:13 +02:00
pigallery2/frontend/app/gallery/photo/photo.gallery.component.ts
2016-03-20 16:54:30 +01:00

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;
}
}