Skip to content

Commit 2e53253

Browse files
committed
sudheerj#53 syntax-highlighting
1 parent 3a603fe commit 2e53253

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,14 +1578,14 @@ List of 300 VueJS Interview Questions
15781578

15791579
53. ### Is it possible to pass parameters for filters?
15801580
Yes, you can pass arguments for a filter similar to a javascript function. The generic structure of filter parameters would be as follows,
1581-
```javascript
1581+
```vue
15821582
{{ message | filterA('arg1', arg2) }}
15831583
```
15841584
In this case, filterA takes message expression as first argument and the explicit parameters mentioned in the filter as second and third arguments.
15851585
15861586
For example, you can find the exponential strength of a particular value
1587-
```javascript
1588-
{{ 2 | exponentialStrength(10) }} // prints 2 power 10 = 1024
1587+
```vue
1588+
{{ 2 | exponentialStrength(10) }} <!-- prints 2 power 10 = 1024 -->
15891589
```
15901590
15911591
**[⬆ Back to Top](#table-of-contents)**

0 commit comments

Comments
 (0)