VueJs Filters and custom filter in Vuejs Example

VueJs Filters and custom filter in Vuejs Example

Also Read : first love marriage in the world

VueJs Filters and custom filter in Vuejs Example

A Vue.js lots of filter available is essentially a function that more takes a different value,and each processes it, and then some value returns the processed value by all mount data. In the markup Dom model to two way data-binding it is denoted by a special char like as a single pipe (|) and can be simple example to followed by one argument or more arguments.In this Post will show you ,VueJs Filters and custom filter in Vuejs ExampleVue.js filter array of objects

Filters

there Are Following List Of The Filters using vuejs

  • capitalize
  • uppercase
  • lowercase
  • currency
  • pluralize
  • json
  • key
  • filterBy
  • orderBy
READ :  Angular Multipart/form-data File Upload using http post method

Include Vuejs Lins

    <a href="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js">https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js</a>

index.html

Also Read : tamilblasters, 9kmovie, filmygod, hdhub4u, vegamovies, tamilrockers website link and 1377x proxy.

<h1></h1>
<div id="liveApp" class="container">
    <div class="row">UI List Element</div>
 
    
 
    <table class="table table-hover">
        <thead>
        <tr>
            <th><a href="#">id</a></th>
            <th><a href="#">Language</a></th>
        </tr>
        </thead>
 
        <tbody>
        <tr>
            <td>{{ Language.id }}</td>
            <td>{{ Language.Language }}</td>
        </tr>
        </tbody>
    </table>
</div>

index.js

var viewmodel = new Vue({
    el: '#liveApp',
 
    data: {
        liveparam: '',
 
        fitlerkey: '',
		
        myorder: 1,
 
        myproducts: [
            {id: '101', Language: 'angular'},
            {id: '102', Language: 'd3'},
            {id: '103', Language: 'node'},
            {id: '104', Language: 'jquery'},
            {id: '105', Language: 'reveal.js'},
            {id: '106', Language: 'impress.js'},
            {id: '107', Language: 'backbone.js'},
            {id: '108', Language: 'meteor.js'},
            {id: '109', Language: 'express'},
            {id: '110', Language: 'moment'},
            {id: '111', Language: 'underscore'},
            {id: '112', Language: 'gulp'},
            {id: '113', Language: 'react'},
            {id: '114', Language: 'ghost'},
            {id: '115', Language: 'sweetalert'},
            {id: '116', Language: 'select2'},
        ]
    },
 
    methods: {
        lanSort: function (liveparam, myorder) {
	    this.myorder = this.myorder * -1;
            this.liveparam = liveparam;
        }
    }
});

Example

READ :  VueJS Custom Filters Example

Example