Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import firebase from './firebase'
  2.  
  3. var vm = new Vue({
  4. el: '#example',
  5. firebase // bring in your firebase module here
  6. data: {
  7. message: 'Hello'
  8. },
  9. computed: {
  10. // a computed getter
  11. sortedList: function () {
  12. // `this` points to the vm instance
  13. return this.items.sort((a,b) => { return new Date(a.date) - new Date(b.date) })
  14. }
  15. }
  16. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement