'use strict';

app.directive('deviceInfoForm', function (){
  return {
    restrict: 'EA',
    require: 'ngModel',
    replace: true,
    scope: {
      device: '=ngModel',
      rooms: '=',
      selectedRoom: '=',
      deviceTypes: '=',
      formName: '='
    },
    templateUrl: 'views/installer/new/devices/info.html',
    controller: function ($scope) {

      $scope.selectedRoom = $scope.rooms[0];
    }
  };
});
