I would like to set the ‘value’ of a input field in the form and not via controller. e.g. I want to set the value of below hidden field ‘searchTyp’ to ‘app’. How can I do it? Kindly help.
X Search
I would like to set the ‘value’ of a input field in the form and not via controller. e.g. I want to set the value of below hidden field ‘searchTyp’ to ‘app’. How can I do it? Kindly help.
X Search
you have to use the ng-model=“search.Typ = ‘app’” in the view so that the value is set during view load. Rest you need to code in controller.
It seems correct format is as below and this works. Thanks