a router service

This commit is contained in:
Colin Frei 2013-07-29 17:38:33 +02:00
parent 1f8b8b0f16
commit 5e32393680
2 changed files with 13 additions and 2 deletions

View file

@ -644,4 +644,15 @@ angular.module('podcasts.importer', ['podcasts.utilities', 'podcasts.services'])
}
};
}])
;
;
angular.module('podcasts.router', [])
.service('pageChanger', ['$location', function($location) {
function goToFeed(feedId) {
$location.path('/feed/' + feedId);
}
return {
goToFeed: goToFeed
};
}])
;