"use strict";

angular.module("hikeio").
	directive("preloadResource", ["resourceCache", function(resourceCache) {
		return {
			link: function (scope, element, attrs) {
				var json = JSON.parse(element.html());
				resourceCache.put(attrs.preloadResource, json);
			}
		};
	}]);
"use strict";

angular.module("hikeio").
	directive("preloadResource", ["resourceCache", function(resourceCache) {
		return {
			link: function (scope, element, attrs) {
				resourceCache.put(attrs.preloadResource, element.html());
			}
		};
	}]);
Put string into resource cache instead of parsed object, angular takes care of that.
Put string into resource cache instead of parsed object, angular takes care of that.
