using the navigator property of View components
for my application, I have these three files (in addition to other files):
In my Orders file I have defined two states: list and make.
So, I include my MakeAnOrder and ListAllOrders views (components) as follows:
inside my Orders file.
Now, inside MakeAnOrder I have a button that invokes navigator.pushView(someView);, but it won't work. the error I get is that the navigator is null.
One way I circumvented this issue is by putting the button in Orders file and defining its' clickHandler in Orders file, but making it visible only in 'make' state. This worked fine functionally, but it complicates maintenance of code?
is there any other way to do this better?
Thank you for your reply.