Try this dude
> <!DOCTYPE html>
> <html ng-app="myapp" 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>
>
> var app = angular.module("app",[]).controller('MyController',['$scope',
> function MyController($scope) {
> $scope.author = {
> 'name' : 'Godwin Festus',
> 'title' : 'Staff Author',
> 'company' : 'Salifeng.com'
> }
> }]);
> </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.