My $scope Is Not Your Dumping Ground
This little problem came up in my recent AngularJS/Ionic app. It all started with an innocent modal dialog. There are several, but for the sake of simplicity, let’s look at the login dialog: The generic dialog plumbing is a div with a surrounding overlay that dims out the rest of the screen. You can click the X in the top right to dismiss it. Or if you fill out the fields the Log In link becomes enabled. When you click…