On Friday, August 5, 2016 at 2:40:05 PM UTC+2, Godwin Festus 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].
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.