Skip to content

Commit e6e81fd

Browse files
authored
Update README.md
1 parent b9029b8 commit e6e81fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,15 @@ public class UiTest {
6464

6565
@AutoWired
6666
private VueJS vue;
67+
68+
@ModelAttribute(name = "vue")
69+
private VueJS getVue() {
70+
return this.vueJS;
71+
}
6772

6873
@GetMapping("test")
6974
public String index(ModelMap model) {
7075
vue.addData("message", "Hello world!");
71-
model.put("vue", vue);
7276
return "index";
7377
}
7478
}

0 commit comments

Comments
 (0)