Sponge client example for an AngularDart web app
The example of the Sponge client for Dart in the AngularDart web application.
Created from templates made available by Stagehand under a BSD-style license (see https://webdev.dartlang.org/guides/get-started) and modified to show how to use the Sponge client. The modifications include:
- Adding the
sponge_client_dartdependency and dependency override for
- Adding a new
SpongeServiceclass in the
- Adding the Sponge Service DI provider and the
spongeServiceproperty in the
- Adding the Sponge action call in the
add()method and changing this method to
// The Sponge action call. items.add(await spongeService.client.call('UpperCase', [newTodo]));
For more information on Sponge see https://sponge.openksavi.org.