Sweetalert: how to use it in angular 2 app?

Created on 10 Jan 2017  路  4Comments  路  Source: t4t5/sweetalert

how to use it in angular 2 app?

$ npm i -D sweetalert

import {  sweetalert } from './sweetalert';

# ??? import 

Most helpful comment

I'm using it as such:

import swal from 'sweetalert';

// then later in the code
swal("Here's a message!")

All 4 comments

I used Script tag normally and then I use swal() in ts files.

I'm using it as such:

import swal from 'sweetalert';

// then later in the code
swal("Here's a message!")

thanks a lot!

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vmitchell85 picture vmitchell85  路  6Comments

blackrosezy picture blackrosezy  路  6Comments

waldyrious picture waldyrious  路  5Comments

fracz picture fracz  路  4Comments

rafatux picture rafatux  路  5Comments