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

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.

主站蜘蛛池模板: 桐庐县| 星座| 绥化市| 阳信县| 唐山市| 炎陵县| 海晏县| 江山市| 察雅县| 日照市| 黄陵县| 庄浪县| 玛纳斯县| 新安县| 遵义县| 定州市| 黄山市| 温州市| 台安县| 修水县| 肇庆市| 潜山县| 炎陵县| 栾川县| 遵化市| 江津市| 依安县| 寻甸| 礼泉县| 金堂县| 铁力市| 施秉县| 松原市| 仁怀市| 常宁市| 土默特右旗| 福安市| 闻喜县| 息烽县| 新竹市| 益阳市|