vue2 style 如何绑定?

vue2 style 如何绑定?

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Title</title>
    <script src="./js/vue-2.6.14.min.js"></script>
</head>

<body>
    <div id="app" :style="{'backgroundColor':bgc}">
        {{msg}}
    </div>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                bgc: '#079656',
                msg: 'vue style 绑定方法'
            }
        });
    </script>
</body>

</html>