Sweetalert: ¿cómo usarlo en la aplicación angular 2?

Creado en 10 ene. 2017  ·  4Comentarios  ·  Fuente: t4t5/sweetalert

¿cómo usarlo en la aplicación angular 2?

$ npm i -D sweetalert

import {  sweetalert } from './sweetalert';

# ??? import 

Comentario más útil

Lo estoy usando como tal:

import swal from 'sweetalert';

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

Todos 4 comentarios

Usé la etiqueta Script normalmente y luego uso swal () en los archivos ts.

Lo estoy usando como tal:

import swal from 'sweetalert';

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

¡muchas gracias!

+1

¿Fue útil esta página
0 / 5 - 0 calificaciones

Temas relacionados

adiwithadidas picture adiwithadidas  ·  4Comentarios

fracz picture fracz  ·  4Comentarios

vmitchell85 picture vmitchell85  ·  6Comentarios

jamieson99 picture jamieson99  ·  3Comentarios

rapeflower picture rapeflower  ·  4Comentarios