Can ng-model be used with a component in Angular JS 1.5.6? I am trying to bind a scope variable to a component using ng-model. If you'd like to see my issue, check out my Plunker. Specifically, I want the component "my-input" to be bound to the userData.name variable from the scope.
I am working with Angular JS 1.5.6 components and prefer not to use directives.
<body ng-controller="MyCtrl">
<div class="container">
<h2>My form with component</h2>
<form role="form">
<div class="form-group">
<label>First name</label>
<my-input placeholder="Enter first name" ng-model="userData.name"></my-input>
</div>
</form>
</div>
</body>