Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import firebase from './firebase'
- var vm = new Vue({
- el: '#example',
- firebase // bring in your firebase module here
- data: {
- message: 'Hello'
- },
- computed: {
- // a computed getter
- sortedList: function () {
- // `this` points to the vm instance
- return this.items.sort((a,b) => { return new Date(a.date) - new Date(b.date) })
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement