winjs / angular-winjs

Project to smooth the AngularJS/WinJS interaction
Other
126 stars 46 forks source link

Nested scopes and Win-control directives #85

Open perkastman opened 8 years ago

perkastman commented 8 years ago

I have an issue when using the win-control directive in a nested angular-winjs directive:

 <div ng-controller="appbarController">
       <win-app-bar  win-control="outerControl">

        <win-app-bar-command section="'secondary'" win-control="innerControl">
        </win-app-bar-command>

    </win-app-bar>
</div>

If I use the markup above I will have outerControl available in the scope of appbarController, but the inner directive will have it's own scope and innerControl will not be available in the appbarController scope. Seems like there is an issue with nested controllers and scope when using the win-control directive.