I have built a reusable vertical navigation component. I plan on using this component across multiple pages and don't know where I am supposed to put the initialization code, which will set the menu headers and items. Obviously, if I do this in the component controller itself, it will be the same across all pages I use it on, so I need a way of setting page-specific initialization attribute values.
In traditional web app development, one could pass the initialization data through a page-level controller model, but how does one accomplish the same in a autonomous Lightning Component, such as the navigation component I referenced above?
I need to be able to set the items
values differently, depending on the page the component is added to. It seems that I need to set the values externally from the component itself.