취미삼아 배우는 프로그래밍

Hello Blazor 본문

.Net Core Blazor WASM

Hello Blazor

Nadure 2020. 7. 10. 00:01

프로젝트 만들기

 

두둔,,

 

떡하니 WASM이 있는걸 보세요. 뭔가 대단해보입니다.

 

 

아무것도 모르지만,

softchris.github.io/pages/dotnet-blazor.html#prerequisites

 

Learn how to build your first Blazor WebAssembly app in .Net Core 3.0

Learn how to build your first Blazor WebAssembly app in .Net Core 3.0 Follow me on Twitter , happy to take your suggestions on topics or improvements /Chris First time I heard the name I thought this sounds like a Blaze of fire. That's quite the associatio

softchris.github.io

오늘은

이거 하나 글 보구 해보는게 목표입니다.

 

vscode로 파이썬 만질 때는 잘 못 썼지만,

코딩 국룰인 F5로 일단 실행시켜봤습니다.

어..?

생각지도 못하게 뭐가 막 돌아가요 ㅋㅋㅋ

 

역시 디버깅 국룰은 F5 아니겠습니까.

누르면 작동되는 카운터

 

 

뭔진 모르겠지만, data를 가져오는 방법에 대해 알려주려는 페이지(코드를 봐야할듯)

 

근데 저는 이거보다

저 로딩이라는 말이 제일 멋있습니다.

웹어셈블리인게 실감난달까..

 

@page "/test"
<h3>TestPage</h3>

<p>Current count: @currentText</p>

<button class="btn btn-primary" @onclick="TextChanging">Click me</button>
<button class="btn btn-primary" @onclick="TextChanging_2">Click me2</button>

@code {
    private string currentText = "Test";

    private void TextChanging()
    {
        currentText = "nononono!";
    }

    private void TextChanging_2()
    {
        currentText = "nadure";
    }
}

시험삼아 테스트 페이지도 넣어봤는데

 

일단 되게 편한것 같네요!

Comments