Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bigfanjs/mvcjsapp
Manually implementing MVC design pattern in JavaScript.
https://github.com/bigfanjs/mvcjsapp
Last synced: 4 days ago
JSON representation
Manually implementing MVC design pattern in JavaScript.
- Host: GitHub
- URL: https://github.com/bigfanjs/mvcjsapp
- Owner: bigfanjs
- Created: 2016-08-06T23:46:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-07T23:16:20.000Z (over 8 years ago)
- Last Synced: 2024-11-05T20:16:38.627Z (about 2 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Manually implementing MVC design pattern in JavaScript.
In this repository I've built a web application on top of an application-level structure using the MVC design pattern.
The Model-View-Controller is such a great web-based architectural design pattern. It helps a great deal to separate your application logic from the User Interface.
## Advantages:
- + your code would be more modulare.
- + it's less painfull to debug.## Usage
const
model = Model.setup({
author: 'Adel',
title: 23,
url: 'https://adelsblogs.com'
}).save(); // sends a POST/PUT Ajax request.
view = View.setup().suscribe( model );Every time the model changes, the views subscribing that model get updated.