parseAs(type, expression);
Converts Angular expression into a function. This is like $parse and is identical when the expression is a literal constant. Otherwise, it wraps the expression in a call to $sce.getTrusted(type, result)
Parameters
Param | Type | Details |
---|---|---|
type | string | The kind of SCE context in which this result will be used. |
expression | string | String expression to compile. |
Returns
function(context, locals) |
a function which represents the compiled expression:
|
Please login to continue.