Skip to main content

Description

Twigkit service for registering and un-registering modals

Methods

close(name)

Hides the modal in the view.
Parameters

Example

onClose(name, callback, scope)

When the modal’s close event is fired the callback function will be called.
Parameters

Example

register(modal)

Registers the modal to the factory
Parameters

Example

show(name)

Shows the modal in the view.
Parameters

Example

unregister(name)

Un-registers the modal removing it from the view and the factory.
Parameters

Example