Utilizing the angular-ui-bootstrap tabs directive, I tried to create tabs. However, upon logging each controller and link function, the initialization order appears incorrect.
Expected Order
outer - controller
Inner - Controller
Inner - Link
Inner - Controller
Inner - Link
Inner - Controller
Inner - Link
Inner - Controller
Inner - Link
outer - Link
Actual Result
outer - controller
outer - Link
Inner - Controller
Inner - Link
Inner - Controller
Inner - Link
Inner - Controller
Inner - Link
Inner - Controller
Inner - Link
It is evident that the outer directive initializes the link with the controller simultaneously, instead of linking after the inner directive has been initialized.
Visit the plunker and examine the console for more information.