Is it possible to import my other plunker as a library in a new plunker?
Say, I've built a few AngularJS directives in a plunker. Can I reuse them in my other plunkers?
Is it possible to import my other plunker as a library in a new plunker?
Say, I've built a few AngularJS directives in a plunker. Can I reuse them in my other plunkers?
You absolutely can refer from one plunk to another, but the mechanics to do so are not very well exposed. Historically, Plunker didn't expose this to users by design.
In future versions, Plunks will be publishable as semver versioned packages to the package manager and this sort of thing will automatically be wired up for you.
To use the type of setup you propose in Plunker today, you can:
http://run.plnkr.co/plunks/<plunkId>/[filename.ext]
index.html
via a typical<script src="<url>"></script>
tag.I think that better search capabilities (already in preview at http://explore.plunker.co) and this mechanism for publishing versioned plunks to the catalogue will allow some really cool and efficient workflows for the next generation of online prototyping.