MCPcopy Index your code
hub / github.com/angular-ui/ui-router / createAndSet

Function createAndSet

test/angular/1.7/angular.js:25134–25139  ·  view source on GitHub ↗
(ctrl, name, value, controller)

Source from the content-addressed store, hash-verified

25132 };
25133
25134 function createAndSet(ctrl, name, value, controller) {
25135 if (!ctrl[name]) {
25136 ctrl[name] = {};
25137 }
25138 set(ctrl[name], value, controller);
25139 }
25140
25141 function unsetAndCleanup(ctrl, name, value, controller) {
25142 if (ctrl[name]) {

Callers 1

addSetValidityMethodFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected