The Rise of Modern Web Applications
You could write a large web application before without using a framework. But the advantages of a framework like AngularJS are massive. Especially when working in bigger teams, on larger applications. Often you need to structure a lot of files and modularize components. Frameworks can also provide support for writing tests, two-way data-binding, dependency management etc.
Introducing REST for Decoupling
It is common for web applications to consume a RESTful API for communication with the server. By doing this, the REST API can be used to e.g. fetch, update, create and delete resources.AngularJS provides default functionality to consume RESTful API’s.With its strong focus on the separation of content from presentation and its content oriented approach, Hippo CMS is perfectly fitted to provide content to any type of application, including Single Page Applications (SPA) via RESTful API. Content is fetched from the CMS via HTTP requests, and you can build the user interactive application with AngularJS. By decoupling both, you enable continuous deployment for the front end application.
Check out Jeroen Reijn's post to learn how to create an AngularJS based application that consumes content coming from a CMS using the RESTful APIs deployed with on the Hippo CMS online demo installation. The post covers :
- setting up the project with a basic HTML5 template and Bootstrap 3
- creating the application
- adding routing
- creating views
- getting data from the webservice
- wiring things together by creating an Angular controller