angular js common services and directives