CaryLandholt / ng-classify

Convert CoffeeScript classes to AngularJS modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problemas com a criação de filtros.

dflourusso opened this issue · comments

Olha como "constructor" é incorreto.

class StrSplit extends Filter
  constructor: ->
    return (str, splitChar, splitIndex) ->
      return '' unless str
      str.split(splitChar)[splitIndex]

:)