I want to change zoom of google map in angular js when some location search in search box
<p>At initialization    </p>

<pre><code>var mapOptions = {
    zoom: 6,
    center: new google.maps.LatLng(30.3753, 69.3451),
    mapTypeId: google.maps.MapTypeId.ROADMAP
}
 $scope.map = new google.maps.Map(document.getElementById('map'), mapOptions);
</code></pre>

<p>At search</p>

<pre><code> $scope.map.zoom = 10;   
</code></pre>

<p>currently I use this code but its not working, at initialization of google map zoom=6 that is working properly but when I want to change on search it is not working.</p>