Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-include/ng-switch doesn't work with isolated scope in Angular 1.2 snapshot #4753

Closed
rvenugopal opened this issue Nov 1, 2013 · 1 comment

Comments

@rvenugopal
Copy link

Hi

ng-switch/ng-include does not appear to work with isolated scope in the latest Angular snapshot. This appears to be a breaking change with 1.2

Please see the plunker http://plnkr.co/edit/5phNw5?p=preview
In script.js, if you change the scope of the "masterform" directive to isolated scope, you will see that it no works.

I looked at the following for background on how to fix for 1.2 but I am unable to get it to work with isolated scope. #3584 (comment)

This same scenario worked in 1.15 and prior as I used it to create re-usable widgets like below http://plnkr.co/edit/dNnKmm?p=preview

Thanks
-Rao

@IgorMinar
Copy link
Contributor

this works as expected. the directive's template shouldn't have direct access to the outer controller.

please see: 909cabd

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants