Category : frontend

I’m fairly new to Angular and I’m currently struggeling to display errors on my form fields that originate from my API backend. My frontend validation works without any problem. I’ve setup my frontend validation according to this link. This is my form HTML: <form [formGroup]="createDetailsForm" (ngSubmit)="onCreate()" autocomplete="off" *ngIf="!created_customer"> <div class="modal-header"> <h5 class="modal-title"> {{‘create_customer’ | transloco ..

Read more

Guys help me out… i’m trying to highlight the current page when clicked on the navbar menu option. i tried javascript code, php codes and laravel help still couldn’t figure it out. Kindly please help me.. <script> window.addEventListener(‘scroll’, event => { let nav = document.querySelector(‘.nav-container’); (window.scrollY >= 510) ? nav.classList.add(‘scroll’) : nav.classList.remove(‘scroll’); }); $(document).ready(function () ..

Read more