ng -route example done like this way

sampleApp .config(['$routeProvider',
  function($routeProvider) {
    $routeProvider.
      when('/addOrder', {
        templateUrl: 'templates/add-order.html',
        controller: 'AddOrderController'
      }).
      when('/showOrders', {
        templateUrl: 'templates/show-orders.html',
        controller: 'ShowOrdersController'
      }).
      otherwise({
        redirectTo: '/addOrder'
      });
  }]);



and html

 <div class="col-md-3">
            <ul class="nav">
                <li><a href="#AddNewOrder"> Add New Order </a></li>
                <li><a href="#ShowOrders"> Show Order </a></li>
            </ul>
        </div>
        <div class="col-md-9">
            <div ng-view></div>
        </div>
        </div>



When i want to click on Add new order it is not going to click again i mean
i have written same for ajax call i just want to call it again when i click
on add new order or show order.
So When it clicks on both li elements i need updated ajax calls.

On 25 June 2015 at 12:24, Sander Elias <[email protected]> wrote:

> hi Raghavendra,
>
> That sounds cool. Perhaps someone is able to help you if they would
> understand what it is you are asking. (I guess this is a question somehow??)
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Impossible is Nothing

*Raghavendra Yemul*

Save paper, save trees, save the planet
@r <http://www.twitter.com/amanalam>myemul
in.linkedin.com/in/raghavendray

Not sent from an iPad / iPhone / BlackBerry
Just from a good old PC.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to