I have a simple filter that puts one of two statements, based on if a input from SQL is true
app.filter('yesNo', function() {
return function(input) {
return (input == '1') ? 'Skal tjekkes!' : 'Alt OK';
}
});
And then should change a menu item based on that;
<li role="presentation"><a href="#" data-ng-click="statusFilter = 'Ny ordre'">New Orders
<div ng-if="input == '1' | outdated">
<p>Needs to be checked: {{(orders | filter:{status:'ny ordre', outdated: '1'}).length}}</p>
</div>
<div ng-if="!input == '1' | outdated">Shows regardless</div>
</a></li>
I am missing something, just no idea what. :(
'too much inng-if="!input == '1'' | outdated"!outside the quotation marks? That's not even valid SGML. My suggestion was to useinput != '1'.