The below code is in TypeScript Alerts & Notifications On The Notify Modal Functionality considered a creation of a service for the alerts @ http://cube.adbee.technology/notifications.html 1: export class Notifications 2: { 3: static layout = { growl : 'growl', attached : 'attached', bar: 'bar', other : 'other' }; 4: static effects = { 5: scale : 'scale', jelly : 'jelly', slide : 'slide', genie : 'genie', flip : 'flip', bouncyflip : 'bouncyflip', 6: slidetop : 'slidetop', exploader : 'exploader', 7: cornerexpand : 'cornerexpand', loadingcircle : 'loadingcircle', boxspinner : 'boxspinner' 8: }; 9: static types = { 10: notice : 'notice', 11: warning : 'warning', 12: error : 'error', 13: success : 'success' 14: }; 15: 16: } Then the Service Simply 1: modu ...