Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Injectable()
- export class AlertService implements IAlertService {
- success(title: string, textMessage: string, textbutton: string) {
- return swal({
- title: title,
- text: textMessage,
- type: 'success',
- confirmButtonText: textbutton
- })
- }
- error(title: string, textMessage: string, textbutton: string) {
- return swal({
- title: title,
- text: textMessage,
- type: 'error',
- confirmButtonText: textbutton
- })
- }
- warning(title: string, textMessage: string, textbutton: string) {
- return swal({
- title: title,
- text: textMessage,
- type: 'warning',
- confirmButtonText: textbutton
- })
- }
- info(title: string, textMessage: string, textbutton: string) {
- return swal({
- title: title,
- text: textMessage,
- type: 'info',
- confirmButtonText: textbutton
- })
- }
- question(title: string, textMessage: string, textbutton: string) {
- return swal({
- title: title,
- text: textMessage,
- type: 'question',
- confirmButtonText: textbutton
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement