Show boxing in Typescript / Angular2?

I want to use Bootbox in my Angular2 project. I searched a lot, but for me there is no suitable solution.
I also tried angular2-modal, but angular2-modalthere were a lot of problems when using , please offer any good documents / examples / demos for this.

+4
source share
1 answer

Step 1: Install the boot box throughnpm install bootbox --save

Step 2: If you are using systemjs, enable bootbox, for example:

<script src="node_modules/bootbox/bootbox.js"></script>

3: declare var bootbox:any; libreries - ts , , bootbox.alert("Hello world!");, .

, bootstrap jquery . jquery .

[]

3 declare var bootbox:any; :

npm install @types/jquery --save
npm install @types/bootbox --save
+4

Source: https://habr.com/ru/post/1670716/


All Articles