We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9029b8 commit e6e81fdCopy full SHA for e6e81fd
1 file changed
README.md
@@ -64,11 +64,15 @@ public class UiTest {
64
65
@AutoWired
66
private VueJS vue;
67
+
68
+ @ModelAttribute(name = "vue")
69
+ private VueJS getVue() {
70
+ return this.vueJS;
71
+ }
72
73
@GetMapping("test")
74
public String index(ModelMap model) {
75
vue.addData("message", "Hello world!");
- model.put("vue", vue);
76
return "index";
77
}
78
0 commit comments