taniarascia / comments

Comments
7 stars 0 forks source link

getting-started-with-vue/ #10

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Vue Tutorial: An Overview and Walkthrough | Tania Rascia

We're in a golden era of JavaScript libraries and frameworks. More and more companies are building out full, dynamic web apps in addition to…

https://www.taniarascia.com/getting-started-with-vue/

ivan-alles commented 3 years ago

I started learning Vue with this tutorial. It covers all steps from installing Vue to the deployment on GitHub Pages. The tutorial helped me to finish my first app. Great work!

arturmilkowski commented 3 years ago

I agree. It is one of the best Vue tutorials for start. It shows key aspects of this library.

maugeya commented 3 years ago

Excellent tutorial, really helped me to understand the basics of Vue but there is one typo in the code. In the block:

<td v-else>
    <button @click="editMode(employee.id)">Edit</button>
    <button @click="$emit('delete:employee', employee.id)">Delete</button>
  </td>

The second button should be

<button @click="$emit('delete:employee', employee)">Delete</button>
aalainn commented 3 years ago

Really great overview over the main aspects of vue.js! It's also a great reference for people like me who forget fast what they learned :-) Thanks alot!

keperkjr commented 3 years ago

This was a really well written intro article. Learned a lot. Thanks! 👍

hoppinjohnz commented 3 years ago

I went through this tutorial twice and a half because it is so well-written and fun to do. 2.5 times also helped me to convert my back-end development mind set around towards the front-end.

If you only see a black page when deploying to GitHub, make sure to write "publicPath: '/vue-app/'" in the vue.config.js file before building your dist folder. That's about the only debugging I had to do to get my build up to run at GitHub. Thanks a lot for publishing this!

hoppinjohnz commented 3 years ago

Here is my work product of this awesome tutorial. Again, thanks alot.

taniarascia commented 3 years ago

Nice work!

poneymusical commented 3 years ago

Thanks for the tutorial, it's great! As a primarily backend developer, I'm just starting to dive into frontend. Vue is the first SPA tech I check, it looks easier to learn than React.

I just found one small "issue" in the tutorial. When you click on "Edit" on one line, modify the name or the email, then click on "Edit" on another line without saving or cancelling, changes are not saved nor rollbacked. I changed the behavior of EmployeeTable to make it rollback changes in that case:

editMode(employee) {
  if (this.editing !== null) this.cancelEdit(this.currentEmployee);
  this.currentEmployee = employee;
  this.cachedEmployee = Object.assign({}, employee);
  this.editing = employee.id;
},

cancelEdit(employee) {
  Object.assign(employee, this.cachedEmployee);
  this.editing = null;
  this.currentEmployee = null;
},

Is it the right approach? Thanks for your feedback!

jkfliu commented 3 years ago

Thanks Tania so much for this tutorial, really a great way to start learning Vue!

Hochul822 commented 3 years ago

Thanks so much for this great tutorial. I learned a lot.

rodricke commented 3 years ago

Great tutorial. Thanks.

smdalton commented 3 years ago

Best tutorial I have found on Vue.js, clear and to the point and without including too many dependencies or special packages that will be soon out of date. Going to use this to help me build my next front end.

rezapurnamaa commented 3 years ago

Really comprehensive tutorial. Easy to follow and understandable. Thanks a lot!

lollylegs commented 3 years ago

Great tutorial. Thanks

atapas commented 3 years ago

Hey Tania,

This is a great tutorial for a beginner to Vue like me. I have now created a TODO app following this article. Thanks for sharing!

One small thing I noticed while following it,

The edit handler passing the employee id. I think, it should be the employee object there?

<button @click="editMode(employee.id)">Edit</button>

as the editMode function tries to extract the id anyways,

editMode(employee) {
  this.cachedEmployee = Object.assign({}, employee)
  this.editing = employee.id
},

Thanks!

P.S. I am a big fan of your articles. Please keep sharing.

GhazB commented 3 years ago

Love the EmployeesTable reference to Silicon Valley :)

theccalderon commented 3 years ago

Awesome tutorial!

imliuyzh commented 3 years ago

Hi, very nice tutorial! When do you think you will update this to Vue 3?

hseritt commented 3 years ago

Great article. It is still the best full CRUD tutorial on Vue in 2021. I do see one issue with the editEmployee function on Vue 3.

Failed to compile.

./src/components/EmployeeTable.vue
Module Error (from ./node_modules/eslint-loader/index.js):

/home/hseritt/Documents/Development/sandbox/tr-vue-tutorial/src/components/EmployeeTable.vue
  80:11  error  Unexpected mutation of "employees" prop  vue/no-mutating-props

✖ 1 problem (1 error, 0 warnings)
hseritt commented 3 years ago

Never mind. I should have checked your updated Github :-D Thanks again for the tutorial :-)

Cardoso-topdev commented 2 years ago

Thank you very much for your great article.

uferekalu commented 2 years ago

Nice tutorial with good explanation...

jlonuz commented 2 years ago

Thanks Tania for this tutorial, I liked so much, and it was very helpfull!

robot5x commented 2 years ago

Thank you! This is such a great tutorial - took me from a Vue newbie, to building my own app in a day or so. Really helped me understand lots about it. Great work.

HumphreyHao commented 2 years ago

Much thanks for this tutorial! Now I can start designing me app XD.

haroon-dev commented 2 years ago

Thank you! for this wonderful tutorial but I can't understand one thing, why you don't use $emit in edit button <button @click="editMode(employee.id)">Edit like this delete button <button @click="$emit('delete:employee', employee.id)">Delete