Skip to content

Commit

Permalink
chore: update migration for TuiAmountPipeModule (#7982)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Jun 28, 2024
1 parent c9a6044 commit b4ca77b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export const IDENTIFIERS_TO_REPLACE: ReplacementIdentifierMulti[] = [
to: {name: 'TuiValidator', moduleSpecifier: '@taiga-ui/cdk'},
},
{
from: {name: 'TuiAmountModule', moduleSpecifier: '@taiga-ui/experimental'},
from: {name: 'TuiAmountPipeModule', moduleSpecifier: '@taiga-ui/experimental'},
to: {name: 'TuiAmountPipe', moduleSpecifier: '@taiga-ui/addon-commerce'},
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
```ts
import {TuiAmountPipeModule} from '@taiga-ui/experimental';
import {TuiAmountPipe} from '@taiga-ui/addon-commerce';

// ...

@Component({
standalone: true,
imports: [
// ...
TuiAmountPipeModule,
TuiAmountPipe,
],
})
export class Example {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
```html
{{ 100000 | tuiAmount : currency : align | async }}
<!-- {{ 100000 | tuiAmount : currency : align | async }} -->
<p>{{ 100000 | tuiAmount : '978' : 'left' | async }}</p>
<p>{{ 100000 | tuiAmount : 'EUR' : 'right' | async }}</p>
```

0 comments on commit b4ca77b

Please sign in to comment.