This should do what you want:
.directive('myDirective', function() {
return {
scope: {
model: '=identifier',
id: '@identifier',
label: '@',
},
restrict: 'E',
template: '<label for="{{id}}">{{label}}</label><input id="{{id}}" name="{{id}}" ng-model="model">'
};
})
View:
<my-directive label='Last name' identifier="person.lname"></my-directive>