{"action":"closed","issue":{"url":"https://api.github.com/repos/joshterrill/ng2-cli-sweetalert2/issues/11","repository_url":"https://api.github.com/repos/joshterrill/ng2-cli-sweetalert2","labels_url":"https://api.github.com/repos/joshterrill/ng2-cli-sweetalert2/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/joshterrill/ng2-cli-sweetalert2/issues/11/comments","events_url":"https://api.github.com/repos/joshterrill/ng2-cli-sweetalert2/issues/11/events","html_url":"https://github.com/joshterrill/ng2-cli-sweetalert2/issues/11","id":252982655,"number":11,"title":"There could be any explanation about how to use it?","user":{"login":"davidrock","id":19226926,"avatar_url":"https://avatars2.githubusercontent.com/u/19226926?v=4","gravatar_id":"","url":"https://api.github.com/users/davidrock","html_url":"https://github.com/davidrock","followers_url":"https://api.github.com/users/davidrock/followers","following_url":"https://api.github.com/users/davidrock/following{/other_user}","gists_url":"https://api.github.com/users/davidrock/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrock/subscriptions","organizations_url":"https://api.github.com/users/davidrock/orgs","repos_url":"https://api.github.com/users/davidrock/repos","events_url":"https://api.github.com/users/davidrock/events{/privacy}","received_events_url":"https://api.github.com/users/davidrock/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-25T18:25:27Z","updated_at":"2017-08-25T20:58:46Z","closed_at":"2017-08-25T20:58:46Z","body":"Please add some instructions about how to use it.\r\nI tried here but I am getting this error:\r\n\r\n`win.Sweetalert2 is not a function`\r\n\r\nMy code is something like this:\r\n```\r\nconstructor(private _swal: SweetAlertService){\r\n}\r\n```\r\n\r\n```\r\nngOnInit() {\r\nthis._swal.alert({\r\n      title: 'Are you sure?',\r\n      text: \"You won't be able to revert this!\",\r\n      type: 'warning',\r\n      showCancelButton: true,\r\n      confirmButtonColor: '#3085d6',\r\n      cancelButtonColor: '#d33',\r\n      confirmButtonText: 'Yes, delete it!',\r\n      cancelButtonText: 'No, cancel!',\r\n      confirmButtonClass: 'btn btn-success',\r\n      cancelButtonClass: 'btn btn-danger',\r\n      buttonsStyling: false\r\n    });\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"joshterrill"}}