Created
March 25, 2022 02:53
-
-
Save bonomiandreia/debc10595d524556ee46ebcc1588fd89 to your computer and use it in GitHub Desktop.
observables and subject study
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
observables are lazy, means that if it doesnt have a subscribe, observables cant execute the code. | |
Subject are other type of observable, they both can emit many values. | |
observables can't emit data outside itself. | |
subjects can emit multiples values outside itself. | |
example: https://stackblitz.com/edit/angular-ivy-5tnmap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment