如何获得警报,使用角度确认框2
答
您可以使用angular2包
NPM的安装NG2模态--save
`<button (click)="myModal.open()">Show popup</button>
<modal #myModal>
<modal-header>
<h1>Your header goes here</h1>
</modal-header>
<modal-content>
Body goes here
</modal-content>
<modal-footer>
<button class="btn btn-primary (click)="myModal.close()">Cancel</button>
</modal-footer>
</modal>`
看一看:https://github.com/valor-software/ng2-bootstrap – pixelbits
我们可以让它不使用引导 – thecrusader
有没有办法让一个$ window.alert? – Steve