Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Question: Is it possible to nest ui-gmap-markers directives? #1212

Open
@ballistic

Description

@ballistic

I'm currently using the ui-gmap-marker directive with ng-repeat to display the markers for each state. Nested inside of this directive is another ui-gmap-marker that ng-repeats over the state.cities.

This all works, but I am now having some performance issues and would like to use the ui-gmap-markers directive. However, I do not know how to access the current state from the nested directive to use as in the models attribute.

Version using ng-repeat with the singular version of the directive:
http://jsfiddle.net/g9eubhLq/2/

Version using the plural version of the directive (ui-gmap-markers). Notice the nested ui-gmap-markers that I would like to use for the cities. I just don't know how to access the model from the parent.
http://jsfiddle.net/j6trhpdt/1/

I posted this question on StackOverflow and set a bounty on it:
http://stackoverflow.com/questions/28907465/nesting-ui-gmap-markers-directives

Hopefully someone can answer my question.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions