{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/12742","labels_url":"https://api.github.com/repos/angular/angular.js/issues/12742/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/12742/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/12742/events","html_url":"https://github.com/angular/angular.js/pull/12742","id":104589239,"number":12742,"title":"WIP - DO NOT MERGE - feat($compile): multiple transclusion via slots","user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20$compile","name":"component: $compile","color":"e102d8"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20feature","name":"type: feature","color":"00a606"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/90","html_url":"https://github.com/angular/angular.js/milestones/1.5.x%20-%20migration-facilitation","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/90/labels","id":1025270,"number":90,"title":"1.5.x - migration-facilitation","description":"","creator":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":9,"state":"open","created_at":"2015-03-17T12:15:49Z","updated_at":"2015-09-02T23:08:09Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-09-02T23:07:02Z","updated_at":"2015-09-03T21:01:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular/angular.js/pulls/12742","html_url":"https://github.com/angular/angular.js/pull/12742","diff_url":"https://github.com/angular/angular.js/pull/12742.diff","patch_url":"https://github.com/angular/angular.js/pull/12742.patch"},"body":"This is a really rough and ready spike of multiple transclusion via slots.\r\n\r\nThere are LOTS of issues, primarily around the way that transclude functions are created, wrapped and passed around often hidden inside closures with access to a variety of other variables.\r\nIt is also notable that the transclude function, that gets passed to the directive's controller and link functions, is incompatible with the transclude functions (even the bound ones) that are passed around internally, since the former allows the scope parameter to be missing.\r\nFor this to be implemented properly I fear we may need to completely refactor large parts of the way transclusion is passed around inside the compiler.\r\n\r\nAlso it doesn't currently work for `element` transclusion.\r\n\r\nThis is an alternative strategy to #11736"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/137574491","html_url":"https://github.com/angular/angular.js/pull/12742#issuecomment-137574491","issue_url":"https://api.github.com/repos/angular/angular.js/issues/12742","id":137574491,"user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T21:01:28Z","updated_at":"2015-09-03T21:01:28Z","body":"I agree. At this stage it is available on the transclude function via the convoluted:\r\n\r\n```\r\n$transclude.$$boundTransclude.$$slots[name]\r\n```\r\n\r\nSee https://github.com/angular/angular.js/pull/12742/files#diff-348c2f3781ed66a24894c2046a52c628R7114"}}