We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 426f936 commit ebe0de8Copy full SHA for ebe0de8
src/directives/schema-form.js
@@ -147,6 +147,18 @@ angular.module('schemaForm')
147
// let it be.
148
scope.externalDestructionInProgress = true;
149
});
150
+
151
+ /**
152
+ * Evaluate an expression, i.e. scope.$eval
153
+ * but do it in parent scope
154
+ *
155
+ * @param {String} expression
156
+ * @param {Object} locals (optional)
157
+ * @return {Any} the result of the expression
158
+ */
159
+ scope.evalExpr = function(expression, locals) {
160
+ return $scope.$parent.$eval(expression, locals);
161
+ };
162
}
163
};
164
0 commit comments