McNull / angular-block-ui

AngularJS Block UI Module
MIT License
349 stars 108 forks source link

Expose fluent (but mostly just chainable) api #96

Open mikehaas763 opened 8 years ago

mikehaas763 commented 8 years ago

This is purely for sugar, and the only value is an alternative but subjectively nicer API. I'm sure I'm not covering the full story here but how about an element api like so:

var fooBlock = blockUI.forInstance('fooBlock').start(); fooBlock.stop();

Thoughts?