Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeAlterio authored Dec 22, 2024
1 parent 9b4890c commit 7cfc983
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static class DelegateCommandExtensions

## Example 2
```c#
public class LoginViewModel : IActivatableViewModel
public class LoginViewModel
{
// Value set from outside.
public Signal<bool> IsDeactivated { get; } = new(false);
Expand Down Expand Up @@ -75,9 +75,6 @@ public class LoginViewModel : IActivatableViewModel
var lastCall = ApiCalls.Value.LastOrDefault();
return $"Total api calls: {ApiCalls.Value.Count}. Last started at {lastCall?.StartedAt}, and ended at {lastCall?.EndedAt.Value}";
})!;

// Signals are observable, so they can easily integrated with reactiveUI
LoginCommand = ReactiveCommand.Create(() => { /* login.. */ }, CanLogin);
}

public ViewModelActivator Activator { get; } = new();
Expand Down

0 comments on commit 7cfc983

Please sign in to comment.