Angular – How to pass values between components using @input and @output

By | 28/10/2020

In this post, we will see how to pass values between components using @input and @output. We start creating a project called PassData where, we will create two components called page1 and page2 and an entity called User:ng new PassDatang g c pages/page1ng g c pages/page2ng g class Entities/User First of all, we define the… Read More: Angular – How to pass values between components using @input… »

Design Patterns – Singleton

By | 21/10/2020

From Wikipedia:“In software engineering, the singleton pattern is a software design pattern that restricts the instantiation of a class to one ‘single’ instance. This is useful when exactly one object is needed to coordinate actions across the system. The term comes from the mathematical concept of a singleton.“ In this post, we will see how to implement this pattern in a .NET Console application. We… Read More: Design Patterns – Singleton »

Swagger – Tips

By | 08/10/2020

In this post, we will see some tips that can help us when we use Swagger.First of all, we open Visual Studio, we create a Web API project and add some files: [BOOK.CS] [BOOKCONTROLLER.CS] If we run the application, this will be the result: Now, we install the Swashbuckle.AspNetCore package, using the command Install-Package Swashbuckle.AspNetCore -Version 5.5.1 in… Read More: Swagger – Tips »