Category Archives: Angular

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… »

Angular – How to Dockerize an Angular application

By | 02/06/2020

In this post, we will see how to Dockerize an Angular application and how to deploy it in Docker Hub. ANGULAR PROJECT:We start creating a new Angular project called “AngularDockerUI” with three components: ng new AngularDockerUIng g c share/menung g c share/homepageng g c pages/pagelist Finally, we install Bootstrap using the command npm install bootstrap… Read More: Angular – How to Dockerize an Angular application »

Angular – How to pass values between components using query string

By | 26/02/2020

In this post, we will see how to pass data between components, using query string.We start creating a project called PassData and installing Angular Material as well:ng new PassDatang add @angular/material Then, we create three components called “Page1”, “Page2” and “Page3”:ng g c Pages/Page1ng g c Pages/Page2ng g c Pages/Page3 Finally, we create an entity… Read More: Angular – How to pass values between components using query… »

Angular – How to add Angular Material in a project

By | 12/02/2020

In this post, we will see how to add Angular Material in an Angular project. We open Visual Studio Code and we create a new project called MaterialProject, using the commandng new MaterialProject Then, we create three components called HomePage, Page1 and Page2, using the commandsng g c HomePageng g c Page1ng g c Page2… Read More: Angular – How to add Angular Material in a project »

Angular – How to pass values between components using the route state

By | 29/11/2019

In this post, we will see how to pass values between two components, using the router state attribute (from Angular 7.0.2), creating a method to modify the username property in our usual project. First of all, we add a link button in the listusers component for using a method called goedit to update the username… Read More: Angular – How to pass values between components using the… »