<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Joseph Donovan BIBANG BEFENE</title>
    <description>The latest articles on DEV Community by Joseph Donovan BIBANG BEFENE (@bibangjoseph).</description>
    <link>https://dev.to/bibangjoseph</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3597339%2F6e792171-c329-4e69-ba6c-ac662bbbbd89.jpeg</url>
      <title>DEV Community: Joseph Donovan BIBANG BEFENE</title>
      <link>https://dev.to/bibangjoseph</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bibangjoseph"/>
    <language>en</language>
    <item>
      <title>Simplify validation error handling in Angular with `ng-input-validation`</title>
      <dc:creator>Joseph Donovan BIBANG BEFENE</dc:creator>
      <pubDate>Thu, 06 Nov 2025 10:44:43 +0000</pubDate>
      <link>https://dev.to/bibangjoseph/simplify-validation-error-handling-in-angular-with-ng-input-validation-561j</link>
      <guid>https://dev.to/bibangjoseph/simplify-validation-error-handling-in-angular-with-ng-input-validation-561j</guid>
      <description>&lt;h3&gt;
  
  
  💬 Introduction
&lt;/h3&gt;

&lt;p&gt;In Angular, displaying validation errors in a form can quickly become repetitive and verbose. It is to simplify this part that I have developed a small library: &lt;strong&gt;&lt;code&gt;ng-input-validation&lt;/code&gt;&lt;/strong&gt;, which centralizes and automates the display of error messages in an elegant and reusable way.&lt;/p&gt;

&lt;p&gt;In this post, I show you &lt;strong&gt;how I used to do it&lt;/strong&gt; and &lt;strong&gt;how I do it today&lt;/strong&gt; 👇&lt;/p&gt;




&lt;h3&gt;
  
  
  ❌ Before: a repetitive management in each field
&lt;/h3&gt;

&lt;p&gt;Before, for each form field, it was necessary to write several conditions to display the error messages:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fikftob0umc88j13a4rc8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fikftob0umc88j13a4rc8.png" alt=" " width="800" height="546"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;👉 Result: a lot of repetitive code to maintain, especially when you have multiple fields.&lt;/p&gt;

&lt;h3&gt;
  
  
  ✅ Now: a single line thanks to &lt;code&gt;ng-input-validation&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;With &lt;strong&gt;&lt;code&gt;ng-input-validation&lt;/code&gt;&lt;/strong&gt;, everything is managed automatically from the &lt;code&gt;FormControl&lt;/code&gt;.&lt;br&gt;
Here is what the same field looks like today:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftcx3gn59crgew25k9e9h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftcx3gn59crgew25k9e9h.png" alt=" " width="800" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And your &lt;code&gt;FormGroup&lt;/code&gt; :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F09xekh247iciqlo0eyyd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F09xekh247iciqlo0eyyd.png" alt=" " width="800" height="183"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Where before it was necessary to write several &lt;code&gt;@if&lt;/code&gt;, today a single line is enough. The component automatically displays the correct error message according to the type of validation (required, email, minLength, etc.).&lt;/p&gt;




&lt;h3&gt;
  
  
  ⚙️ Bonus:
&lt;/h3&gt;

&lt;p&gt;You can also manage backend &lt;strong&gt;errors&lt;/strong&gt; or add custom &lt;strong&gt;messages&lt;/strong&gt; for each type of error.&lt;/p&gt;




&lt;h3&gt;
  
  
  📦 Installation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i ng-input-validation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And don’t forget to import it into the Angular component.&lt;/p&gt;




&lt;h3&gt;
  
  
  💡 Conclusion
&lt;/h3&gt;

&lt;p&gt;This library allowed me to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Save time on form management;&lt;/li&gt;
&lt;li&gt;Keep a cleaner and maintainable code;&lt;/li&gt;
&lt;li&gt;Standardize error messages in all my Angular applications.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 The project is open-source on npm:&lt;br&gt;
🔗 &lt;a href="https://www.npmjs.com/package/ng-input-validation" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/ng-input-validation&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>angular</category>
      <category>webdev</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Hello Dev Community 👋 – Mes débuts sur Dev.to</title>
      <dc:creator>Joseph Donovan BIBANG BEFENE</dc:creator>
      <pubDate>Wed, 05 Nov 2025 21:19:50 +0000</pubDate>
      <link>https://dev.to/bibangjoseph/hello-dev-community-mes-debuts-sur-devto-504g</link>
      <guid>https://dev.to/bibangjoseph/hello-dev-community-mes-debuts-sur-devto-504g</guid>
      <description>&lt;p&gt;👋 Salut la communauté !&lt;/p&gt;

&lt;p&gt;Je m'appelle &lt;strong&gt;Joseph&lt;/strong&gt;, développeur web passionné par tout ce qui touche à l’écosystème JavaScript — et plus particulièrement à &lt;strong&gt;Angular&lt;/strong&gt; 💪&lt;/p&gt;

&lt;p&gt;Je rejoins &lt;strong&gt;Dev.to&lt;/strong&gt; avec l’envie de &lt;strong&gt;partager des articles sur le développement web&lt;/strong&gt;, des &lt;strong&gt;astuces&lt;/strong&gt;, des &lt;strong&gt;bonnes pratiques&lt;/strong&gt;, ainsi que mes &lt;strong&gt;travaux et recherches&lt;/strong&gt; autour d’Angular, TypeScript et des architectures modernes.&lt;/p&gt;

&lt;p&gt;Mon objectif est simple : &lt;strong&gt;apprendre, échanger et grandir ensemble&lt;/strong&gt; grâce au partage de connaissances. 🚀&lt;/p&gt;

&lt;p&gt;Au plaisir d’échanger avec vous dans les commentaires et de découvrir vos publications !&lt;/p&gt;

&lt;h1&gt;
  
  
  webdev #angular #javascript #typescript #frontend #bestpractices
&lt;/h1&gt;

</description>
      <category>devto</category>
      <category>angular</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
