Hey guys,

i have a problem with an ng-if. So first a snippet:

<div class="infoText">Posts in den letzten 24 Stunden<br>aus
    <span ng-if="counts.profilesSelected !== 
counts.profiles">{{counts.profilesSelected}} von</span>
    <span ng-bind="counts.profiles"></span> Profilen.
</div>


Rendering of that part work fine but if i switch the filter that changes 
the values in counts so all profiles are selected (eg. resulting in 
ng-if="100 !== 100") then chrome comes up with an TypeError:

TypeError: Cannot read property 'then' of undefined
    at Object.ngIfWatchAction (http:
//127.0.0.1:9000/bower_components/angular/angular.js:23054:47)
    at Object.applyFunction [as fn] (<anonymous>:778:50)
    at Scope.$digest (http:
//127.0.0.1:9000/bower_components/angular/angular.js:13965:29)
    at Scope.$delegate.__proto__.$digest (<anonymous>:844:31)
    at Scope.$apply (http:
//127.0.0.1:9000/bower_components/angular/angular.js:14227:24)
    at Scope.$delegate.__proto__.$apply (<anonymous>:855:30)
    at HTMLTableCellElement.listener (http:
//127.0.0.1:9000/bower_components/ionic/release/js/ionic-angular.js:5076:15)
    at Object.triggerEvent [as trigger] (http:
//127.0.0.1:9000/bower_components/ionic/release/js/ionic.js:770:15)
    at Object.tapGesture [as handler] (http:
//127.0.0.1:9000/bower_components/ionic/release/js/ionic.js:1667:16)
    at Object.detect 
(http://127.0.0.1:9000/bower_components/ionic/release/js/ionic.js:1348:30) 


Does anyone know how i can fix this issue?

Cheers
Stefan

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to