Try this
<!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>

<script>
var app = angular.module("myApp",[]);
app.controller("MyController",['$scope',
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.

Reply via email to