the-majesty-of-vuejs-2
the-majesty-of-vuejs-2 copied to clipboard
Demo APIs and homework solutions for "The Majesty of Vue.js 2"
Vue.component('story', { // ... methods: { // ... updateFavorite: function () { // 'update' — это просто имя пользовательского события // это может быть что угодно, например, fav-update this.$emit('update', this.story)...
Поскольку оригинальная книга уже не обновляется, при переводЕ она была обновлена.
Опечатка в 1 строке, т.к: - ВырастИт кого-то - ВырастЕт сам
Файл /codes/chapter8/8.5.html Строка 11: должно быть: Домашняя работа к главе 8, файл /homework/chapter8.html Строка 40: return this.current.horses < this.chariot.horses должно быть: return this.current.horses > this.chariot.horses Строка 48: return this.current.name ===...
fixed [Vue warn]: Error in render: "TypeError: Cannot read property 'writer' of undefined" found in --->
Объект current является undefined, поэтому вычисляемой свойство noChariot будет работать неправильно. Нужно либо поменять в свойстве noChariot сравнение на undefined, либо добавить ключ name со значением null в объекте current....
Well, after end chpater I see a new error. On page 241 show: ``` import StoriesAll from './components/StoriesAll.vue' import StoriesAll from './components/StoriesFamous.vue' ... ``` Well, on past lessons, file components...
Hi. On this chapter there're too many issues for UX of beginners. Put examples and images such pag. 243, when whit code write to this line, is impossible compiling source...