Angular

The requested URL was not found on this server error in Angular

have built an Angular app and created a production build with ng build –prod You deploy it to a production server. Everything works fine until you refresh the page. The app throws The requested URL was not found on this server message (Status code 404 not found). It appears that angular routing not working on the production server when you refresh the page.

The requested URL was not found on this server error in Angular Read More »

Custom Validator in Template Driven Forms in Angular

Learn how to build custom validation in template-driven forms. In Angular, we have two API to build Angular Forms. They are Reactive Forms and template-driven forms. In Template-driven forms, we define validation rule as an HTML attribute in the HTML markup. The Angular provides a few built-in Validation attributes out of the box. In this tutorial, we will talk about how to build a custom validation attribute using Angular Directive. We also show you how to pass a parameter & how to inject service into the validation attribute.

Custom Validator in Template Driven Forms in Angular Read More »

Scroll to Top