Hi,
The above code given by you is not working.
I have the same problem as Godwin.
On Friday, August 5, 2016 at 9:13:12 PM UTC+5:30, András Csányi wrote:
>
> Hi,
>
> Try to use this:
>
> <div ng-controller ="MyController" id="MyController">
> <h1>{{$scope.author.name}}</h1>
> <p>{{ $scope.author.title + ', ' + $scope.author.company }}</p>
> </div>
>
> - -
> -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu --
> http://facebook.com/andras.csanyi
> -- ""Trust in God and keep your gunpowder dry!" - Cromwell
>
> On 5 August 2016 at 14:40, Godwin Festus <[email protected] <javascript:>
> > wrote:
>
>> Hi all,
>> i just started learning angular js and must say its quit interesting. I
>> recently encountered a problem in with my learning because the output am
>> expecting from my code is not been displayed, rather my code is displaying
>> {{author.name}}
>> {{author.title +', ' + author.company}}
>> please i will be very greatful if my issue can be resolved.
>>
>> Regards
>>
>> Below are my code:
>>
>> <!DOCTYPE html>
>> <html ng-app lang="en">
>> <head>
>> <meta charset="UTF-8">
>> <title>Angular Demo</title>
>> <script src="lib/angular/angular.min.js"></script>
>> </head>
>> <body>
>>
>> <div ng-controller ="MyController" id="MyController">
>> <h1>{{author.name}}</h1>
>> <p>{{ author.title + ', ' + author.company }}</p>
>> </div>
>>
>> <script>
>>
>> function MyController($scope) {
>> $scope.author = {
>> 'name' : 'Godwin Festus',
>> 'title' : 'Staff Author',
>> 'company' : 'Salifeng.com'
>> }
>> }
>> </script>
>> </body>
>> </html>
>>
>> --
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at https://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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.