yuche / vue-strap

Bootstrap components built with Vue.js
http://yuche.github.io/vue-strap/
MIT License
4.71k stars 935 forks source link

Examples are not working #461

Closed xorbis closed 7 years ago

xorbis commented 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>
xorbis commented 7 years ago

Added a div with id="main". Added el: "#main" in new Vue. Works.