Skip to content
Loading
  • Bidyasagar Mishra
    0
    use the below link 
    https://stackoverflow.com/questions/31759381/reloading-a-ng-include-template-on-ng-click 
    0
  • 0
    Hi sonu Gupta , 
     
    I tried your code but its not loading the whole page and i need when i click the button or link page will not reload . 
    0
  • Vishal  Patel
    0
    You can try to prevent default handler:
    html:
    1. <button ng-click="saveUser($event)">  
    js:
    1. $scope.saveUser = function (event) {  
    2. event.preventDefault();  
    3. // your code  
    4. }  
    0
  • 0
    Vishal Patel your code is not working. cannot understand your code. Help on this ? 
    thanks in advance. 
    0
  • 0
    As per your code try to give type="button" to anchor tag it works fine
    0