FilterMap class
Registry of filters at runtime.
class FilterMap extends AnnotationMap<NgFilter> { Injector _injector; FilterMap(Injector injector, MetadataExtractor extractMetadata) : super(injector, extractMetadata) { this._injector = injector; } call(String name) { var filter = new NgFilter(name:name); var filterType = this[filter]; return _injector.get(filterType); } }
Extends
AnnotationMap<NgFilter> > FilterMap
Constructors
new FilterMap(Injector injector, MetadataExtractor extractMetadata) #
Creates a new Object instance.
Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.
docs inherited from Object
FilterMap(Injector injector, MetadataExtractor extractMetadata) : super(injector, extractMetadata) { this._injector = injector; }
Operators
Type operator [](K annotation) #
inherited from AnnotationMap
Type operator[](K annotation) { var value = _map[annotation]; if (value == null) { throw 'No $annotation found!'; } return value; }
Methods
dynamic call(String name) #
call(String name) { var filter = new NgFilter(name:name); var filterType = this[filter]; return _injector.get(filterType); }
dynamic forEach(fn(K, Type)) #
inherited from AnnotationMap
forEach(fn(K, Type)) => _map.forEach(fn);