work with angular directives