this one gonna be the hard one, or at last for me.
I require a directive which provides, scope (i can use shared scope, though
i do not prefer it), and controller, template, along side sitting beside
exists data...
for example:
<div my-custom-reusable-attr my-data="ScopedData">
<table>
<tr>
<td>
{{VALUE AND FUNCTIONS FROM MAIN / ROUTE BASED CONTROLLER}}
</td>
.
.
.
</tr>
.
.
.
</table>
</div>
,
and the template for my-custom-reusable-attr is like:
<div>
{{DIRECTIVE SCOPED VALUES}}
<div>
now when i call this directive, it should attach it's event's to the
current div, also generate template inside the div,...
It's also preferable to place template outside the content, for example a
div is not suitable inside a table, so if i want to attach it directly to
the table, i need to place the template inside parent div.
.....
In the end what i wanted to do, was to provide this in angular manner:
http://jsfiddle.net/yaprak/3mcA6/
I have a object which contains
{
Name,
ImageUrl,
Callback
}
i make an array of this item, then somehow, i want to pass it to the
directive using custom attribute or ngModel, or better if possible using
scope, and $watch over it.
once it get set, let the angular handle the rendering based on template,
and place it beside my content, without ruin my scope data, or remove my
Htmls.
any suggestions?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.