Watch field item changes
To allow fields in hz-resource-property-list to be refreshed upon
action.
Closes-Bug:
///////////////////
function link(scope, element) {
+ scope.$watch('item', function() {
+ filterItem(scope, element);
+ });
+ }
+
+ function filterItem(scope, element) {
var config = scope.config;
var item = scope.item;
var propValue = item[config.id];
}
if (url) {
- element.append(angular.element('<a>').attr('href', url).text(output));
+ element.replaceWith(angular.element('<a>').attr('href', url).text(output));
} else {
element.text(output);
}
