Back to Todomvc

TodoMVC: Vue

examples/vue/readme.md

2.0.01.3 KB
Original Source

TodoMVC: Vue

Description

This application uses Vue.js 3.3.10 to implement the TodoMVC application.

  • Vue.js provides efficient MVVM data bindings with a simple and flexible API. It uses plain JavaScript object models, DOM-based templating and extendable directives and filters..

Implementation details

Vue.js is focused on the ViewModel layer of the MVVM pattern. It connects the View and the Model via two way data bindings. Actual DOM manipulations and output formatting are abstracted away into Directives and Filters.

MVC:
Model: maintains the data and behavior of an application
View: displays the model in the ui
Controller: serves as an interface between view & model components

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

sh
npm install

Compile and Hot-Reload for Development

sh
npm run dev

Compile and Minify for Production

sh
npm run build

Lint with ESLint

sh
npm run lint