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
rootElements 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.hbstemplate - Add a new
sidebarApp.hbsandsidebarFacets.hbstemplates to render the faets app.