filtered date in ng-class

8 views
Skip to first unread message

Szabo Zsolt

unread,
Sep 3, 2017, 3:50:47 PM9/3/17
to Angular and AngularJS discussion
Hi!

I have a problem, i want hide filtered date in ng-class, but there an error:

<span class="date-equal-list" ng-class="{disabled: lis.REND_DATUM_KEZD | date : 'MMM' == lis.REND_DATUM_VEGE | date : 'MMM'}">

and in css:
.date-equal-list{
  opacity:1;
}
.date-equal-list.disabled {
  opacity: 0;
}

Error: [$parse:syntax] Syntax Error: Token '|' is unexpected, expecting [}] at column 32 of the expression [{disabled: lis.REND_DATUM_KEZD | date : 'MMM' == lis.REND_DATUM_VEGE | date : 'MMM'}] starting at [| date : 'MMM' == lis.REND_DATUM_VEGE | date : 'MMM'}].

What is the problem?
Thanks!
Reply all
Reply to author
Forward
0 new messages