ng2-ui / map

Angular Google Maps Directives
https://ng2-ui.github.io/map
260 stars 98 forks source link

Problem with adding a new component with svg #285

Open kresogalic8 opened 5 years ago

kresogalic8 commented 5 years ago

Hey guys, I have a problem with adding new component with svg init. For example I am adding this to my component which is basic things:

` <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

    </svg>`

And I got an error like this ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[Polygon -> NguiMapComponent]: StaticInjectorError(Platform: core)[Polygon -> NguiMapComponent]: NullInjectorError: No provider for NguiMapComponent! Error: StaticInjectorError(AppModule)[Polygon -> NguiMapComponent]: StaticInjectorError(Platform: core)[Polygon -> NguiMapComponent]: NullInjectorError: No provider for NguiMapComponent!

allenhwkim commented 5 years ago

Please try `<svg ngNonBindable ....>

trustiser commented 5 years ago

Please try `<svg ngNonBindable ....> thank's allenhwkim this works for me. but I didn't undestrand why can you Explain me why my code is working when I add 'ngNonBindable ' property?