Skip to content

Commit 3a603fe

Browse files
committed
sudheerj#52 syntax-highlighting
1 parent ee1f443 commit 3a603fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,13 +1564,13 @@ List of 300 VueJS Interview Questions
15641564

15651565
52. ### How do you chain filters?
15661566
You can chain filters one after the other to perform multiple manipulations on the expression. The generic structure of filter chain would be as below,
1567-
```javascript
1567+
```vue
15681568
{{ message | filterA | filterB | filterB ... }}
15691569
```
15701570
In the above chain stack, you can observe that message expression applied with three filters, each separated by a pipe(|) symbol. The first filter(filterA) takes the expression as a single argument and the result of the expression becomes an argument for second filter(filterB) and the chain continue for remaining filters.
15711571

15721572
For example, if you want to transform date expression with a full date format and uppercase then you can apply dateFormat and uppercase filters as below,
1573-
```javascript
1573+
```vue
15741574
{{ birthday | dateFormat | uppercase }}
15751575
```
15761576

0 commit comments

Comments
 (0)