INNER CODE UNIT · JavaScript
exists
lensesio/kafka-connect-ui · src/app.js:144
var exists = scope.connectorNames.indexOf(value) !== -1; //why exists doesnt work??
ngModel.$setValidity('unique', !exists );
return value;
});
}
}
}
});
// html filter (render text as html)
angularAPP.filter('html', ['$sce', function ($sce) {
return function (text) {
return $sce.trustAsHtml(text);
};
}])