Vue V-Show не рендеринг при изменении значенияHtml

Программисты Html
Anonymous
Vue V-Show не рендеринг при изменении значения

Сообщение Anonymous »

Когда я нажимаю кнопку, я хочу показать элемент HTML.
Метод щелчка меняет значение «ShowCreateSection», но HTML не отображается. this.showcreateSection). < /p>

Я должен как -то связывать переменную? ">

Код: Выделить всё

var CreateSectionContainer = new Vue({
el: '#create-section-container',
data:  {
showCreateSection: false
},
methods: {
showCreateSectionInput: function (event) {
console.log("showCreateSectionInput");
console.log(this);
this.showCreateSection = true;
}
}
});< /code>





Section Name
[i]

[/i] Add new section















Подробнее здесь: https://stackoverflow.com/questions/570 ... is-changed

Вернуться в «Html»