Currently, I am following a tutorial on AngularJS directives which can be found at the following link:
Strange things are happening when I insert my custom directive into my code.
myPerfectDirective
It seems to disrupt the scoped variable that is declared above it. Interestingly, my directive does not contain a controller. Once I remove the directive from my HTML, the scoped variable functions properly again.
<my-perfect-directive></my-perfect-directive>
If you want to see for yourself, here is a fiddle showcasing the issue: https://jsfiddle.net/ciderman/mfesvznv/2/