Advertisement
overridelogic

ModelView Example

Dec 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.37 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head><title>My first template</title></head>
  4. <body>
  5.  
  6. <h1><span mv-each="words:word" mv-value="$.word"></span></h1>
  7.  
  8. <script type="text/javascript"
  9. src="https://cdn.jsdelivr.net/npm/modelview@latest/bundle.js"></script>
  10.  
  11. <script type="text/javascript">
  12.   var words = ['Hello ', 'World!'];
  13.   modelview.render();
  14. </script>
  15.  
  16. </body>
  17. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement