index.js 439 B

1234567891011121314151617181920212223242526272829303132
  1. //Component Object
  2. Component({
  3. properties: {
  4. commentsList:{
  5. type:Array,
  6. value:[],
  7. observer: function(){}
  8. },
  9. },
  10. data: {
  11. },
  12. methods: {
  13. },
  14. created: function(){
  15. },
  16. attached: function(){
  17. },
  18. ready: function(){
  19. console.log(this.properties)
  20. },
  21. moved: function(){
  22. },
  23. detached: function(){
  24. },
  25. });