Aurelia

Introduction For this post I want to show an example how to use an existing library in an aurelia app. The hard part is understanding how to use your library with systemjs and jspm. Use case: toastr I got a request to demo this with toastr. Toastr is an open source library to show simple javascript toast notifications. Project Setup I like a good code name for every blogpost, today we'll go with High Red Avenue. So let's crank up an empty folder, open that commandline and get to it! jspm HighRedAvenue> jspm init We will use all the…

Introduction In this post I would like to demostrate how to use Aurelia with Razor views. In virtually every Aurelia post (at the time of writing) you see people follow the convention of ./bar/foo.js has a template ./bar/foo.html. Don't get me wrong it's a great, simple and elegant way of doing things. But what if you want to mix Server-side code with your template? Use case: Translations And immediate use case that comes to mind are .NET Resx files. Easy to use in your Razor Views or in Server-side code. Project Setup The code name for…