Dynamically adding Angular directives
I'm fairly new to angular JS and am finding it a steep learning curve, I get the feeling im really missing the point here but here goes: I want to add a directive to my page from a controller. So I thought if I add the directive tag to the page, the directive and associated controller/template etc get added with it. After reading about the $compile method, I thought this would then be used to bind this directive to its newly created tag. This part is commented out below, but with or without this, I need the word login to appear and its controller to control it? I can find lots of examples of