スタイルのオブジェクトがあり、最初の要素だけに別の CSS スタイルを設定する必要があります。そのために特別にディレクティブを作成しましたが、機能しません
私はあなたの助けに感謝します!
コードは次のとおりです。
<div class="row" ng-style="rowCss" ng-repeat="top in gridObj" ng-zero>
$scope.rowCss = {
"height" : rowAndSquareHeight,
"padding-top": baseLine
}
editorApp.directive('ngZero', ['$document', '$parse', function($document, $parse) {
return function(scope, element, attr) {
$(element).css({"padding-top" : "0px"});
};
}]);
ありがとう!