javascript - What is wrong with my angular-module? -


I have a simple angular JS module: this module is to work with angle deck game deck, not production, beta =)

So ... and I have a problem that I can not decide. The game card by default is a simple SVG image, and again by default the initial modules are loaded automatically by all the cards in the working phase. Some solid card programmers need to be inserted, so it's like:

  & lt; Card Data-Value = "'2H" ">  

Simplify further instruction instructions, insert required SVG cards via jquery:

  $ (Element) .html (''); __deck __ [card] .clone () appendTo (element).  

But actually SVG is reloading, cloning STVG Instead of __deck [card] __ array.

Instead of cloning, try creating a copy with angular.copy (__deck __ [card])

Cod E> I think this is an ideal clone, all the bonds of that element are the same.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -