Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  


Angular two-way Binding to Dictionary
If you bind to a javascript dictionary (i.e. an object) and want to loop over the keys and be able to update the model, use the following syntax:

<div ng-repeat="t in dictObject">
<div ng-repeat="(key,value) in t">
<input type="text" ng-model="t[key]"/>

Otherwise two way binding may not work.

Created By: amos 3/28/2018 8:27:20 AM
Updated: 3/28/2018 8:28:01 AM