JSAngular-10
injecting dependencies
by munir
HTML
<html ng-app="myApp">
<div ng-controller="Example">
{{name}}
</div>
<script>
angular.module('myApp',[])
.controller('Example',['$scope',function(s){
s.name = "Tom";
}]);
</script>
</html>