protected function registerJs()
    {
        VueAsset::register($this->getView());

        $options = Json::htmlEncode($this->clientOptions);
        $js = "var app = new Vue({$options})";
        $this->getView()->registerJs($js, View::POS_END);
    }