newbie here, wondering why this code works fine on 
jsfiddle: https://jsfiddle.net/w4g71ea8/2/  but not when i try to break it 
into seperate files (in same directory) and view with chrome, there was a 
setting (no wrap-in<body>) that was required for it to work on jsfiddlle 
though:

test3.html :

<!doctype html>
<html>
Angular JS Tutorial
7
 <head>
 <script src= "file:///home/chronos/user/Downloads/angular/angular.js" 
 ></script>
 </head>
 <body ng-app="myapp">
 <script>
 src= "script3.js"
 </script>
     
     <div ng-controller="HelloController" >
 <h2>Welcome {{speak}} to the world!</h2>
 </div>
 
 </body>
</html>

--------------------------------------------------------

script3.js : 

var app = angular.module('myapp', []);

app.controller("HelloController", function($scope) {
 
 $scope.speak = "Joe";
 });

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to