Here is my simple hello world type code ... Dont know why this code is  not 
working . 

*index.html :*

*<!DOCTYPE html>*
*<html ng-app="book">*
*  <head>*
*    <script type=”text/javascript” src="angular.js"></script>*
*    <script type=”text/javascript” src="book.js"></script>*
*  </head>*
*  <body>*
*    <div ng-controller="MainCtrl">*
*      <span>hello: {{world}}</span>*
*    </div>*
*  </body>*
*</html>*

*book.js:*

angular.module('book', []);
var MainCtrl = function($scope) {
  $scope.world = 'world';
};

when I open index.html file in my browser it shows : hello: {{world}}

I am using angularjs version 1.2.16 , and all of those files in same folder 
.

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to