MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / parseConstantExpr

Function parseConstantExpr

lib/test/angular/1.8.0/angular.js:27231–27242  ·  view source on GitHub ↗
($parse, context, name, expression, fallback)

Source from the content-addressed store, hash-verified

27229}
27230
27231function parseConstantExpr($parse, context, name, expression, fallback) {
27232 var parseFn;
27233 if (isDefined(expression)) {
27234 parseFn = $parse(expression);
27235 if (!parseFn.constant) {
27236 throw ngModelMinErr('constexpr', 'Expected constant expression for `{0}`, but saw ' +
27237 '`{1}`.', name, expression);
27238 }
27239 return parseFn(context);
27240 }
27241 return fallback;
27242}
27243
27244function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter, $parse) {
27245 var trueValue = parseConstantExpr($parse, scope, 'ngTrueValue', attr.ngTrueValue, true);

Callers 1

checkboxInputTypeFunction · 0.70

Calls 2

isDefinedFunction · 0.70
$parseFunction · 0.70

Tested by

no test coverage detected