1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/gallery/directory/directory.gallery.component.ts

27 lines
641 B
TypeScript
Raw Normal View History

2016-03-21 03:05:51 +08:00
///<reference path="../../../browser.d.ts"/>
2016-05-04 23:20:21 +08:00
import {Component, Input} from '@angular/core';
2016-03-21 03:05:51 +08:00
import {Directory} from "../../../../common/entities/Directory";
2016-05-04 23:20:21 +08:00
import {RouterLink} from "@angular/router-deprecated";
2016-03-27 02:24:12 +08:00
import {Utils} from "../../../../common/Utils";
2016-03-21 03:05:51 +08:00
@Component({
selector: 'gallery-directory',
2016-03-26 23:25:48 +08:00
templateUrl: 'app/gallery/directory/directory.gallery.component.html',
2016-05-01 16:28:05 +08:00
directives:[RouterLink],
2016-03-21 03:05:51 +08:00
})
export class GalleryDirectoryComponent{
@Input() directory: Directory;
constructor() {
}
2016-03-27 02:24:12 +08:00
getDirectoryPath(){
return Utils.concatUrls(this.directory.path,this.directory.name);
}
2016-03-21 03:05:51 +08:00
}