Skip to content

Instantly share code, notes, and snippets.

View kevingates's full-sized avatar
🙂
Working on things from Web Forms to .Net 8 APIs and Blazor Apps

Kevin Gates kevingates

🙂
Working on things from Web Forms to .Net 8 APIs and Blazor Apps
View GitHub Profile
@kevingates
kevingates / onclick no longer works
Created August 14, 2019 17:05
@OnClick no longer works as of Preview 8
@page "/counter"
<h1>Counter</h1>
<p>Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@code {
int currentCount = 0;
@kevingates
kevingates / EventCreate.vue
Created June 25, 2019 14:12
My version of the EventCreate.vue from Vue Mastery, but using Mapstate. Datepicker component doesn't work now.
<template>
<div>
<h1>Create an Event</h1>
<form @submit.prevent="createEvent">
<label>Select a category</label>
<select v-model="event.category">
<option v-for="cat in categories" :key="cat">{{ cat }}</option>
</select>
<h3>Name & describe your event</h3>
@kevingates
kevingates / om-use.js
Last active January 8, 2016 15:04 — forked from ericakfranz/om-use.js
Basic method of using an OptinMonster Event
// Basic Method of Using an OptinMonster Event
jQuery(document).ready(function($){
$(document).on('EventName', function(event,data,object) {} );
});