Thanks to visit codestin.com
Credit goes to bennadel.github.io

Always Trigger The $destroy Event Before Removing Elements In AngularJS Directives

Toggle Container

This is a bad directive test

This is a good directive test