Assumption
- we want to create an IObservable from an existing Fable Elmish program
- we want to leave the structure of the Elmish program intact
Original Elmish program:
type Model = { Counter: int }
type Msg = Increment of int
(* | |
This version of the script delays the main window creation until the app.Run(view1()) call.<br /> | |
This will allow seperating out the app code and be able to parametrize the window to use when it is called in a later script version. | |
More F# Avalonia xploration at https://blog.fxplorer.net/series/xploring-avalonia-fsharp | |
*) | |
#if INTERACTIVE | |
#r "nuget: Avalonia" |
#if INTERACTIVE | |
#r "nuget: Avalonia" | |
#r "nuget: Avalonia.Desktop" | |
#r "nuget: Avalonia.Themes.Simple" | |
#endif | |
open Avalonia |
Assumption
Original Elmish program:
type Model = { Counter: int }
type Msg = Increment of int
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"The goal of this workbook is to initialize the FSharp.Formatting document creation utility in one's own repo." | |
] | |
}, | |
{ |