Skip to content

Commit

Permalink
🚀 chore(menu.ts): export SafeHtmlPipe class to be able to use it in o…
Browse files Browse the repository at this point in the history
…ther components

The SafeHtmlPipe class was not exported, which made it impossible to use it in other components. Exporting the class makes it available for use in other components.
  • Loading branch information
jhcpeixoto committed Jun 16, 2023
1 parent 6d9e987 commit c5fc817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
@Pipe({
name: 'safeHtml'
})
class SafeHtmlPipe implements PipeTransform {
export class SafeHtmlPipe implements PipeTransform {
constructor(@Inject(PLATFORM_ID) private readonly platformId: any, private readonly sanitizer: DomSanitizer) {}

public transform(value: string): SafeHtml {
Expand Down

0 comments on commit c5fc817

Please sign in to comment.