An example codebase to demo how to integrate a WebAssembly component into an Angular 9 application.
To compile to web:
install wasm-bindgen-cli:
Listing 1. Install the wasm-bindgen-cli
$ cargo install wasm-bindgen-cli
Listing 2. Build the application
$ cargo build --release --target was32-unknown-unknown
Listing 3. Test it if you have tests involved
$ cargo test
Listing 4. Run the wasm-bindgen-cli
$ wasm-bindgen target/wasm32-unknown-unknown/release/stats-client-wasm.wasm --out-dir .