Set 'value' of input field in the form itself and not via controller

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.

1 Like

Thanks @gaurav_ch. It worked!

It seems correct format is as below and this works. Thanks


            
1 Like

Thanks @subhashp . It worked greatly that way