Obtaining browser location information using Angular

Whilst building a weather app I needed access to the browsers location information in order to display relevant weather information and I thought it might be of use if I posted the method I used. Geolocation.getCurrentPosition() The Geolocation.getCurrentPosition() method can be used to get the current location. It accepts one mandatory parameter which is a callback […]

Porting a Javascript To Do app to Angular

Whilst looking around for my next Angular project I came across this superb tutorial by CodeExplained which described building a rather snazzy JavaScript To Do app. After watching the video and building the example I decided to port it to Angular to see what I could learn. I didn’t expect to enjoy the process quite […]

Generate C# Classes from a JSON Response

The one sentence overview Generate C# classes from a JSON response. Why bother? Why not just use var? Like everything in programming it depends. For the application I am developing I like the comfort of compile time validation along with the ability to lean on IntelliSense when I need to. What I used Visual Studio […]

How to reference a local JSON schema

One sentence summary This post will show you how to use a locally stored JSON schema to validate a JSON document. Set up In the context of this post, locally stored means the files are located somewhere on your computer. For the examples used here, both the schema and the document are in the same […]