title: How to export and import multiple functions inside component? vuejs
body: <p>In my <strong>Date.js</strong>, I'm trying to export multiple functions, but it fails and returned an bunch of errors.</p>
  
  <pre><code>import moment from 'moment';
  
  let today = moment();
  
  const age = function(date) { return today.diff(moment(date), 'years'); }
  const ageGreaterThan = function(date, age) { return age(date) &gt; age; }
  //more functions here
  
  export default age, ageGreaterThan;
  </code></pre>
  
  <p>In my <strong>Signup.vue</strong>, I'm trying to import the file above, as it expected it fails.</p>
  
  <pre><code>import Datex from './../util/Date.js';
  
  export default{
      data(){ datex: new Datex },
  
      methods: {
          sample(val){ return this.datex.age(val); }
      }
  }
  </code></pre>
  
  <p>I'm really confuse to this <a href="https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export" rel="nofollow noreferrer">reference</a>, someone can help me how to do this?</p>