initialView in Royale

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

initialView in Royale

hferreira
I saw initialView in every example in Royale.
This seems strange for me.
Why not put the component instance directly on mxml ?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: initialView in Royale

Carlos Rovira-2
maybe others could respond to this. That was as is when I came. I think something similar was in Flex mobile components, although at that time I think it was done that way to avoid instantiation of views and help the poor mobile performance at that moment

El sáb., 17 nov. 2018 a las 11:02, hferreira (<[hidden email]>) escribió:
I saw initialView in every example in Royale.
This seems strange for me.
Why not put the component instance directly on mxml ?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--
Reply | Threaded
Open this post in threaded view
|

Re: initialView in Royale

hferreira
Reply | Threaded
Open this post in threaded view
|

Re: initialView in Royale

Piotr Zarzycki
Hi Hugo,

This exactly how Royale works. It's just mark that following View is initial. You have more such of a section in whatever component you creating. For example each component had section "model" or "beads". 

I personally like the idea from the very beginning and haven't seen any strange in that. It force you to some organization, granulation etc. If I have one View I may have one mode - everything small and easily managable - Not with 1000 lines of code.

Piotr

On Sat, Nov 17, 2018, 12:06 PM hferreira <[hidden email]> wrote:
OK, thank you.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: initialView in Royale

hferreira
Reply | Threaded
Open this post in threaded view
|

Re: initialView in Royale

Alex Harui-2
The Basic Application tries to encourage an MVC pattern to try to have clean separation of data and views of data and controller logic.  In theory, as you eventually try to target other platforms/runtimes/devices, you may need to only change the view or controller, but not the data if you have good separation.

The emulation components do not have an initialView.

-Alex

On 11/17/18, 4:50 AM, "hferreira" <[hidden email]> wrote:

    OK, thank you.
   
   
   
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C3397561acb3649ba2e7908d64c8b488b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636780558471370515&amp;sdata=tFTzv%2Fd2vR3znditRUnsu7qPB5V7edaRj9oA3Z%2BZLzI%3D&amp;reserved=0
   

Reply | Threaded
Open this post in threaded view
|

Re: initialView in Royale

hferreira
In fact it was the first impression I had.
It's good to know.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/