<div ng:app> <form name="myForm" ng-controller="Ctrl"> Inputs inside switch: <span data-ng-switch="show"> <input data-ng-switch-when="true" type="text" data-ng-model="model.theField" /> </span> <br/> Inputs outside of switch: <input type="text" data-ng-model="model.theField" /> <br/> Values: {{model.theField}} </form> </div>
function Ctrl($scope) { $scope.show = true; $scope.model = { theField: 'hello' }; }