angular-sweetalert icon indicating copy to clipboard operation
angular-sweetalert copied to clipboard

Wrong module name in documentation

Open ColdFire87 opened this issue 8 years ago • 4 comments

Hi,

In the documentation, when requiring the module it says to use 'ngSweetAlert2' however the module name is actually 'angular-sweetalert'. This is for version 2.0.

ColdFire87 avatar Feb 02 '17 12:02 ColdFire87

^^, ngSweetAlert2 is not a string, but variable from import phase(no quotes around it).

2017-02-02 9 23 28

See:

//ES2015
import {ngSweetAlert2} from 'angular-h-sweetalert';

//CommonJS
const {ngSweetAlert2} = require('angular-h-sweetalert');

//Script
var ngSweetAlert2 = window.ngSweetAlert2;

So,

ngSweetAlert2 === 'angular-sweetalert'

leftstick avatar Feb 02 '17 13:02 leftstick

My bad :)

ColdFire87 avatar Feb 02 '17 14:02 ColdFire87

This should be left open so other (like me) can find it

acedward avatar Mar 24 '17 19:03 acedward

Like @acedward said, keep this issue open

leftstick avatar Apr 21 '17 02:04 leftstick