[Vuejs]-How can I add vue in mvc html tag?

0๐Ÿ‘

โœ…

You can use the third parameter of checkbox to add attributes. Underscores get converted into dashes in Razor. You also need the @ for reserved keywords, like ref.

@Html.CheckBox("isNewlyEnrolled", false, new { @v_model = "checkboxchecked", @ref = "checkbox" })

0๐Ÿ‘

you have conflicting names
change the method name and then try again
Conflicting method and data names.

Leave a comment