Created
July 7, 2015 19:40
-
-
Save sirgalleto/0b01d540b6ea4249e954 to your computer and use it in GitHub Desktop.
Filter base url + static
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
angular | |
.module('evaluon') | |
.value('imgUrlBase', 'http://186.154.240.187:1045') | |
.filter('image', image); | |
function image(imgUrlBase) { | |
return function(img){ | |
return '{0}/{1}'.format(imgUrlBase, img); | |
}; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example
{{data.image | image}}