DEV Community

Cover image for Understanding MVC-Services for Frontend: Angular

Understanding MVC-Services for Frontend: Angular

Carlos Caballero on November 14, 2019

Introduction This post is the third in a series of three posts to understand how the MVC architecture works to create frontend applicati...
Collapse
 
juanmaster profile image
Juan Ramon Montilla Sanchez

good

Collapse
 
geniot profile image
geniot

So this is your approach: duplicate and copy references from services to component fields. Calling 'refreshUsers' every time - is it really necessary? You are changing userService.users which is the same as UsersComponent.users.

Collapse
 
maxseipio profile image
Max Seipio

Nice

Collapse
 
johnny_bui profile image
Johnny

It may not necessarily implement this structure when Angular has already given you flexibility to do so.