Blog

Développement web & Design

résultats pour «»

Tous les articles


Providing Equality Function to Signals

Control equality checks when defining signals in Angular

angular signals

Angular Signals API

Some examples of the signal API in Angular

angular signals

Debug RxJS code in Angular

Simple RxJS technique for debugging in Angular

angular

TypeScript 'as const' annotation

TypeScript 'as const' annotation: advantages and examples

typescript

The Power of Discriminated Union Types in TypeScript

TypeScript is a superset of JavaScript that provides static typing and additional language features that help developers write more robust and scalable code. One of the language features that TypeScript provides is discriminated union types, which allow you to create complex types that are composed of simpler types.

typescript

Create a TypeScript custom decorator

What is a decorator and how to implement it for your custom needs?

typescript

Introduction to reactive programming in Angular

Sogeti JavaScript Community talk (4th of April, 2023)

angular

Don't nest if statements

Why you should avoid else statement in your code.

javascript

CSS Container Queries

CSS containment provides a way to isolate parts of a page and declare to the browser these parts are independent from the rest of the page in terms of styles and layout.

css

Angular & Change Detection Strategies

What is Change Detection in Angular Framework, how is it working, how to control it.

angular

RxJS: Building a simple drag & drop feature

Simple and easy step by step tutorial to build a drag & drop feature, based on observables

angular

RxJS: Common operators with real world examples

Common RxJS operators explained and illustrated with examples

angular

Define default behavior of git push

Defines the action git push should take if no refspec is given on the command line, no refspec is configured in the remote, and no refspec is implied by any of the options given on the command line.

git

has: a new CSS selector

A new CSS selector which simplifies the styling of your web page.

css

Angular best practices


angular

git wip: an alias for listing recent branches

Handy alias to know on which branch you were working on.

git

Angular: strictTemplates option

Review of the different options for template type checking in Angular, and emphasis on the power of strictTemplates option.

angular

Performance of cloning methods

We compare the performance of the 3 methods shown in the previous post: spread operator, JSON.stringify and lodash cloneDeep.

javascript

Clone an Object in JavaScript

Why and how cloning an object with a few different methods

javascript

Improve performance in your Angular ngFor loops with trackBy

trackBy function allows to tell Angular how to track items in the ngFor directive.

angular

Easy debugging with Angular Ivy APIs

How to debug easily your angular projects with 'ng'.

angular

TypeScript Best Practices

In this post we go through some of the main best practices of TypeScript and what we can do to write a better code.

typescript

ESLint Setup for Typescript Project

Step by step guide to configure ESLint into your TypeScript project

typescript

console.log({ myVariable })

Quick tip to debug faster

javascript

Include multiple themes on your website

Enhance user experience by providing multiple color themes

css

Dark mode trick

Quick tip to show you how to setup a dark mode using only one CSS property

css

TypeScript: the unknown type

Definition of TypeScript unknown type and some use cases

typescript

What the ??

Comparison between || and ?? operators in JavaScript

javascript

Spread Operator

Update object properties using the spread operator: interest and examples

javascript

Performance of removing duplicates methods

We compare the performance of the 3 methods shown in the previous post

javascript

Remove duplicates from an array

3 methods to easily remove duplicates from an array using JavaScript

javascript

Object Destructuring in JavaScript

Presentation of object destructuring, its interest and some examples

javascript