JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-controller="Ctrl as vm">
<select ng-model="vm.selectedEntity"
ng-options="entity.label for entity in ::vm.entityList"></select>
<div>Version: {{::vm.version}}</div>
</div>
JavaScript
var entity1 = {
label: "First"
};
var entity2 = {
label: "Second"
};
var entityList = [entity1, entity2];
// Create a cycle
// => In Breeze.js, an Entity references an EntityAspect
// which references back to the Entity.
entity1.ref = entity1;
angular.module('app', [])
.controller('Ctrl', function () {
var vm = this;
vm.version = angular.version.full;
vm.entityList = entityList;
// ERROR - angular 1.4 only
// Selecting the first item (here or from the UI)
// will generate a "RangeError: Maximum call stack size exceeded"
// in angular.equals.
vm.selectedEntity = vm.entityList[0];
});