Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up blazor examples #160

Merged
merged 3 commits into from
Jan 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ Provides examples about [ReactiveUI routing](https://reactiveui.net/docs/handboo

<img width="400" src="https://i.gyazo.com/b5356b350c3ce2084f50d9ba534343a8.gif">

## Razor
## Blazor

#### [ReactiveUI.RazorExample](https://github.com/reactiveui/ReactiveUI.Samples/tree/master/razor)
#### [ReactiveUI.RazorExample](https://github.com/reactiveui/ReactiveUI.Samples/tree/master/blazor)

Building a web app with ReactiveUI and Razor Components.

<img width="500" src="https://i.gyazo.com/8bd953c633601e61c8a869631ba1d48e.gif">

Follow the [Razor Components tutorial](https://docs.microsoft.com/en-us/aspnet/core/razor-components/get-started?view=aspnetcore-3.0&tabs=visual-studio) on MSDN to get started. Heavily based on [@akourbat's work](https://github.com/akourbat/SampleRazorComponentsApp).
Follow the [Blazor tutorial](https://docs.microsoft.com/en-us/aspnet/core/tutorials/build-your-first-blazor-app?view=aspnetcore-3.1&tabs=visual-studio) on MSDN to get started. Heavily based on [@akourbat's work](https://github.com/akourbat/SampleRazorComponentsApp).

## More Avalonia samples

Expand Down
22 changes: 5 additions & 17 deletions blazor/ReactiveUI.BlazorExample/Views/GreetingView.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,11 @@
class="form-text text-muted">
Please, enter your name.
</small>
@{
if (!ViewModel.CanClear)
{
<button class="btn btn-info"
disabled
@onclick="Clear">
Clear
</button>
}
else
{
<button class="btn btn-info"
@onclick="Clear">
Clear
</button>
}
}
<button class="btn btn-info"
disabled="@(!ViewModel.CanClear)"
@onclick="Clear">
Clear
</button>
</div>
</div>
</div>
Expand Down
25 changes: 0 additions & 25 deletions razor/ReactiveUI.RazorExample.sln

This file was deleted.

10 changes: 0 additions & 10 deletions razor/ReactiveUI.RazorExample/App.razor

This file was deleted.

4 changes: 0 additions & 4 deletions razor/ReactiveUI.RazorExample/FodyWeavers.xml

This file was deleted.

26 changes: 0 additions & 26 deletions razor/ReactiveUI.RazorExample/FodyWeavers.xsd

This file was deleted.

16 changes: 0 additions & 16 deletions razor/ReactiveUI.RazorExample/Pages/Error.razor

This file was deleted.

3 changes: 0 additions & 3 deletions razor/ReactiveUI.RazorExample/Pages/Index.razor

This file was deleted.

36 changes: 0 additions & 36 deletions razor/ReactiveUI.RazorExample/Pages/_Host.cshtml

This file was deleted.

20 changes: 0 additions & 20 deletions razor/ReactiveUI.RazorExample/Program.cs

This file was deleted.

27 changes: 0 additions & 27 deletions razor/ReactiveUI.RazorExample/Properties/launchSettings.json

This file was deleted.

12 changes: 0 additions & 12 deletions razor/ReactiveUI.RazorExample/ReactiveUI.RazorExample.csproj

This file was deleted.

3 changes: 0 additions & 3 deletions razor/ReactiveUI.RazorExample/Shared/MainLayout.razor

This file was deleted.

54 changes: 0 additions & 54 deletions razor/ReactiveUI.RazorExample/Startup.cs

This file was deleted.

38 changes: 0 additions & 38 deletions razor/ReactiveUI.RazorExample/ViewModels/GreetingViewModel.cs

This file was deleted.

37 changes: 0 additions & 37 deletions razor/ReactiveUI.RazorExample/Views/GreetingView.razor

This file was deleted.

Loading