angular-bricklayer icon indicating copy to clipboard operation
angular-bricklayer copied to clipboard

Delete element, and multiple bricklaer on same page.

Open epicleptico opened this issue 9 years ago • 2 comments

I was working in this issue on my "own" version of this plugin (Just rewrote in my application style), and with this slight changes you can:

  • Have multiple bricklayer on same page
  • Remove elements without trouble.

This is a gist with the plugin code https://gist.github.com/epicleptico/27e6e8e444d11d0aa4686f112ea7964f (As you must see i have application specific code style).

You can take a look on working plunkr on https://plnkr.co/edit/3NmNUIfACo6Yb8qCniZb (Use full screen preview)

Just to note, for multiple versions you must place id and data-target on main div and child divs. And for delete you must place inside a $timeout a $broadcast with removing data.

Hope that helps. Thanks

epicleptico avatar Dec 05 '16 11:12 epicleptico

can you send me a Pull Request for this?

JohnnyTheTank avatar Dec 05 '16 11:12 JohnnyTheTank

Sure but will be later, also consider that the needed data-target will broke current versions.

epicleptico avatar Dec 05 '16 11:12 epicleptico