package com.axellience.vuegwtexamples.client.examples.recursive;

import com.axellience.vuegwt.core.client.component.VueComponent;
import com.axellience.vuegwt.core.client.component.hooks.HasCreated;
import com.axellience.vuegwt.core.annotations.component.Component;
import com.axellience.vuegwt.core.annotations.component.Prop;
import jsinterop.annotations.JsProperty;

/**
 * @author Adrien Baron
 */
@Component(name = "recursive")
public class RecursiveComponent extends VueComponent implements HasCreated
{
    @Prop
    @JsProperty
    Integer counter;

    @Override
    public void created()
    {
        if (this.counter == null)
            this.counter = 0;
    }
}

@@ -85,38 +85,43 @@
 nce.vuegwt.core.
-client
+annotations
 .component.VueCo
@@ -115,19 +115,16 @@
 mponent.
-Vue
 Componen
@@ -164,41 +164,34 @@
 ore.
-client.component.hooks.HasCreated
+annotations.component.Prop
 ;%0Aim
@@ -240,32 +240,34 @@
 s.component.
-Componen
+PropDefaul
 t;%0Aimport co
@@ -295,34 +295,37 @@
 ore.
-annotations.component.Prop
+client.component.VueComponent
 ;%0Aim
@@ -483,30 +483,8 @@
 nent
- implements HasCreated
 %0A%7B%0A 
@@ -516,15 +516,11 @@
     
-I
+i
 nt
-eger
  cou
@@ -535,109 +535,98 @@
    @
-Override%0A    public void created()%0A    %7B%0A        if (this.counter == null)%0A            this.counter =
+PropDefault(propertyName = %22counter%22)%0A    public int defaultCounter()%0A    %7B%0A        return
  0;%0A

Fix RecursiveComponent that broke with Elemental2 Any in template