Skip to content

Custom vue filter always having a vue warn error not defined #4420

@DevEclipse

Description

@DevEclipse

Im using filters for chunking arrays but errors pops up like this one

image

Vue.filter('chunk',(array, length) => {
  return _.chunk(array,length);
});

and use it to my component

    <transition-group v-for="data in dataList | chunk(3)"
                      class="row"
                      enter-active-class="animated bounceInRight"
                      leave-active-class="animated bounceOutRight">
      <div class="col-xs-12 col-md-4" :key="data['.key']">
        <md-card md-with-hover>
          <slot :data="data"></slot>
        </md-card>
      </div>
    </transition-group>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions