Skip to content

Commit

Permalink
fix: added standalone false to angular components/pipes (#3421)
Browse files Browse the repository at this point in the history
To make tolgee compatible with angular v19
  • Loading branch information
FredrikStroms authored Jan 20, 2025
1 parent 9841330 commit 50bda10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Component, Input } from '@angular/core';
template: `
<div class="loader-template" [innerHTML]="html"></div>
`,
standalone: false,
})
export class LoaderComponent {
@Input() html: string | undefined;
Expand Down
1 change: 1 addition & 0 deletions packages/ngx/projects/ngx-tolgee/src/lib/t.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { TranslateParams, TranslationKey } from '@tolgee/web';
@Component({
selector: '[t]',
template: ``,
standalone: false
})
export class TComponent implements OnInit, OnDestroy, OnChanges {
@Input() key: TranslationKey;
Expand Down
1 change: 1 addition & 0 deletions packages/ngx/projects/ngx-tolgee/src/lib/translate.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
@Pipe({
name: 'translate',
pure: false,
standalone: false,
})
export class TranslatePipe implements PipeTransform, OnDestroy {
private value = '';
Expand Down

0 comments on commit 50bda10

Please sign in to comment.