In this tutorial, we will show you how to create observable in Angular using create, of, from operators. Also learn the difference between the Of & From operators. If you are new to observable, we recommend you to read the Angular observable before continuing here.
The Angular Observable tutorial covers how to use RxJS Observables in Angular application. When we talk about Angular Observable, we hear a lot of terms like Reactive programming, data streams, Observable, Observers, RxJS, etc. It is very important to understand these terms before we start using the observables
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.
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.
Learn how to inject service into Validator in Angular. The validator may depend on some external service to do its validation. For Example, it may need to fetch data from the back end server to validate the value.