sql-mistermagoo / blazortest Goto Github PK
View Code? Open in Web Editor NEWA place to test Blazor features
A place to test Blazor features
Hi MisterMagoo,
thanks for providing these blazor samples. I had problems to compile them because there was no chance for me to get 2.2.100-preview2-009404 SDK. According to #5666 there is no way to compile the app in an 2.2 SDK. So I tried to downgrade to 2.1. For this I created a brand new blazor app to copy your stuff in and noticed that in the meantime a new preview had been added. (0.8.0-preview1-20181126.4) This version has quite some changes compared to the former ones:
Microsoft.AspNetCore.Blazor becomes Microsoft.AspNetCore.Components
BlazorComponent becomes ComponentBase ... and some other changes to include in core 3.0
I tried to change your project but I got stuck at the treeview. (Program cannot find person in tree.chtml)
<span class="oi oi-plus" onclick="@{()=>OnClick(person)}"> @(person.Firstname) @(person.Lastname) (@(person.Age)) </span>
and MainLayout.cshtml (Program cannot find traffic)
<span>Traffic
: @traffic.Bytes.ToString("N0") Bytes</span>
Both seem to be related to Context="person" and Context="traffic". Unfortunately I am not so experienced with web programming and do not know where to look and what to change. What does Context refer to and where can I learn / read more about it ?
Maybe you could have a look and provide a working 2.1 SDK version. Most of the work should have been done.
I attached a 2.1 Version of your project with my changes. I was not sure if a PR would have been better because so many files are involved.
Thank you
regards
Uwe
Consider upgrading this to the latest version of 2.1 rather than requiring "version": "2.1.502"
{
"sdk": {
"version": "2.1.700"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.