v-validate is one of the best validation plugins out there for Vue js, if you are looking to validate a list inside the form you can use below snippet.
In one of my previous blog post I have put together a service to verify valid Australian mobile number, in this post I will share the service I use to send SMS (TXT) messages to mobile numbers.
Send a SMS (TXT)/Voice message to given mobile number, for SMS (TXT) based verification will receive a 4 digits number which they will enter back. and that number get validated
Most of the apps we write have some data that not get updated frequently or not get updated at all. For example – suburb list, user roles, etc. We can avoid reading the database for all those entities by using a cached collection.
Chart.js is awesome, has many chart types and very configurable, most of all its free. Let’s look at how we can build it before we get started on the Vue component. We need to include the Chart.js wither via npm or by directly placing the file in your project (whatever easy).
I had to create a chart from Chart JS to display, displaying data with Chart JS is super easy, but getting the data from the server is bit tricky unless you are a SQL expert (well not me :)). Below query will group it by month.
Recently ran into some issues (Colleague of mine noticed it) working with VueJs (maybe its the same in Angular, but can’t remember). Properties won’t get default values, for example in C# if you do this, string fields will have an empty string (”), bool will have false, so on…
How to upload images (jpgs, pngs) from Vuejs to Asp.net core web service
asp.net core / C# Image Resize Service using ImageMagick NuGet
I had to create an Autocomplete component for fun, its no way near perfect. There are plenty of other implementations that are already serving the same purpose – but hey I wanted to do it my self – fair enough?
This code snippet demonstrates how you can create a C# .net service to do Google Places API lookup API
Creating a service to save and delete file in Windows Azure Storage Blob
Creating a pagination component emits click events to parent
Retrieve JWT claims from Bearer Token in API/MVC
Let look at how to create a reusable component in Vue Js, to start with we will create a simple loader component.
Centralising FluentValidation rules to a service
How to protect your routes using beforeEnter in Vue Js, allowing only logged in user to navigate to it.
How to protect your routes using beforeEnter in Vue Js, allowing only logged in user can navigate to it.
This is a continuation of my previous post of Setting up Asp.net core API for JwtBearer Authentication. This will show how to issue Jwt tokens upon successful login
Setting up Asp.net core API for JwtBearer Authentication
Creating format date filter, registering it globally and using it. The example is in typescript.
Registering the DbContext in order to use it throughout the application as ServiceLifetime.Transient
Executing a command line (CMD) utility (.exe) and reading the output it generate using C#
Asp.net core 2 released recently and I wanted to port my existing asp.net 1.1 app to 2.0. Updated the NuGet packages and most things remain same, but I noticed the reading app settings are broken (well there were few others too – may be later.)
EO.Pdf by Essential Objects – Extending to include ASP.net cookie authentication
This will have the code snippets to update Angular to latest and the useful npm commands
Azure deploy – Angular 2 webpack 1.12.14 project that came with ASP.NET Core + Angular 2 template for Visual Studio.
We have been having issues publishing the Angular 2 webpack 1.12.14 project that came with ASP.NET Core + Angular 2 template for Visual Studio.
Enums much better way compared to hard coding the string. Collection of code snippets using Enums with c# switch statment
The project I am working on had migrations issues – it simply didn’t do the database UPDATE automatically. I have fixed the issue but had to make sure the automatic migrations are working as expected. Needed to test many times, to see if it create it automatically was run and creates tables, SPs, Views, etc. In […]