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

26 lines
768 B
TypeScript
Raw Normal View History

2016-03-20 17:54:30 +02:00
///<reference path="../../../browser.d.ts"/>
import {Component, Input, OnInit} from 'angular2/core';
import {Photo} from "../../../../common/entities/Photo";
2016-03-26 17:25:48 +02:00
import {Directory} from "../../../../common/entities/Directory";
import {Utils} from "../../../../common/Utils";
2016-03-20 17:54:30 +02:00
@Component({
selector: 'gallery-photo',
templateUrl: 'app/gallery/photo/photo.gallery.component.html'
})
export class GalleryPhotoComponent{
@Input() photo: Photo;
2016-03-26 17:25:48 +02:00
@Input() directory: Directory;
2016-03-20 17:54:30 +02:00
constructor() {
}
getPhotoPath(){
2016-03-26 17:25:48 +02:00
console.log(Utils.concatUrls("/api/gallery",this.directory.path,this.directory.name,this.photo.name));
return Utils.concatUrls("/api/gallery",this.directory.path,this.directory.name,this.photo.name);
2016-03-20 17:54:30 +02:00
}
}