javascript - What does "<" isolate binding mean -
i've come across following "<" isolate binding in source code:
switch (mode) { case '@': ... case '=': ... case '&': ... case '<': if (!hasownproperty.call(attrs, attrname)) { if (optional) break; attrs[attrname] = void 0; } if (optional && !attrs[attrname]) break; parentget = $parse(attrs[attrname]); destination[scopename] = parentget(scope); initialchanges[scopename] = new simplechange(_uninitialized_value, destination[scopename]); removewatch = scope.$watch(parentget, function parentvaluewatchaction(newvalue, oldvalue) { if (newvalue === oldvalue) { // if new , old values identical first time watch has been triggered // instead use current value on destination old value oldvalue = destination[scopename]; } recordchanges(scopename, newvalue, oldvalue); destination[scopename] = newvalue; }, parentget.literal); removewatchcollection.push(removewatch); break;
angular docs mention first three, purpose of 1 "<"?
Comments
Post a Comment