calliope icon indicating copy to clipboard operation
calliope copied to clipboard

Angular expression in attribute doesn't parse nicely

Open zonecheung opened this issue 9 years ago • 1 comments

We found a problem when parsing the following tag with angular expression in the attribute:

%li(ng-repeat="pager in paging.pagers" ng-class=" paging.pagination.current_page === pager ? 'active' : '' ")

Somehow, it's generated as:

<li class="paging.pagination.current_page === pager ? ng-scope" ng-repeat="pager in paging.pagers" ng-active'="" "=""></li>

While the expected behavior is this:

<li ng-repeat="pager in paging.pagers" ng-class=" paging.pagination.current_page === pager ? 'active' : '' " class="ng-scope"></li>

Would really appreciate if it can be fixed. Thank you. :)

zonecheung avatar Aug 07 '15 06:08 zonecheung

I'll take a look this weekend and get back to you.

nurugger07 avatar Aug 08 '15 03:08 nurugger07