Nope, here is no error. But problem is page is not render on another page.

On Mon, Jun 1, 2015 at 1:58 PM, Samuel Castro e Silva <
[email protected]> wrote:

> 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 a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/yWJTByjUVgg/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>



-- 

   [image: --]

Mukul kant
[image: http://]about.me/mukulkant
   <http://about.me/mukulkant?promo=email_sig>

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