0

I have integrated Vue Js in the main MVC application. I have a requirement wherein at some place, dynamic html is loading from partial view. I want to bind vue js v-model into this dynamic html. For example, in my partial view, I have :

<input type="text" id="firstName" v-model="user.firstName" />

Now when I get the html from partial view and load it either by v-html or by jquery html(''), it is not binding vue js model.

Please guide on this.

Vishal
  • 127
  • 9

1 Answers1

0

I managed to solve it by :

const vue2 = {                        
              template: nodeData.NodeProperties,
              el: "#app2"
             };
new Vue(vue2).$mount();
Vishal
  • 127
  • 9