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

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.

主站蜘蛛池模板: 丹东市| 皮山县| 邢台市| 蓬溪县| 江津市| 桐城市| 古丈县| 石门县| 上饶县| 新昌县| 汉沽区| 永善县| 新河县| 清原| 治县。| 社旗县| 葵青区| 乳山市| 杭锦后旗| 汽车| 绍兴县| 珠海市| 乃东县| 锡林郭勒盟| 察隅县| 郓城县| 射阳县| 泉州市| 安福县| 西林县| 体育| 湟源县| 苗栗县| 峨边| 阿拉善盟| 周至县| 梓潼县| 湄潭县| 洱源县| 望谟县| 临沧市|