Wednesday, 28 August 2013

Weird circular dependency when pluralizing in angularjs

Weird circular dependency when pluralizing in angularjs

Here's my code:
<div class="span3 meta-data-2 list-hide" ng-pluralize
count="album.track_count"
when="{'0': 'No songs.',
'one': '1 song',
'other': '{} songs'}"></div>
But that gives a weird error: Error: Circular dependency:
Not sure why or what to do about it. If I remove the pluralizing, then all
is right in the world.

No comments:

Post a Comment