angularjs - Term for the Pseudo Code Inside of an Angular Directive -
let's have following:
ng-options="item.name item in filters"
is code related ng-options
considered javascript? or there term angular uses call code embed inside of html directives?
that code can lot of things. string, array, function. of time, angular calls angular expression. check out http://docs.angularjs.org/guide/expression
from docs:
context: javascript expressions evaluated against global window. in angular, expressions evaluated against scope object.
forgiving: in javascript, trying evaluate undefined properties generates referenceerror or typeerror. in angular, expression evaluation forgiving undefined , null.
no control flow statements: cannot use following in angular expression: conditionals, loops, or exceptions.
filters: can use filters within expressions format data before displaying it.
Comments
Post a Comment