Can anyone explain the reason behind this commit in ionic 2 conference app? All private members in constructor are replaced by public.
-Thanks
Can anyone explain the reason behind this commit in ionic 2 conference app? All private members in constructor are replaced by public.
-Thanks
This is for the new Ahead of time compiling. This means that the compiler will be able to gather all the needed information about your app before hand to works it magic. If things are private, the AoT compiler will not be able to work correctly.
Thanks for the response.
It means just changing private to public will magically increase app performance. Also, should I just blindly change everything in constructor to public? In Ionic conference app, in app.ts, platform and conferenceData is not set public, any specific reason for that?