1.0.3 • Published 7 years ago

ng-components-queue v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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.