angular-alert-messenger is an angular module to handle bootstrap alerts working with angulars $emit.
You can see an example integration of this module on https://fpv83.github.io/angular-alert-messenger.
The module containes a controller and a directive. To use it, you only have to declare it as a dependency of your own module. After this you can use it wherever you want.