is there some error/exception in your console log?

On Mon, Jun 1, 2015 at 3:47 AM, mukul kant <[email protected]> wrote:

> Hi,
>
> I am very new in angular below code is not working can anybody please help
>
>
>
> <!DOCTYPE html>
> <html ng-app="sampleApp">
> <head>
>     <title>AJ</title>
>     <script src="
> https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js
> "></script>
> </head>
> <body>
>         <ul class="nav">
>             <li><a href="#AddNewOrder"> Add New Order </a></li>
>             <li><a href="#ShowOrders"> Show Order </a></li>
>         </ul>
>
>    <div ng-view></div>
>
>
>
>
> Script:-
>
>
>
> var sampleApp = angular.module('sampleApp', []);
>
> sampleApp.config(['$routeProvider',
>   function($routeProvider) {
>     $routeProvider.
>       when('/AddNewOrder', {
>         templateUrl: 'templates/add_order.html',
>         controller: 'AddOrderController'
>     }).
>       when('/ShowOrders', {
>         templateUrl: 'templates/show_orders.html',
>         controller: 'ShowOrdersController'
>       }).
>       otherwise({
>         redirectTo: '/AddNewOrder'
>       });
> }]);
>
> --
> 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.
>



-- 

Samuel Castro

Full Stack Developer

(37) 9110-8850

-- 
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