Commit a78bef669d234763f445e93f85c2cba556b79b09
1 parent
9b27e1e2
Exists in
master
and in
8 other branches
Get image basePath from rootScope
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/app/components/programa/programa.directive.js
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | .directive('programaBox', programaBox); |
7 | 7 | |
8 | 8 | /** @ngInject */ |
9 | - function programaBox(api) { | |
9 | + function programaBox($rootScope, api) { | |
10 | 10 | |
11 | 11 | /** @ngInject */ |
12 | 12 | function ProgramaController($state, Slug, $log) { |
... | ... | @@ -45,7 +45,7 @@ |
45 | 45 | ProgramaController.prototype.getImageUrl = function () { |
46 | 46 | var vm = this; |
47 | 47 | |
48 | - return api.host + vm.program.image.url; | |
48 | + return $rootScope.basePath + vm.program.image.url; | |
49 | 49 | }; |
50 | 50 | |
51 | 51 | ProgramaController.prototype.getImageAlt = function () { | ... | ... |