Is there a way of inheriting the parent scope while extending it with passed attributes?
I want to pass parameters to a reusable directive directly from the template without having to alter the DOM in the linking function.
For example:
<form-input icon="icon-email" label="email" ng-model="data.input"></form-input>
For a directive like this:
<div class="form-group">
<label>{{label}}</label>
<div class="input-group">
<div class="{{icon}}">@</div>
<input class="form-control" placeholder="Email" ng-model="mail.email">
</div>
</div>
ng-model is in the parent scope, controlling an entire form in this case, but I don't think it's necessary to store styling attributes in the controller.
Is there a way of passing parameters directly in the template without creating an isolate scope?