I have a directive link function. By default angular link functions is a post link function, isn't it? How to make that as pre link?
app.directive("textBoxCol", function () {
return {
require: "^grid",
restrict: "E",
replace: true,
scope: {
title: "@title",
cssClass: "@class",
dataField: "@field"
},
link: function ($scope, element, attrs, grid) {
$scope.type = ColumnType.TextBox;
tableControl.addColumn($scope);
}
};
});
BTW, it use require.