angular-promise-messages

Enhanced support for displaying messages depending on some promise within template for AngularJS.
Homepage:
1 person uses it
Author: 1334026?v=3 hshn

angular-promise-messages

Build Status

The promiseMessages module provides enhanced support for displaying messages depending on some promise within templates.

Installation

install via npm

install via bower

Add promiseMessages as dependency in your module:

Usage

Basic usage (listening promise)

Function support (listening promise that is returned by function)

Use the attribute forAction when you want to specify a function that returns promise.

Theming

If the states attribute is specified, states will be published into related scope.

Then, you can theme it as you want by using published states.

Contribution

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D
comments powered by Disqus
This page was last updated about 2 years ago.