Being a newbie in this area, I took over a project using AngularJS (next to 
Ionic and Cordova). Since now and then I am facing a lot of issues. The 
current one puzzling me is the following: When ever a user receives a hint 
of having missed something as a popup (i.e. "Please use 2 players") when 
saving, the app freezes. Here is the code:


$scope.save = function () {

if ($scope.round.offensive.length < 2 && $scope.round.type.key === 'P') {
  $scope.$emit('toast', 'Please use 2 players');
  return;

}


Note: The user sees the popup "Please use 2 players", but then nothing can be 
clicked anymore.


However per my understanding a "counterpart" of the controller is needed, which 
should be $scope.$emit, which I cannot find. This also drives me nuts, but just 
by the way...


This is the "AngularJS related configuration":


ionic#1.2.4 app/lib/ionic

├── angular#1.4.3

├── angular-animate#1.4.3

├── angular-sanitize#1.4.3

└── angular-ui-router#0.2.13


 Any idea how to solve this?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to