At times it might be useful to separate the facets block from the search input and results. Here is how you can do that:
- We will need to add two container elements to index.html so that we can use them as
rootElement
s for the two applications. - Define both of our new apps at the top of
spyglass-app.js
. The facets app does not need to monitor the url, it just needs to observe the primary spyglass app. - Remove the current facets from the
search.hbs
template - Add a new
sidebarApp.hbs
andsidebarFacets.hbs
templates to render the faets app.