Better Programming

Advice for programmers.

Follow publication

Member-only story

Understanding MVC Services for Front End: Angular

Carlos Caballero
Better Programming
Published in
8 min readNov 12, 2019

--

Photo by Caspar Camille Rubin on Unsplash

Introduction

This post is the third in a series of three posts to understand how the MVC architecture works to create frontend applications. The objective is to understand how to structure a frontend application. This is done by evolving from a web page in which JavaScript is used as a scripting language, towards an application in which JavaScript/TypeScript is used as an object-oriented language.

In this third post, the application will be built using Angular, from the second version which used TypeScript. Therefore, this piece covers the migration of the application from TypeScript to Angular. However, it’s important to understand how all the parts of the application are related and how it is structured. Angular allows us to forget about DOM, so the user.view.ts file disappear from our app.

Finally, in the last piece, we will transform our code to integrate it with the Angular framework.

Project Architecture

--

--

Carlos Caballero
Carlos Caballero

Written by Carlos Caballero

Hi! My name is Carlos Caballero and I’m PhD. in Computer Science from Málaga, Spain. Teaching developers and degree/master computer science how to be experts!

Write a response