-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal inheriting from controller scope inherits has-tabs #1191
Comments
Hi @ewang, Could you show me where your controller is declared, and where you are calling modal from? |
Tried creating a codepen, but wasn't sure how to combine the multiple files from the starter-tabs app. But going off from the starter-tabs template, there's a ModalCtrl defined in controllers.js and set in The modal itself is being called from That said, I'm looking at the docs for ion-content and the has-tabs/has-header options seems to have been removed. |
ion-content now automatically adds has-header and has-tabs classes depending on what is around it. Where is your DetailCtrl declared? Is it the same scope as the ion-content? Or is it above the ion-content? |
Both the MasterCtrl and DetailCtrl are not explicitly declared in the html. They're declared via the stateProvider/router, so I'm not sure how the router handles it. Only ModalCtrl is explicitly declared using ng-controller in modal.html.
|
OK, makes sense now. Fixing. |
Opened related issue #1227 |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
The has-tabs issue from #924 still present in latest nightly build (1768).
Modal is being called with following code:
Removing
scope: $scope
resolves the problem, but then it wouldn't be inheriting from the calling controller's scope.The text was updated successfully, but these errors were encountered: