In this example we have array named temp with the text value Textbox,Number.Checkbox, Radio and Select. The array is bind with the
select list and the selected text bind the
ng-switch directive matches the values with the switch variable using
ng-switch-when directive and if user select TextBox value from the
select list then the Textbox will show and if select Checkbox from the select list then the checkbox will show.