Skip to content

Commit 155beb9

Browse files
committed
Add dynamic rendering updates to HelloVue component
Updated the template to include new expressions: uppercase transformation of 'hello', a static calculation, and a call to a newly added 'helloFunction'. These changes enhance the component's interactivity and display capabilities.
1 parent 7d7047b commit 155beb9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/HelloVue.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@ const data = {
99
};
1010
1111
const buttonDisabled = false;
12+
13+
function helloFunction(){
14+
return "Hello World";
15+
}
1216
</script>
1317

1418
<template>
15-
<h1 v-bind="data">{{hello}}</h1>
19+
<h1 v-bind="data">{{hello.toUpperCase()}}</h1>
20+
21+
<h2>{{ 100 * 200 }}</h2>
22+
23+
<h2>{{helloFunction()}}</h2>
1624

1725
<div :class="data.class" v-html="hello"></div>
1826

0 commit comments

Comments
 (0)