Recently in our codebase, we made some updates to the class property names which are being used by Angular js files.
After debugging, I have found that the bTargets object contains data, but I am unsure about what exactly the ng-options attribute is doing behind the scenes.
<select class="BranchRuleTargetSelect" ng-model="branchTargetID" ng-options="t.ID as t.Text for t in bTargets" />
However, despite having data in the bTargets object, this select element does not display any options.
The bTargets object contains properties named ID and Text, so my suspicion is that the expression might be failing due to the alias usage within it.
If you need specific angular code snippets, please let me know.
surveybuilder.branching.rulesControllerExtender = function ($scope) {
function setBranchTargets() {
$scope.bTargets = $scope.branchTargets.filter(function (x) { return x.ID !== $scope.QuestionnaireItem.Id; });
}
setBranchTargets();
}