Advertisement
Guest User

vuejs and modal not updated two way modal binding

a guest
Dec 5th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. var app = new Vue({
  3.           el: '#myapp',
  4.           data: {
  5.             name: dataDisplay
  6.           },
  7.           // define methods under the `methods` object
  8.           methods: {
  9.             greet: function (event) {
  10.               // `this` inside methods points to the Vue instance
  11.               console.log(event);
  12.               // `event` is the native DOM event
  13.              
  14.             }
  15.           }
  16.         });
  17. ---modal ---
  18.  
  19. <div id="addModal2" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true" align="left">
  20.     <div class="modal-dialog">
  21.         <div class="modal-content">
  22.             <div class="modal-header">
  23.                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  24.                 <h4 class="modal-title" id="addModal_title2"></h4>
  25.                
  26.             </div>
  27.  
  28.             <div class="modal-body" id=myapp>
  29.                 <table class="table">
  30.                     <p id="totalColRows" class="text-center"></p>
  31.                     <thead id="addModal_content2" align="center">
  32.                            
  33.                            
  34.                             {{name['sub_column']}}
  35.                             {{name['sub_row']}}
  36.                            
  37.                         <tbody id="addModal_content3" align="center">
  38.  
  39.                         </tbody>
  40.                     </table>
  41.  
  42.             </div>
  43.            
  44.             <div class="modal-footer">      
  45.             </div>
  46.         </div>
  47.     </div>
  48. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement