{"action":"created","issue":{"url":"https://api.github.com/repos/tameraydin/ngToast/issues/41","labels_url":"https://api.github.com/repos/tameraydin/ngToast/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/tameraydin/ngToast/issues/41/comments","events_url":"https://api.github.com/repos/tameraydin/ngToast/issues/41/events","html_url":"https://github.com/tameraydin/ngToast/issues/41","id":70173595,"number":41,"title":"Controller/ControllerAs/TemplateUrl options","user":{"login":"zooofeex","id":11614504,"avatar_url":"https://avatars.githubusercontent.com/u/11614504?v=3","gravatar_id":"","url":"https://api.github.com/users/zooofeex","html_url":"https://github.com/zooofeex","followers_url":"https://api.github.com/users/zooofeex/followers","following_url":"https://api.github.com/users/zooofeex/following{/other_user}","gists_url":"https://api.github.com/users/zooofeex/gists{/gist_id}","starred_url":"https://api.github.com/users/zooofeex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooofeex/subscriptions","organizations_url":"https://api.github.com/users/zooofeex/orgs","repos_url":"https://api.github.com/users/zooofeex/repos","events_url":"https://api.github.com/users/zooofeex/events{/privacy}","received_events_url":"https://api.github.com/users/zooofeex/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-22T16:26:09Z","updated_at":"2015-04-23T08:31:26Z","closed_at":"2015-04-23T08:31:26Z","body":"Hi, \r\nit would be great to have an option for associating a controller with a toast.\r\n\r\n```js\r\n//for example\r\nvar aToast = ngToast.create({\r\n  className: 'warning',\r\n  content: 'Another message as <a href=\"#\" class=\"\">HTML</a>',\r\n  controller: 'StringOrFunction',\r\n  controllerAs: 'ctrl'\r\n});\r\n```\r\n\r\nAlso an option for setting `templateUrl` would be nice, for auto loading and compiling the content.\r\n\r\nDo you plan to implement this?"},"comment":{"url":"https://api.github.com/repos/tameraydin/ngToast/issues/comments/95489396","html_url":"https://github.com/tameraydin/ngToast/issues/41#issuecomment-95489396","issue_url":"https://api.github.com/repos/tameraydin/ngToast/issues/41","id":95489396,"user":{"login":"tameraydin","id":687109,"avatar_url":"https://avatars.githubusercontent.com/u/687109?v=3","gravatar_id":"","url":"https://api.github.com/users/tameraydin","html_url":"https://github.com/tameraydin","followers_url":"https://api.github.com/users/tameraydin/followers","following_url":"https://api.github.com/users/tameraydin/following{/other_user}","gists_url":"https://api.github.com/users/tameraydin/gists{/gist_id}","starred_url":"https://api.github.com/users/tameraydin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tameraydin/subscriptions","organizations_url":"https://api.github.com/users/tameraydin/orgs","repos_url":"https://api.github.com/users/tameraydin/repos","events_url":"https://api.github.com/users/tameraydin/events{/privacy}","received_events_url":"https://api.github.com/users/tameraydin/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T08:31:26Z","updated_at":"2015-04-23T08:31:26Z","body":"Hi, picking up controller by name is bit tricky imho and not sure if it is a right approach, so no any plans to implement such a feature. but any PRs with tests are welcome of course."}}