Please see this:

http://plnkr.co/edit/soubKCayeLAqgDOel8AL?p=preview

&lt;!DOCTYPE html&gt;
&lt;html ng-app="testApp"&gt;
  &lt;head&gt;
    &lt;script data-require="angular.js@1.4.1" data-semver="1.4.1" src="https://code.angularjs.org/1.4.1/angular.js"&gt;&lt;/script&gt;
    &lt;script src="script.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body ng-controller="testCtlr"&gt;
    &lt;pre&gt;{{contacts | json}}&lt;/pre&gt;
    &lt;div ng-repeat="contact in contacts"&gt;
      &lt;div ng-repeat="email in contact.emails"&gt;
        &lt;input type="email" name="email" ng-model="email.email"&gt;
        &lt;input type="text" name="text" ng-model="email.text"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;


var app = angular.module('testApp', []);
app.controller('testCtlr', ["$scope", function ($scope) {
    $scope.contacts = [
        {
            id:'',
            name:'',
            emails:[
                {
                    email: 'e1',
                    text: 'fghfgh'
                },
                {
                    email: 'e2',
                    text: 'hjkhjk'
                }
            ],
        }
    ];
}]);


you see if you change the text in the email text box it is removed from the obj unless it is a valid email...


Question: Enclosure for whole house water filter
Answer: So if I understood you correctly then you want to dig in the ground, raise the water pipe to a filter, then back down into the ground?

I have to say that doesn't seem like a good idea to me. If I were doing this I would just cut a pipe in the basement and put the filter there. In particular I would cut just the pipe going to the kitchen, and not the whole house.

But if you really want too...

For the enclosure use double layer (4 inches) extruded foam sheets including on the ground! Then cover them in some exterior-grade plywood on the outside to protect from damage.

i.e. build a plywood box without beams/poles inside it (put them on the outside), then glue the foam sheets to the inside. Lay some plastic on the ground with small holes for the pipe, tape the plastic to the pipe, then foam sheets on top of that, and put the whole plywood box on top of it.

You'll probably need a 3rd hole for some sort of support to hold the filters.

I would suggest you wrap the pipe first in electrical heating tape (they sell it to protect pipes from freezing, it's what you want) then in waterproof (i.e. closed cell) foam rated for underground use several inches think and bury it.

Taxes is rather large - if you happen to live in a place that doesn't get very cold then this might not be necessary. I checked and record low in taxes was -23F, but that's probably not where you live.