This is simple angular service for handling success and error toast messages
toasterService.success('Data loaded!');
toasterService.error('Error while loading data!');
bower install mdtoast-service
npm install mdtoast-service
include following css and js files into you html file
<link rel='stylesheet' href="/bower_components/mdtoast-service/dist/mdtoast-service.min.css">
<script type="text/javascript" src="/bower_components/mdtoast-service/dist/mdtoast-service.min.js"></script>