Skip to content

Commit 31d100b

Browse files
committed
add literal modifier for directives to migration guide
1 parent 080759d commit 31d100b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/guide/migration.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,29 @@ Fortunately, since the new directives are much simpler, you can master them more
665665
</div>
666666
{% endraw %}
667667

668+
### Directive `.literal` modifier <sup>deprecated</sup>
669+
670+
The `.literal` modifier has been removed, as the same can be easily achieved by just providing a string literal as the value.
671+
672+
For example, you can update:
673+
674+
``` js
675+
<p v-my-directive.literal="foo bar baz"></p>
676+
```
677+
678+
to just:
679+
680+
``` html
681+
<p v-my-directive="'foo bar baz'"></p>
682+
```
683+
684+
{% raw %}
685+
<div class="upgrade-path">
686+
<h4>Upgrade Path</h4>
687+
<p>Run the <a href="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of the `.literal` modifier on a directive.</p>
688+
</div>
689+
{% endraw %}
690+
668691
## Transitions
669692

670693
### `transition` Attribute <sup>deprecated</sup>

0 commit comments

Comments
 (0)