Skip to content

Commit

Permalink
fix pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Sams committed Jan 24, 2024
1 parent 6082134 commit 45c9942
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/app/pipes/full-name.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Pipe, PipeTransform } from "@angular/core";
import { Injectable, Pipe, PipeTransform } from "@angular/core";
import { Mitglied } from "../models/Mitglied";
import { Anschrift } from "../models/Anschrift";

@Pipe({
name: "fullName",
})
@Injectable()
export class FullNamePipe implements PipeTransform {
transform(value: Mitglied | Anschrift): string {
public transform(value: Mitglied | Anschrift): string {
if (!value) return "";

const name = value.vorname + " " + value.zuname;
Expand Down
2 changes: 1 addition & 1 deletion src/app/providers/display-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { InjectionToken, Provider } from "@angular/core";

export const DISPLAY_MODEL = new InjectionToken("DISPLAY_MODEL");

export function displayModel(component: any): Provider {
export function displayModel(component: any) {
return {
provide: DISPLAY_MODEL,
useClass: component,
Expand Down

0 comments on commit 45c9942

Please sign in to comment.