How can I make the $scope of a component accessable within transclusion area of that component? here an example:
<test>
{{myVar}}
</test>
.component('test', {
transclude:true,
template:'<ng-transclude></ng-transclude>',
controller:function($scope){
this.$onInit = function() {
$scope.myVar = 1123
}
}
})
See Question&Answers more detail:os