re: Vue's Darkest Day VIEW POST


"However using the proposed syntax it's easy to see how big components could have logic broken up into smaller reusable pieces, moved into separate files if necessary"

Nice idea but why not to extend mixins possibilities with this syntax:

import commonLogic from '~/mixins/commonLogic'

export default {
  mixins: {
    foo: commonLogic

  computed: {
    bar () {
      // Now I use instead of this.someData
      // So we know where someData came from
code of conduct - report abuse