(SOLVED) How to Share Data between Angular Components ?

How to Share Data between Angular Components ? its a common question asked by angular developers… Data sharing is an essential concept to understand before diving into your first Angular project. In this tutorial, we will show you the most used methods for sharing data between Angular components. Of course , if we talk about […]

En Lire Plus

Reactive programming , c’est quoi ?

La programmation réactive est un paradigme de programmation asynchrone concerné par les flux de données et la propagation du changement. RxJS est une bibliothèque de programmation réactive utilisant des observables qui facilite la composition de code asynchrone. Un opérateur est une fonction qui prend un Observable et renvoie un autre Observable. On peut créer un […]

En Lire Plus

(SOLVED) how to insert an HTML element before another ?

If you need to insert an HTML element like one <div> or any other element before an existing element in the HTML Document you have to : 1. Get the element by ID : 2. Create the HTML element 3. Insert the element Here we will use insertBefore function to insert the created Div before the recovered Table. If you want […]

En Lire Plus

Example NgStyle & NgClass : How to use ?

In this TuTo, we will answer about these questions : When and how to use the NgStyle directive to set an elements style ? When and how to use the NgClass directive to set an elements classes? NgStyle The NgStyle directive lets you set a given DOM elements style properties. in the first example , […]

En Lire Plus

(Solution) : Angular 2+ DataTable / DIV to PDF File

if you want to generate a pdf file from datatable / Array or content in HTML Div : run this : 2. import : 3. create the datatable or the content to print in html div: 4. Create a button to generate PDF and put the as click action “generatePdf(contentToConvert)” 5. Finaly past this function […]

En Lire Plus

Angular 10: what’s new ?

The new version of Angular, Angular v10 is officially available since June 25, 2020. With this new update of the framework, the Angular team continues to improve the framework and offers updates to the ecosystem, but also a review of various points that I present to you in this article. Since the release of Angular […]

En Lire Plus

The lifecycle of an Angular component

When developing an Angular application, it is important to understand how components work, including their lifecycle. This lifecycle is managed by Angular, so it’s Angular that will create the component, render it and finally destroy it when necessary. ngOnChanges: it is called when an input is defined or modified from the outside. The status of […]

En Lire Plus

Angular – NgRx : Introduction !!

Les fondamentaux de NgRx, avec des exemples de code Quand j’ai commencé à travailler avec NgRx, j’ai été confronté à une courbe d’apprentissage abrupte. Il a fallu pas mal de lecture et de recherche pour comprendre les éléments de base de NgRx. L’objectif premier de cet article est de transmettre les connaissances que j’ai acquises […]

En Lire Plus

What is impure pipe in Angular ?

I am unable to understand impure pipes, some what better with pure pipes. Please explain with a simple and basic example ? Anser : A pure pipe is only called when Angular detects a change in the value or the parameters passed to a pipe. An impure pipe is called for every change detection cycle no matter […]

En Lire Plus

(SOLVED) net::ERR_CONNECTION_REFUSED in Angular

net::ERR_CONNECTION_REFUSED : I’d like to access an API server, but the server hasn’t started. Then I got the error : Could I handle this according to the status of the response ? Solution 1 : Solution 2 : If you are using spring for the backend , just add the annotation @crossorigin in your rest controller to […]

En Lire Plus