From 952f380c3379d5a8aa20a723ad2001637dc9d1be Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 9 Apr 2015 13:10:27 -0700 Subject: [PATCH] [Containment] Make ngModel optional Make the ngModel dependency of mct-control optional, to avoid breaking mct-control usages which don't also use ng-model. WTD-962. --- platform/forms/src/MCTControl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/forms/src/MCTControl.js b/platform/forms/src/MCTControl.js index f57ef05465..bde07e118b 100644 --- a/platform/forms/src/MCTControl.js +++ b/platform/forms/src/MCTControl.js @@ -46,7 +46,7 @@ define( priority: 1000, // Get the ngModelController, so that controls can set validity - require: 'ngModel', + require: '?ngModel', // Link function link: link,