これが私のコードです
'use strict';
angular.module('app')
.directive('item'
, ["$timeout"
, "$Service"
, function(
$timeout
, $utils) {
return {
restrict: 'A',
scope: {
item: '=',
},
transclude: true,
link: function(scope, element, attrs, ctrl, transclude){
},
templateUrl: $fsUtils.getRelativeUrl('templates/item.html'),
controller: 'ItemCtrl',
};
}]);
私のindex.html:
<item><div>Transcluded content.</div></item>
transclude 変数はundefined
で、ctrl 変数はproto__: Object
です。親スコープをトランスクルージョンされたスコープに挿入する必要があります。トランスクルード変数は未定義です。どこが間違っているのですか。
私のAngularバージョンは1.1.5です
ありがとう。