{"action":"created","issue":{"url":"https://api.github.com/repos/m-e-conroy/angular-dialog-service/issues/85","labels_url":"https://api.github.com/repos/m-e-conroy/angular-dialog-service/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/m-e-conroy/angular-dialog-service/issues/85/comments","events_url":"https://api.github.com/repos/m-e-conroy/angular-dialog-service/issues/85/events","html_url":"https://github.com/m-e-conroy/angular-dialog-service/issues/85","id":51214433,"number":85,"title":"Allow the ControllerAs syntax","user":{"login":"samudurand","id":6638416,"avatar_url":"https://avatars.githubusercontent.com/u/6638416?v=3","gravatar_id":"","url":"https://api.github.com/users/samudurand","html_url":"https://github.com/samudurand","followers_url":"https://api.github.com/users/samudurand/followers","following_url":"https://api.github.com/users/samudurand/following{/other_user}","gists_url":"https://api.github.com/users/samudurand/gists{/gist_id}","starred_url":"https://api.github.com/users/samudurand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samudurand/subscriptions","organizations_url":"https://api.github.com/users/samudurand/orgs","repos_url":"https://api.github.com/users/samudurand/repos","events_url":"https://api.github.com/users/samudurand/events{/privacy}","received_events_url":"https://api.github.com/users/samudurand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/m-e-conroy/angular-dialog-service/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"m-e-conroy","id":5355587,"avatar_url":"https://avatars.githubusercontent.com/u/5355587?v=3","gravatar_id":"","url":"https://api.github.com/users/m-e-conroy","html_url":"https://github.com/m-e-conroy","followers_url":"https://api.github.com/users/m-e-conroy/followers","following_url":"https://api.github.com/users/m-e-conroy/following{/other_user}","gists_url":"https://api.github.com/users/m-e-conroy/gists{/gist_id}","starred_url":"https://api.github.com/users/m-e-conroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-e-conroy/subscriptions","organizations_url":"https://api.github.com/users/m-e-conroy/orgs","repos_url":"https://api.github.com/users/m-e-conroy/repos","events_url":"https://api.github.com/users/m-e-conroy/events{/privacy}","received_events_url":"https://api.github.com/users/m-e-conroy/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2014-12-07T10:56:27Z","updated_at":"2015-12-10T16:44:08Z","closed_at":"2015-12-10T16:44:08Z","body":"It would be really nice if it was possible to add a parameter allowing to set the 'ControllerAs' attribute of the modal. For a classic modal I would do something like : \r\n\r\n    function openListCreationForm() {\r\n       var modalInstance = $modal.open({\r\n       templateUrl: 'app/home/listCreationForm.tpl.html',\r\n       controller: 'ListCreationModalController',\r\n       controllerAs: 'lcf'\r\n     });\r\n\r\n     modalInstance.result.then(function () {\r\n     }, function () {});\r\n     }\r\n\r\nfor this project you could modify slightly your syntax with a parameter 'lcf' like this : \r\n\r\n  var dlgs = dialogs.create('app/home/listCreationForm.tpl.html', 'ListCreationModalController','lcf', {}, 'lg');"},"comment":{"url":"https://api.github.com/repos/m-e-conroy/angular-dialog-service/issues/comments/163683122","html_url":"https://github.com/m-e-conroy/angular-dialog-service/issues/85#issuecomment-163683122","issue_url":"https://api.github.com/repos/m-e-conroy/angular-dialog-service/issues/85","id":163683122,"user":{"login":"niemyjski","id":1020579,"avatar_url":"https://avatars.githubusercontent.com/u/1020579?v=3","gravatar_id":"","url":"https://api.github.com/users/niemyjski","html_url":"https://github.com/niemyjski","followers_url":"https://api.github.com/users/niemyjski/followers","following_url":"https://api.github.com/users/niemyjski/following{/other_user}","gists_url":"https://api.github.com/users/niemyjski/gists{/gist_id}","starred_url":"https://api.github.com/users/niemyjski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niemyjski/subscriptions","organizations_url":"https://api.github.com/users/niemyjski/orgs","repos_url":"https://api.github.com/users/niemyjski/repos","events_url":"https://api.github.com/users/niemyjski/events{/privacy}","received_events_url":"https://api.github.com/users/niemyjski/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T16:44:08Z","updated_at":"2015-12-10T16:44:08Z","body":"Merged"}}