hung-doan / .bookmarks

My life bookmarker
0 stars 0 forks source link

ng-transclude prevent to access parent $scope #2

Open hung-doan opened 8 years ago

hung-doan commented 8 years ago

Type: Impediment Descriptions: ng-transclude prevent to access parent $scope Preproduction:

<div> <-- $scopeA
    <ng-transclude>  </ng-transclude><-- $scopeB
<div>

Structure of $scopeA = {hello: 'world'}

Normally when we call "$scopeB.hello", It will travels up to parent $scope to find hello property. The result if $scopeB.hello is exactly equal to $scopeA.hello

Reason: N/A Solutions: N/A

Ref: [0] []()