Closed xorbis closed 7 years ago
New to Vue and Vue-Strap, I can't get this to work. Any help would be really appreciated.
<!doctype html> <html> <head> <title>Vue Test</title> <meta charset="utf-8"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> </head> <body> <v-select :options="options"></v-select> <script src="js/vue.min.js"></script> <script src="js/vue-strap.min.js"></script> <script> new Vue({ components: { vSelect: VueStrap.select }, data: { options: ["One", "Two", "Three"] } }); </script> </body> </html>
Added a div with id="main". Added el: "#main" in new Vue. Works.
New to Vue and Vue-Strap, I can't get this to work. Any help would be really appreciated.