AngularDart custom filter call() method required to be idempotent?
问题 The main running example of the Angular Dart tutorial is a Recipe Book app . The exercise at the end of the Chapter 5 on filters and services suggests trying to " create a [custom] filter that will multiply all the amounts [of each ingredient listed] in the recipes " thus allowing a " user to double, triple, or quadruple the recipe ." E.g. an ingredient of "1/2 cup of flour" would become "1 cup of flour" when doubled. I have written such a custom filter: it takes a list of Ingredient s