This commit is contained in:
jonaswinkler
2020-12-11 17:57:56 +01:00
parent b452816a29
commit 0b7ffa31d1
6 changed files with 30 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'documentTitle'
})
export class DocumentTitlePipe implements PipeTransform {
transform(value: string): unknown {
if (value) {
return value
} else {
return "(no title)"
}
}
}