Photo by Lianhao Qu on Unsplash

Here I am going to explain a very simple way to write test the services injected in your Angular component.

The one thing I hate in a dev team is when some other developer says in this standup “The feature is done, I only need to write the tests”. I always want to say out loud — “Well, then the task is not done yet”. But I just keep that for myself, as I don’t want to be the typical arrogant toxic developer.

So If you came to this post, is because you know the importance of testing. I am…


Using modal windows from the NGX bootstrap library can be very convenient and easy to use. However, in a large application in which we may use it multiple times, a Modal window can make us write a lot of duplicated code.

The problem

Let’s think about this example:

Each Modal window needs a Close Button at the top and a Submit Button at the bottom. We don’t want to write these markup for every component in which we use the Modal Window. We want to be able to reuse these elements and the methods they might trigger for all our use cases.

Getting started:


Muchos, como yo, estudiamos alguna carrera universitaria relacionado con las tecnologías digitales, dígase Lic. en Informática, Ingeniería en Sistemas o Tecnologías de Información. Bueno, da igual el nombre. Al final de cuentas, lo que estudiamos, no siempre es lo que terminamos haciendo profesionalmente.

La crisis del Estudiante

Empiezas la carrera, quizá porque tus papás te dijeron que con las computadoras ganarás mucho dinero, pero a lo largo de la carrera, por lo menos en países como México, en universidades del Estado, la carga curricular es muchas veces anticuada y no refleja el mundo real.

Aprendes cosas fundamentales de la Programación Orientada a Objetos, algoritmos…

Luis Eduardo

Senior Frontend Engineer and Podcast Creator

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store