im new to AngularJS and im having trouble creating a controller for my page
its a simple page that load app.js file that has $scope.name = "james"; and i use the expression {{ $scope.name }} to display that value which isnt coming up.. but when i run {{ 2 + 4 }} it shows 6 so angular is working..
another thing is when i open the page in safari the expressions are being displayed raw (meaning : '{{ 2 + 4 }}') but chrome would run it and will show the results..
here is my code.. thanks for helping
HTML
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js"></script>
<script src="app.js"></script>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div data-ng-app="myApp" data-ng-controller="myCtrl">
{{ $scope.name }}
{{ 2 + 4 }}
</div>
</body>
</html>
app.js
var myApp = angular.module('myApp', []);
myApp.controller('myCtrl', function($scope){
$scope.name = "James"
})