AngularJS Part 4 - The Factory

by Yngve Bakken Nilsen

This post is part of a series of posts on AngularJS, and here are the parts so far: AngularJS Part 1 - Getting started with the basics AngularJS Part 2 - Getting started with Controllers AngularJS Part 3 - Routes and Views AngularJS Part 4 - The Factory When working…

AngularJS Part 3 - Routes and Views

by Yngve Bakken Nilsen

This post is part of a series of posts on AngularJS, and here are the parts so far: AngularJS Part 1 - Getting started with the basics AngularJS Part 2 - Getting started with Controllers AngularJS Part 3 - Routes and Views AngularJS Part 4 - The Factory So far,…

AngularJS Part 2 - Getting started with Controllers

by Yngve Bakken Nilsen

This post is part of a series of posts on AngularJS, and here are the parts so far: AngularJS Part 1 - Getting started with the basics AngularJS Part 2 - Getting started with Controllers AngularJS Part 3 - Routes and Views AngularJS Part 4 - The Factory In AngularJS…

AngularJS Part 1 - Getting started with the basics

by Yngve Bakken Nilsen

This post is part of a series of posts on AngularJS, and here are the parts so far: AngularJS Part 1 - Getting started with the basics AngularJS Part 2 - Getting started with Controllers AngularJS Part 3 - Routes and Views AngularJS Part 4 - The Factory AngularJS has…

Microsoft.AspNet.Web.Optimization Minifies Mediaqueries wrong

by Yngve Bakken Nilsen

Update: The bug mentioned here is now fixed in both WebGrease (making sure there are leading spaces) and in Chrome (making sure it parses mediaqueries without leading spaces in front of keywords). However, since this is a proposal in the future CSS spec that spaces are mandatory, I'll leave the…

Making RequireJS play nice with ASP.NET MVC

by Yngve Bakken Nilsen

Working with web-projects are getting more and more Javascript heavy, and good developers as we are, we cry out for structure! There are several ways of achieving structure when working with Javascript, and in this blogpost we'll look into RequireJS. This is not an in-depth RequireJS tutorial, but we'll touch…

Implementing the C(ommand) in CQRS

by Yngve Bakken Nilsen

In this post I'll show how easily you can implement the Command-part of CQRS in your application. If you don't know what CQRS (or Command Query Responsibility Separation for "short") is, you can read about it over at Martin Fowler, but the short story is that you want to separate…

Implementing Domainevents in your application

by Yngve Bakken Nilsen

Disclaimer: This is not some invention by me. The code I'm presenting is written by me, but inspired by the work of others. I'm not taking credit for this approach, but simply conveying the principle :) Make sure to check out my post on Commands as well for a nice supplement…

Clean up your MVC app with SignalR

by Yngve Bakken Nilsen

Update This blogpost was written with the 0.6b release of SignalR, and the examples wont necessarily work with the latest release. I've pushed working code with the latest SignalR version (1.0.1) on GitHub. Clean up your MVC app with SignalR! If you're working on any web…

Creating a reusable base for WP7 apps - Commands

by Yngve Bakken Nilsen

Commands In Part 2 we looked at how we could solve navigation in a managable way. I did this by the assumption that one view would have one viewmodel, and apparently this caused some disagreements and a great blogpost by my friend and former colleague (and now colleague again), Olav…