pretenders/pretenders — pull request #73 by alexcouper (2013-03-20 21:51:05+00:00)
Title: 59 simple alex

I'm mid-way through this issue ( #59 ) , got a few more views to go, but since this was my first forage into Angular wanted some feedback about whether this is the best way of doing things.

If I could I'd prefer to have the mock controller be generic and take an argument at the $routeprovider point of whether it is "http" or "mock", and better yet have the routeprovider pass that in itself. Something like::

$routeProvider.when('/(http|mock)', {
templateUrl: '/static/partials/mocks.html',
controller: GenericMockListCtrl(url)
});

Is something like this possible?