change suggestion for new Multi-slot transclusion feature #13439
Description
Hi,
I want to suggest that the structure of the transclude object value shown in the example for https://docs.angularjs.org/api/ng/directive/ngTransclude (v1.5.0-build.4414 (snapshot)) would be the other way around.
i.e. instead of
transclude: {
'paneTitle': '?title',
'paneBody': 'body'
},
it should be (IMHO)
transclude: {
'title': '?paneTitle'
'body': 'paneBody'
},
This would be more consistant with similar maps such as those used in isolated scope and bindToController in the sense that the property name should be the internal element to which the binding happens (the value of the ng-transclude attribute in the template in our case) and the value should say how to resolve it from the "outside".
see also http://stackoverflow.com/questions/22079587/angularjs-transcluding-multiple-sub-elements-in-a-single-angular-directive/34063645#34063645 where I actually suggested that such a feature would be helpful.