Nested results in typeahead
I need typeahead to show nested results (2 ng-repeats) with a custom template. Is there some way to do it?
Not sure I got you here? Could you elaborate?
The idea is to group the suggestions into sections. My array is 2dimensional so I cant just do
typeahead="content.string for content in contents"
I need to do something like
typeahead="content.string for content in content_type.contents for content_type in contents_types"
With my custom template being for content_type (and not content).
Here is a concret example:

I think what you are looking for is a groupBy option which typeahead does not suport - you could try: https://github.com/angular-ui/ui-select
@Grigorius it's ok, I built my own module XD
+1 for the groupBy option. @AlexCppns did you implement a version that support groupBy ?
One could implement this via overriding of the typeahead-popup template and creating a custom set of directives.
Otherwise, this is a little complex of a feature for this library to have baked in & not something likely to be used widely, thus we would not want to support this in the library itself, but allow users to extend it to support this.