@chunhui/ng-alert

npm 安装

Usage no npm install needed!

<script type="module">
  import chunhuiNgAlert from 'https://cdn.skypack.dev/@chunhui/ng-alert';
</script>

README

UTILS

安装

npm 安装

$ npm install @chunhui/alert

yarn 安装

$ yarn add @chunhui/alert

使用

private alert: AlertService

this.alert.create({
  title: 'Title',
  message: 'This is message'
  buttons: [
    {
      text: 'Submit'
      handler: () => console.log('on submit')
    },
    {
      text: 'Cancel'
    }
  ]
})