more-details.js

angular.module('homepage').
directive('moreDetails', function() {
    return {
        restrict: 'E',
        replace: true,
        scope: {
            detail: '=data'
        },
        templateUrl: 'components/content-components/input/more-details.html',
        controller: 'moreDetailsController'
    };
}).
controller('moreDetailsController', function($scope) {
    $scope.detail.language = {
        spoken: '',
        readwrite: ''
    };
});