In this post, we will write a small service that returns an Observable of number, and then see how we can write a unit test to test the method.
Angular has many types of Observables which you can use. Maybe you've seen Subject, BehaviourSubject, ReplaySubject, or AsyncSubject in Angular exampl…
In Angular, you can perform asynchronous actions in two different ways, Observables, and Promises.
Most people pick Observables because every example …
Building Forms with rx.js
When building a form page, typically you'll want the following.
perform some action when the "SUBMIT" button i…
Firstly, we have to make the theme-service in our angular app which contains the Boolean Subject through which the dark mode is toggled from the compo…