Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

symanto-research/Angular-MessageService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Angular-MessageService

Installation

###Bower The easiest way to install the MessageService is by including the bower package to your solution

bower install symanto-angular-messageservice --save

Afterwards you just need to add the module and the required bootstrap-notify module to your HTML file. If you use bower you do not need to download it seperately, bower does that for you.

<script src="bower_components/remarkable-bootstrap-notify/dist/bootstrap-notify.min.js"></script>
<script src="bower_components/symanto-angular-messageservice/MessageService.js"></script>

Usage

To display a message to the user with the message service just inject it and call one of the following methods:

angular.module("Test").controller("TestController", function (MessageService) {
  // success
  MessageService.success("Wohoo, everything went fine! \o/");
  // warning
  MessageService.warning("Watch your steps, dude!");
  // error
  MessageService.error("WTF! Everything crashed!");
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published