Tag: Angular
How to make custom directive in Angular?
- Natan Ferreira
- 0
- 70
Before creating a custom directive, we need to understand what a directive is in Angular. “Directives are classes that add additional behavior to elements in your Angular applications.” “Use Angular’s built-in directives to manage forms, lists, styles, and what users see.” The different types of Angular directives are as follows: Directive Types Details Components Used…
Read MoreWhat is Data Binding in Angular?
- Natan Ferreira
- 0
- 49
It’s a way of communication between TypeScript code and HTML template. Let’s see an example below. I created a component called “user”. We have a variable that stores the value of the “username” and a method that resets this value, it’s a method triggered by a click event in the HTML template. In the HTML…
Read MoreHow does work New Control Flow Syntax in Angular 17 ?
- Natan Ferreira
- 0
- 111
Angular 17 has undergone significant modernization, introducing new syntax, and features, and achieving better performance. Notably, they made substantial transformations. In this post, we will focus on New Control Flow Syntax. The Angular 17 introduced the @if, @for, and @switch syntax. Let’s explore each one. @if block conditionally The @if block conditionally displays its content when its condition expression…
Read MoreHow does work Server-Side Rendering (SSR) in Angular 17 ?
- Natan Ferreira
- 0
- 162
Angular 17 has undergone significant modernization, introducing new syntax, and features, and achieving better performance. Notably, they made substantial transformations. In this post, we will focus on Server-Side Rendering (SSR). SSR Now, when creating a project, there’s a straightforward option to enable SSR. To create a new project with SSR, run: To add to an…
Read MoreWhat is Client-Side Rendering, Server-Side Rendering and Static Site Generator ? How does it work in Angular ?
- Natan Ferreira
- 0
- 46
The types of rendering are crucial in a system. First and foremost, we need to understand the client’s requirements, and then we can determine which rendering type is the better choice.All rendering types have their own set of advantages and disadvantages; let’s explore each of them. Requirements You can find more here: https://nodejs.org/en https://angular.io/cli Client-Side…
Read More