{"action":"created","issue":{"url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/75","labels_url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/75/comments","events_url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/75/events","html_url":"https://github.com/dwmkerr/angular-modal-service/issues/75","id":82396907,"number":75,"title":"modal appears, then disappears","user":{"login":"jmls","id":929523,"avatar_url":"https://avatars.githubusercontent.com/u/929523?v=3","gravatar_id":"","url":"https://api.github.com/users/jmls","html_url":"https://github.com/jmls","followers_url":"https://api.github.com/users/jmls/followers","following_url":"https://api.github.com/users/jmls/following{/other_user}","gists_url":"https://api.github.com/users/jmls/gists{/gist_id}","starred_url":"https://api.github.com/users/jmls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmls/subscriptions","organizations_url":"https://api.github.com/users/jmls/orgs","repos_url":"https://api.github.com/users/jmls/repos","events_url":"https://api.github.com/users/jmls/events{/privacy}","received_events_url":"https://api.github.com/users/jmls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-29T11:53:13Z","updated_at":"2016-01-01T01:50:10Z","closed_at":null,"body":"so, I've managed to get a custom modal to popup over the screen. It stays there for a second or two, then vanishes. If I click again, it appears, then disappears. \r\n\r\nWhat am I doing wrong ?\r\n\r\nmy html is the same as the custom form example\r\n```html\r\n<style type=\"text/css\">\r\n#overlay {\r\n    position: fixed;\r\n    left: 25%;\r\n    top: 25%;\r\n    padding: 25px; \r\n    border: 2px solid black;\r\n    background-color: #ffffff;\r\n    width: 50%;\r\n    height: 50%;\r\n    z-index: 100;\r\n}\r\n#fade {\r\n    position: fixed;\r\n    left: 0%;\r\n    top: 0%;\r\n    background-color: black;\r\n    -moz-opacity: 0.7;\r\n    opacity: .70;\r\n    filter: alpha(opacity=70);\r\n    width: 100%;\r\n    height: 100%;\r\n    z-index: 90;\r\n}\r\n</style>\r\n<div id=\"overlay\" ng-show=\"display\">\r\n    This is a custom modal. The angular-modal-service doesn't depend on bootstrap, you\r\n    can use any modal you want.\r\n    <a href ng-click=\"close()\">Close</a>\r\n</div>\r\n<div id=\"fade\" ng-show=\"display\"></div>\r\n```\r\n\r\nmy controller is this\r\n\r\n```javascript\r\n\r\nangular.module('myApp')\r\n    .controller('myController', myController)\r\n\r\nmyController.$inject = ['close']\r\n\r\nfunction myController(close) {\r\n    var controller = this;\r\n    controller.display = true;\r\n    controller.close = function() {\r\n        controller.display = false;\r\n \t    close();\r\n    };\r\n}\r\n```\r\n\r\nand the code calling this is\r\n\r\n```javascript\r\ncontroller.showModal = function() {\r\n            ModalService.showModal({\r\n              templateUrl: \"/myCustomForm.html\",\r\n              controller: 'myController'\r\n            }).then(function(modal) {\r\n              modal.close.then(function(result) {\r\n              });\r\n            });\r\n            \r\n        }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/comments/168273831","html_url":"https://github.com/dwmkerr/angular-modal-service/issues/75#issuecomment-168273831","issue_url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/75","id":168273831,"user":{"login":"ionescuvictor","id":11270764,"avatar_url":"https://avatars.githubusercontent.com/u/11270764?v=3","gravatar_id":"","url":"https://api.github.com/users/ionescuvictor","html_url":"https://github.com/ionescuvictor","followers_url":"https://api.github.com/users/ionescuvictor/followers","following_url":"https://api.github.com/users/ionescuvictor/following{/other_user}","gists_url":"https://api.github.com/users/ionescuvictor/gists{/gist_id}","starred_url":"https://api.github.com/users/ionescuvictor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ionescuvictor/subscriptions","organizations_url":"https://api.github.com/users/ionescuvictor/orgs","repos_url":"https://api.github.com/users/ionescuvictor/repos","events_url":"https://api.github.com/users/ionescuvictor/events{/privacy}","received_events_url":"https://api.github.com/users/ionescuvictor/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T01:50:10Z","updated_at":"2016-01-01T01:50:10Z","body":"you probably have bootstrap script included twice."}}