Components shouldn’t be concerned with how data is fetched, updated, or cached. CanJS provides the right abstractions for your model code to be cleanly separated from your UI code. CanJS’s stache templating language can directly read the state and values from Promises. No need to write any extra code to determine whether a Promise is pending, resolved, or rejected. After data is created, updated, or destroyed, CanJS automatically updates your lists for you. Filtering and sorting are preserved, so you don’t have to manually update your lists or fetch the same data again. The model layer is responsible for making GET, POST, PUT, and DELETE requests to your backend. With your component UI code using the model’s standard interface to make requests, if the backend API changes, you only have to configure the model and not change every component that uses that backend API.

Features

  • Model layer
  • Promises in templates
  • Real-time list updating
  • Build CRUD apps in fewer lines of code
  • Model layer
  • CanJS creates a model that represents the objects returned by a backend API

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow CanJS

CanJS Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of CanJS!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Frameworks

Registered

2022-11-24