Programming/Comparisons: Difference between revisions
Jump to navigation
Jump to search
Line 49: | Line 49: | ||
* Usually defined in /Shared/MainLayout.razor and /Shared/MainLayout.razor.css | * Usually defined in /Shared/MainLayout.razor and /Shared/MainLayout.razor.css | ||
* Usually used in /App.razor | * Usually used in /App.razor | ||
|- | |||
! Using Partials | |||
| | |||
* `<%= render '[partial name]' %> | |||
| | |||
* <[partial name /> | |||
|- | |- | ||
! Permissions/Authentication | ! Permissions/Authentication | ||
Line 90: | Line 96: | ||
| | | | ||
* SignalR/WebSockets | * SignalR/WebSockets | ||
|- | |||
! Calling Server Code | |||
| | |||
* Setup | |||
** Make a routing endpoint | |||
** Connect to controller | |||
** Return json | |||
* Use | |||
** Use endpoint in link | |||
** Parse json | |||
** Use JS to update page | |||
| | |||
* Define method on same razor page. | |||
* Add `@onclick="@(() => MyCSMethod(MyParam))` to html item. | |||
|} | |} |
Revision as of 10:24, 9 August 2021
Frameworks
Ruby on Rails and Blazor
Ruby on Rails and Blazor | |||||
---|---|---|---|---|---|
Ruby on Rails | Blazor | ||||
Language | Ruby | C# | |||
Models |
|
| |||
Views |
|
| |||
Controllers |
|
| |||
Routing |
|
| |||
Layout |
|
| |||
Using Partials |
|
| |||
Permissions/Authentication |
|
| |||
Data Services |
|
| |||
Dependency Injection |
|
| |||
JS/CSS |
|
| |||
Asynchronous Calls |
|
| |||
Calling Server Code |
|
|