Sweetalert: 如何在 angular 2 应用程序中使用它?

创建于 2017-01-10  ·  4评论  ·  资料来源: t4t5/sweetalert

如何在 angular 2 应用程序中使用它?

$ npm i -D sweetalert

import {  sweetalert } from './sweetalert';

# ??? import 

最有用的评论

我正在使用它:

import swal from 'sweetalert';

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

所有4条评论

我通常使用 Script 标签,然后在 ts 文件中使用 swal() 。

我正在使用它:

import swal from 'sweetalert';

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

多谢!

+1

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

rapeflower picture rapeflower  ·  4评论

girishbr picture girishbr  ·  5评论

Untit1ed picture Untit1ed  ·  5评论

voodoo6 picture voodoo6  ·  4评论

VoxelNaut picture VoxelNaut  ·  6评论