Hi Suraj,

Your script file is named "controller.js" while you are requesting
"controllerS.js" with an extra 's'.

Cheers.


On Fri, Jul 11, 2014 at 10:49 AM, Suraj S Thapa <[email protected]>
wrote:

> Hi Charly,
>
> Thanks for your help. Please find the link below,
>
> http://plnkr.co/edit/w0szWF5WoEMAkidMNAd5
>
> Regards,
>
> Suraj
>
>
>
> On 11 July 2014 18:35, Charly Poly <[email protected]> wrote:
>
>> Hi Suraj,
>>
>> Are you sure that angular is loaded ?
>>
>> I see this :
>> "lib/*A*ngular/angular.min.js" and i'm wondering if "Angular" should not
>> be "angular" instead ?
>>
>> Please provide an Plunker so we can help you if the issue is still here.
>>
>> Regards,
>> Charly.
>>
>>
>> On Friday, 11 July 2014 10:15:01 UTC+2, Suraj S Thapa wrote:
>>>
>>> Hi all,
>>>
>>> I am new to the AngularJs. Reading the online tutorial I tried
>>> following,
>>>
>>> controller.js:
>>>
>>> *var myApp = angular.module("myApp", []);*
>>>
>>> *myApp.controller("controller",*
>>> *        function controller($scope){*
>>> *                $scope.meal =   {*
>>> *                        'breakfast' : 'Orange Juice',*
>>> *                        'Lunch'         : 'Fruit Salad',*
>>> *                        'Dinner'        : 'Vegetable Rice'*
>>> *                }*
>>> *        }*
>>> *)*
>>>
>>> index.html:
>>>
>>> <!doctype html>
>>> <html ng-app="myApp">
>>> <head>
>>>         <title>Angular Course</title>
>>>         <script src="lib/Angular/angular.min.js" ></script>
>>>         <script src="js/controllers.js"></script>
>>> </head>
>>> <body>
>>>         <div ng-controller = "controller">
>>>                 <h1>{{meal.breakfast}}</h1>
>>>         </div>
>>> </body>
>>> </html>
>>>
>>> I am expecting value of meal.breakfast in web page but I am getting
>>> following,
>>>
>>> http://localhost:3001
>>>
>>>  *{{meal.breakfast}}*
>>>
>>>
>>> Could any one please guide me what is wrong? Thank you in advance.
>>>
>>> Regards
>>>
>>>  --
>> 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/jqWG_17yMlE/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.
>>
>
>
>
> --
> Suraj Thapa
>
> --
> 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.
>

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