From f05ea75e47ddb2108a2ea34435f7d628bfe2eefd Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 26 Jun 2016 18:38:20 -0400 Subject: #275 - force path option in dev settings Former-commit-id: ea98c5acdafb9b1de06890c1b07d636dbea7be10 --- www/js/app.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'www/js/app.js') diff --git a/www/js/app.js b/www/js/app.js index 0fbfb951..cb7ba822 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -81,6 +81,15 @@ angular.module('zmApp', [ }) +.directive('dynamicUrl', function () { + return { + restrict: 'A', + link: function postLink(scope, element, attr) { + element.attr('src', attr.dynamicUrlSrc); + } + }; +}) + .directive('dannyPackery', ['$rootScope', function($rootScope) { return { -- cgit v1.2.3