Using Architect 2, I have been able to create controllers, references (using ID), and controller actions. I run into trouble when I create two peer panels (panel1 and panel2) in the project. Neither is a child of the other (both are class level).
I can create a button on panel1 and give it custom property of [action=gotopanel2]. If I create references for each panel then my understanding is that I then have a getPanel1 and a getPanel2.
I have not been able to figure out how to instantiate panel 2 from panel 1. So far I have tried the following code in the controller action for the button:
The error I get is:
Uncaught TypeError: Cannot call method 'animateActiveItem' of undefined
I guess I figured that the reference would work regardless of whether the component was a parent, I have seen some discussion of the fact that by using ID, I benefit from a global search of the DOM. from the error message the componentquery seems not to be finding the other panel. I would appreciate it if anyone could set me straight. Thanks in advance!
PS. Not sure whether it makes any sense to try and do this. I understand that navigation view may provide better method for doing this if all panels were nested beneath Navigation View...