ng-inspector
ng-inspector copied to clipboard
Filtering ?
Hey, nice project ;-)
It would be neat to be able to filter what's displayed.
It's an idea that I've discussed with some people before, and I'd definitely like to implement some sort of filtering. How do you envision it @hsablonniere, a string search for model keys and/or a toggle for scopes/model types?
Both would be great ;-)
- a string search for scope keys
- a toggle for types (arrays, strings, boolean, int, functions)
or maybe just functions and "other values"
I am also interested in the ability to filter! One thing i'd really like to have is filter by ng-directives: ng-controller, ng-init, ng-repeat, etc - or anything that writes to the scope(custom directives).
I can potentially submit a PR for chrome since I already implemented a bookmarklet that does filtering for me. One thing that I've also found helpful is searching values, and being able to toggle hidden and/or visible items in the search.
I haven't done extension development in chrome before, and don't see html files. Where in the code would I find the part that traverse, evaluate, and render the scope tree?
Placement - perhaps in the top bar next to the app name?
Placement is an interesting problem: tho it's a very bad idea, all versions of Angular that I'm aware of (and ng-inspector by proxy) support multiple apps in one page. There would be multiple search/filter fields, which isn't necessarily a bad thing.
@a-laughlin there's a very rough documentation on the internals of ng-inspector here.