Is it possible to turn this
[{
compType: "special-label",
style: {
left: 10,
top: 10
},
{
compType: "special-image",
style: {
left: 10,
top: 10
}
]
into this:
<special-label element="element"><special-label>
We tried using two directives:
- special-element as a wrapper directive
special-label / special image as a specific directive
<div class="element" ng-repeat="element in elements"> <wix-element element="element" compType="{{element.compType}}" test="5"> </wix-element> </div>
However when we try to access the compType in the template method of the special element it is yet to be parsed.
Any ideas what should we do to make it work?