ng-alertify
Advanced tools
Comparing version 0.7.2 to 0.8.0
{ | ||
"name": "ng-alertify", | ||
"main": "ng-alertify.js", | ||
"version": "0.7.2", | ||
"version": "0.8.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "ignore": [ |
/** | ||
ng-alertify@0.7.2 | ||
ng-alertify@0.8.0 | ||
AngularJS wrapper around alertify popup library | ||
@@ -653,3 +653,3 @@ Gleb Bahmutov <gleb@kensho.com> | ||
description: 'AngularJS wrapper around alertify popup library', | ||
version: '0.7.2', | ||
version: '0.8.0', | ||
author: 'Gleb Bahmutov <gleb@kensho.com>' | ||
@@ -680,3 +680,3 @@ }) | ||
// make sure the newlines are formatted in the output html | ||
var messageMethods = ['log', 'error', 'success']; | ||
var messageMethods = ['log', 'error', 'success', 'alert']; | ||
@@ -683,0 +683,0 @@ // overwrite .log(), .error(), and other simple popups |
@@ -35,3 +35,3 @@ // mock AngularJS proxy to window.alertify | ||
// make sure the newlines are formatted in the output html | ||
var messageMethods = ['log', 'error', 'success']; | ||
var messageMethods = ['log', 'error', 'success', 'alert']; | ||
@@ -38,0 +38,0 @@ // overwrite .log(), .error(), and other simple popups |
{ | ||
"name": "ng-alertify", | ||
"description": "AngularJS wrapper around alertify popup library", | ||
"version": "0.7.2", | ||
"version": "0.8.0", | ||
"author": "Gleb Bahmutov <gleb@kensho.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -31,2 +31,3 @@ # ng-alertify | ||
.run(function (Alertify) { | ||
// these messages disappear after a few seconds | ||
Alertify.success('Hello world!'); | ||
@@ -36,2 +37,5 @@ Alertify.log('Neutral message'); | ||
'multiple params, including errors', new Error('are ok')); | ||
// these modals require user to close them | ||
Alertify.alert('Hi there'); | ||
// displays "Something went wrong multiple params, including errors are ok" | ||
@@ -38,0 +42,0 @@ Alertify.confirm('Are you sure?').then( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
266487
89