I am developing an app plugin which needs to see the currently pinned filters. A previous post of mine and many searches reconfirm that I need to be using 'ui/filter_bar/filter_bar' but every reference I found to that calls Private(), which seems to be a parameter frequently passed to visualizations. My app does not get passed it and produces a "private is undefined" error.
Where does this come from and how can I receive this parameter, import it, or define it in an app?
To get an instance of the Private service in your app you'll need to inject it somewhere like in your controller of directives:
import { uiModules } from 'ui/modules'
const module = uiModules.get('myModule')
module.service('myService', function (Private) {
// Here you can use Private to get the instance of anonymous providers
});
I think the service you want is ui/filter_bar/query_filtersource. You will need the Private loader to get access to this service, and it will look something like this:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.