Dynamically Attaching controllers to a directive
In this lesson we will learn a way to dynamically attach controllers to a directive, the reason I’m calling this dynamic is that here we will specify the directive, the name of the controller it is supposed to use, via an attribute. However an important point to note is that this requires the scope to […]