Making angularjs directives reusable post