ng-components-queue

1.0.3 • Public • Published

ng-components-queue

AngularJS components-queue with promise-support. Great for building stacked modal dialogs.

npm version dependencies

This component allows you to stack components inside of a queue. Every component gets passed a promise which, whenever its resolved / rejected, will remove the component from the queue. If the parent scope is destroyed, the child-components can be removed from the queue automatically. This is great when building complex applications with stacked modal dialogs.


Install (npm)

npm i ng-components-queue

Include module.js

<script src='./node_modules/ng-components-queue/module.js'></script>

Include ng-compile-component (dependency)

<script src='./node_modules/ng-compile-component/src/ng-compile-component.js'></script>

Include ng-components-queue.js and ng-components-host

<script src='./node_modules/ng-components-queue/src/ng-components-queue.js'></script>
<script src='./node_modules/ng-components-queue/src/ng-components-host.js'></script>

Add the dependency

angular.module('app', ['rckd.utils']);

Now you are ready to rumble!


Usage

Check this fiddle for a simple dialog-example.

Package Sidebar

Install

npm i ng-components-queue

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • rckd