有下面的代碼:「需要」與「^^」角指令
ff.directive('radarMapMap', {
restrict: 'A',
require: '^^radarMap',
link: function (scope, element, attrs, mapCtrl) {
mapCtrl.setMapElement(element);
}
});
我不明白是什麼require: '^radarMap'
和require: '^^radarMap'
之間的差異。我沒有在文檔中找到它。請讓我清楚。提前致謝!
任何源網址? – devqon
添加它,檢查出來:) – Iamisti