I just want to check, whether the below mentioned situation is possible or not. Suppose, I have created a directive say "dummyDir", having restrict attribute as "EA" and link function just copying data from scope datasource to a variable, also, templateUrl being set to a url say "template.html". Now, from a controller say "callController", which is having a method say "callDirective", which is creating an element of type "dummy-dir" and appending this element to the body element. Now in the page, when this "callDirective" method is invoked/called, this "dummy-dir" element is present in the page, but the referencing templateUrl "template.html", is not present in the page.
So, whether I am doing some thing wrong because of which this template is not getting rendered or this is not possible from AngularJS?
Waiting for reply.