Clear data-placeholder if ng-model isn't empty

Using angular-medium-editor I define elements like the following

    <h1 ng-model="$storage.resourceContent.name" class="input-block-level" medium-editor
        options="{{editorMinOptions}}" data-placeholder="title">

The problem is that if the model isn't empty, the placeholder won't be emptied. That's why I did this modification in order to empty the data-placeholder if the ng-model is already set.