I have the following $router configuration
$router.config ([
{ path: '/account/profile', components: {'main' : 'accountProfile' }},
{ path: '/campaigns/:type', components: {'main' : 'campaigns' }},
{ path: '/login', components: {'main' : 'login' }},
{ path: '/', redirectTo: '/home' }
]);
and I want to change template for campaigns based on their :type.
How can I do this using the new Angular Router?