This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Tabset breaks require ^ #524
Comments
+1 |
Found it after some tinkering. The child doesn't have a parent() so it doesn't know how to fetch the controller by looking up parent elements. This is because when we append the tab content in https://github.com/angular-ui/bootstrap/blob/master/src/tabs/tabs.js#L291, we don't $compile it again so it never gets 'connected'. It can be fixed by just $compiling the tab content element after it gets appended. Check line 292 of tabs.js here: http://plnkr.co/edit/8rRQqVvo8jrDjn5MoQxe?p=preview I'll push it with a test later. |
Didn't want to double-post the info, but I added some information in #574 after it was closed as to why it seems like the |
ajoslin
added a commit
that referenced
this issue
Jun 28, 2013
* Make tab contents be compiled into outer scope after being appended to tab-pane elements.
Fixed in be7ecff :-) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If I have this:
Then
child
can't accessparent
controller.Here is a simple demo: http://plnkr.co/edit/ts0TsLu1xdRQxFGc9B8e?p=preview
Any idea on why this might be happening?
The text was updated successfully, but these errors were encountered: