Directive's isolated scope object is undefined
问题 I'm new to AngularJS and trying to understand how to bind a directive's isolated scope with view's ng-model. The form should be valid when either inputs are empty or both filled with some values. Help me to find out why do I get "undefined" in a console log: .html: <form name="recipientsForm" novalidate> <md-input-container> <label>Name</label> <input name="name" type="text" ng-model="relationship.name" value="" empty-or-both-filled="relationship.relationshipType"> <div ng-messages=