ng-inspector icon indicating copy to clipboard operation
ng-inspector copied to clipboard

Filtering ?

Open hsablonniere opened this issue 10 years ago • 5 comments

Hey, nice project ;-)

It would be neat to be able to filter what's displayed.

hsablonniere avatar Jun 05 '14 08:06 hsablonniere

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?

rev087 avatar Jun 05 '14 09:06 rev087

Both would be great ;-)

  1. a string search for scope keys
  2. a toggle for types (arrays, strings, boolean, int, functions)

or maybe just functions and "other values"

hsablonniere avatar Jun 05 '14 09:06 hsablonniere

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).

fk1blow avatar Sep 29 '14 21:09 fk1blow

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? image

a-laughlin avatar Jun 18 '15 18:06 a-laughlin

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.

rev087 avatar Jun 18 '15 18:06 rev087