This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
ng-repeat preventing parent scope from being injected in custom component. #1034
Closed
Description
I've created a component, VarxaButton
, designed to be optionally nested within a directive, VarxaButtonGroup
. The VarxaButton
constructor takes a VarxaButtonGroup
, which is injected as expected in the following scenario:
<div mode="radio" varxa-button-group>
<varxa-button>Tab One</varxa-button>
<varxa-button>Tab Two</varxa-button>
<varxa-button checked="true">Tab Three</varxa-button>
</div>
However, when using ng-repeat
, VarxaButtonGroup
is always null when injected:
<div mode="radio" varxa-button-group>
<varxa-button ng-repeat="name in ['Tab One', 'Tab Two', 'Tab Three']">{{name}}</varxa-button>
</div>
I would expect the VarxaButtonGroup
instance to be injected even when used in conjunction with ng-repeat
.
A repro can be found here: https://github.com/bgourlie/varxa-button. Just run demo.html
.
Metadata
Metadata
Assignees
Labels
No labels