Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
WEBVTT
00:00.970 --> 00:06.370
Sometimes, in our view, components, we want to have a data property that doesn't need to be reactive.
00:06.640 --> 00:11.890
This is easy to do with the composition API and I would recommend that any data properties in your component
00:11.890 --> 00:16.900
that don't need to be reactive you should make non-reactive as this will improve the performance of
00:16.900 --> 00:17.320
your app.
00:17.500 --> 00:23.650
So let's say we want to store the title of our app in a data variable, but we don't need it to be reactive.
00:23.680 --> 00:29.440
We don't need to be able to change the value of that title programmatically and see it updated on the
00:29.440 --> 00:29.990
template.
00:30.010 --> 00:37.090
All we need to do is set a constant or variable, so I'll create a constant called title and just set
00:37.090 --> 00:38.430
that equal to string.
00:38.440 --> 00:40.560
So I'm not using ref or reactive here.
00:40.600 --> 00:48.460
Just a bug standard constant which is set to string and I'll set this string to my amazing counter app
00:48.820 --> 00:53.620
and save that this constant should now be available in our template.
00:53.650 --> 01:01.960
So I'll jump up to the template and inside this table the class of home I'll add I hate to I will output
01:01.960 --> 01:10.810
this constant suitable curly braces and then title save that and we can now see title on the page.
01:11.290 --> 01:18.580
And if we change the string to my okay counter, which is a bit more apt, then we see that update on
01:18.580 --> 01:19.120
the page.1643
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.