<md-dialog aria-label="Edit profile dialog">
    <form ng-cloak name="profileForm">
        <md-dialog-content>
            <div class="md-dialog-content">
                <h2 class="md-title">Copy profile to:</h2>
                <md-select placeholder="" aria-label="Profiles select" ng-model="profileSelect" ng-change="profileChanged()">
                    <md-option ng-repeat="profile in pidTuningProfiles track by $index" ng-value="profile.value">{{ profile.name }}</md-option>
                </md-select>
            </div>
        </md-dialog-content>

        <md-dialog-actions layout="row" ng-show="buttons">
            <div ng-repeat="button in buttons">
                <md-button ng-click="button.action && button.action()">
                    {{ button.name }}
                </md-button>
            </div>
        </md-dialog-actions>
    </form>
</md-dialog>