Why is the $scope not visible inside a popover??? I cannot use functions local to the $scope nor simple curly brace variables {{variable_in_the_$scope}} … nor ng-model=“some_variable_in_$scope”
Here is a self explanatory example based on the demo from the IONIC blog post about popovers. ( http://codepen.io/anon/pen/DhlfK )
Can’t seem to do it with the same controler / scope to have access to functions and variables in the scope that called the popover. Kinda obvious that the buttons and labels refered in the popover would be in direct relation to the current scope of the screen actually shown to the user when the popover popped !
Can you edit the codepen to do something like that ? ( the function and variable you copied in the other controller have the same name but don’ share values with the original scope)
thanks for trying/ answering anyways!
Edit: i tried assigning the same controller “appCtrl” to the popover… and it crashes codepen…