我在下面的代码中使用了ng-hint,但它没有显示任何Angular Hint警告/错误。
下面是我的代码,这里我使用了$ scope而没有注入它
<!DOCTYPE html>
<html lang="en" ng-app="myapp" ng-hint-include="controller">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js"> </script>
<script src="hint.js"></script>
</head>
<body>
<div ng-controller="HelloController" >
<h2>Hello {{helloTo.title}} !</h2>
</div>
<script>
angular.module("myapp", [])
.controller("HelloController", function() {
$scope.helloTo = {};
$scope.helloTo.title = "World, AngularJS";
} );
</script>