I am trying to use alertify
in a angular 4
application but I can't seem to git it to work.
So I started by adding alertify
to my component by adding the css
styleUrls: [
'./myComponent.component.scss',
'../../../node_modules/alertifyjs/build/css/alertify.css'
]
Now I import the library:
import * as alertify from 'alertifyjs';
Later inside a function that is triggered by a button click I put
alertify.prompt('Prompt Message');
The popup
is showing as a block element right below my entire component instead of being a popup
.
I am not sure what I am doing wrong?