Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle directive breaks circle svg tag, need to NS your directives #272

Open
InsOpDe opened this issue Jun 14, 2018 · 3 comments
Open

Circle directive breaks circle svg tag, need to NS your directives #272

InsOpDe opened this issue Jun 14, 2018 · 3 comments

Comments

@InsOpDe
Copy link

InsOpDe commented Jun 14, 2018

IMPORTANT

ERROR Error: StaticInjectorError(AppModule)[Circle -> NguiMapComponent]:
StaticInjectorError(Platform: core)[Circle -> NguiMapComponent]:
NullInjectorError: No provider for NguiMapComponent!

Steps to reproduce and a minimal demo
demo

  • just add a circle-svg element somewhere (even used namespacing i.e. svg:circle)

Current behavior

  • the map doesnt get rendered because the circle-element throws an error

Expected/desired behavior

  • no error whatsoever

Other information

@cemarte
Copy link

cemarte commented Jun 20, 2018

Any workaround for this issue? Mine was using NgNonBindable directive in the svg element, but it won't allow you to bind data to any child element.

@t-zander
Copy link

t-zander commented Sep 5, 2018

It also happens with polygon tag

@allenhwkim
Copy link
Contributor

allenhwkim commented Sep 6, 2018

Please use ngNonBindable

<ngui-map zoom="5" center="24.886, -70.268" scrollwheel="false">
      <map-polygon [editable]="true"
        [paths]="paths"
        [strokeColor]="'#FFC107'"
        [strokeOpacity]="0.8"
        [strokeWeight]="2"
        [fillColor]="'#FFC107'"
        [fillOpacity]="0.35"></map-polygon>
</ngui-map>
<svg ngNonBindable viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
  <circle cx="50" cy="50" r="10"/>
</svg>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants