View destroys its angular scope on destroy
Make the code minifiable
Forgot the namespace