text: (function (angular) {
      'use strict';
  
      angular
          .module('mllApp.upload')
          .controller('MusicGeneralInformationFormController', MusicGeneralInformationFormController);
  
      MusicGeneralInformationFormController.$inject = ['musicGenres'];
  
      function MusicGeneralInformationFormController(musicGenres) {
  
          this.genres = angular.copy(musicGenres);
  
          this.addArtist = () => this.data.artists.push({ name: '' });
  
          this.removeArtist = (i) => this.data.artists.splice(i, 1);
  
          this.selectGenre = (genre) => { if(!genre) this.data.secondaryGenre = null; };
  
          this.submit = () => {
              if (this.generalForm.$invalid) this.generalForm.$submitted = true;
              else this.onNext();
          };
  
          this.reset = () => this.onPrevious();
  
      }
  })(window.angular);