diff --git a/dynamic-forms.js b/dynamic-forms.js index 4ddb8b9..374604b 100644 --- a/dynamic-forms.js +++ b/dynamic-forms.js @@ -430,7 +430,7 @@ angular.module('dynform', []) restrict: 'E', require: '?ngModel', link: function (scope, element, attrs, ctrl) { - if (ctrl === null) { + if (!ctrl) { // Doesn't have an ng-model attribute; nothing to do here. return; }