BoundBlockFactory class
BoundBlockFactory is a BlockFactory which does not need Injector because
it is pre-bound to an injector from the parent. This means that this
BoundBlockFactory can only be used from within a specific Directive such
as NgRepeat
, but it can not be stored in a cache.
The BoundBlockFactory needs Scope to be created.
class BoundBlockFactory { BlockFactory blockFactory; Injector injector; BoundBlockFactory(BlockFactory this.blockFactory, Injector this.injector); Block call(Scope scope) { return blockFactory(injector.createChild([new Module()..value(Scope, scope)])); } }
Constructors
new BoundBlockFactory(BlockFactory blockFactory, Injector injector) #
Properties
BlockFactory blockFactory #
BlockFactory blockFactory