Single Page App – Separate UI from Model Using Publish, Subscribe Pattern using AmplifyJS
AmplifyJS is a set of components designed to solve common web application problems with a simplistic API. Amplify’s goal is to simplify all forms of data handling by providing a unified API for various data sources.
Your application may need more sophisticated control than is offered in Knockout, which provides for automatic updates in your view model. Knockout provides the observable pattern. But in the pattern described here Amplify’s publish/subscribe you do the publishing and the subscription.
In this post, you’ll learn the basics of how you can implement publish/subscribe pattern on the client using Amplify.