官术网_书友最值得收藏!

Reactivity diagrams of an echo example

We will complete this tour of the reactivity diagrams by writing the echo example. Its diagram is shown in the following figure:

Figure 1.19: The echo app reactivity diagram

This simple diagram should allow any developer to understand what is going on, provided that he knows that it applies to each item emitted on the argv input observable. First, the input observable is created from the argv variable. Then each item is capitalized with the map operator. Finally, each event type (item, completion, or error) is printed. Note that the content of each element is not a copy of the code, but a small description of what it does. The echo example was quite simple, but in a real application you want to document the behavior with reactivity diagrams, not duplicate the code on a diagram.

主站蜘蛛池模板: 香格里拉县| 贵港市| 沾益县| 桃江县| 囊谦县| 长治市| 唐河县| 桃园市| 余姚市| 高安市| 浮梁县| 南靖县| 寿宁县| 惠安县| 湖州市| 商丘市| 东乡县| 高唐县| 南部县| 宾阳县| 诸城市| 竹山县| 开封县| 新沂市| 阿尔山市| 景德镇市| 延安市| 贵定县| 花垣县| 宣恩县| 寿阳县| 开阳县| 朝阳县| 洛浦县| 石首市| 乌审旗| 湘潭市| 沧州市| 鲁甸县| 富锦市| 贡觉县|