Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
WEBVTT
00:00.390 --> 00:05.970
For the most part, two way data binding works exactly the same in the composition API as it does in
00:05.970 --> 00:07.090
the Options API.
00:07.110 --> 00:12.840
So just to demonstrate this, let's add an input to our page which allows us to modify this counter
00:12.840 --> 00:15.420
title which we have stored in this data.
00:15.750 --> 00:22.850
So after this dip with our counter and buttons, a lot of def with a class of edit and then inside that
00:22.860 --> 00:33.150
I'm going to add a H for heading with the text edit counter title colon and then a lot an input save
00:33.150 --> 00:33.480
that.
00:33.480 --> 00:39.210
I'm just going to add a bit of margin to the top of this def, so I'll jump down to the while we're
00:39.210 --> 00:39.480
at it.
00:39.480 --> 00:41.730
Let's just remove all of these old comments.
00:43.710 --> 00:45.270
And I don't see the script section.
00:45.900 --> 00:54.180
Target the edit class, which we just added to that depth and a lot of margin top of 60 pixels and save
00:54.180 --> 01:00.210
that and now let's bind this input to counter to this counter title ref.
01:00.330 --> 01:08.850
So to do that, we can just jump to this input and add a V model directive and just set it equal to
01:08.850 --> 01:10.590
this const counter title.
01:12.000 --> 01:12.930
Counter title.
01:13.290 --> 01:20.160
I'd say that we can now see our counter title in this import and if we change it, it's not updating
01:20.160 --> 01:21.510
the heading up here.
01:21.570 --> 01:23.640
Maybe we just need to refresh, try that again.
01:24.270 --> 01:30.060
And yet if we change the heading title in this import, we see it updated in our heading up here.1801
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.