angular.module('mod1', [])
.directive('myDir', ($timeout) => {
return {
///....
}
});
angular.module('myApp', ['mod1'])
<html ng-app="myApp">
<body>
<my-dir valu='blablabla' />
</body>
</html>
では、なぜこれが機能しないのでしょうか。そして言う 不明なプロバイダー: $compileProvider
、
しかし、ディレクティブをmyApp
モジュールに移動すると機能します