Hi there,
I’m working with Ionic 2 and I like it very much. Nice to have this framework
There are ways to declare private and public (and so on …) members in a class for … reasons, that we have, short and sweet. Is there a way to declare members in my controller class that must not be used in any way by the view?
As I didn’t expected I can access private members of my controller inside of the view. I would have expected that only the public members would be accessible. But for … reasons … I want to explicitly prohibit access to members in the controller when I’m trying to access them from the view by.
I want to have these access modifiers for access by view elements, too. Like at clean code type strictness, I would expect to have these modifiers for view elements, just for clean coding purpose and for preventing misapplication of members of controller classes …
Is there a way to accomplish anything like that?
Thanks and have a nice day!