Equivalent of the angular directive

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Equivalent of the angular directive

SirKometa
Hello!

I'd like to ask you guys whether it is possible to add some logic to fragments? What I would like to achieve is a header I could inject in a page which would handle it's own logic somehow. Basically something like a directive in angular. I've briefly read the documentation but I haven't found a way to it.

I can probably think of a tacky way to do it but I'd rather avoid it and at the same time I'd like to avoid directly executing logic of the fragment in the each controller using view with that fragment.
Loading...